CVE-2021-26713
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA stack-based buffer overflow in res_rtp_asterisk.c in Sangoma Asterisk before 16.16.1, 17.x before 17.9.2, and 18.x before 18.2.1 and Certified Asterisk before 16.8-cert6 allows an authenticated WebRTC client to cause an Asterisk crash by sending multiple hold/unhold requests in quick succession. This is caused by a signedness comparison mismatch.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA stack-based buffer overflow in res_rtp_asterisk.c in Sangoma Asterisk allows an authenticated WebRTC client to crash the server by sending multiple hold/unhold requests in rapid succession. The vulnerability stems from a signedness comparison mismatch that leads to incorrect buffer size calculations during RTP session handling.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 16.0.0, < 16.16.1>= 17.0.0, < 17.9.2>= 18.0.0, < 18.2.1= 16.8CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Asterisk versionRun 'asterisk -V' or check /etc/asterisk/asterisk.conf for the version string, or use 'core show version' in the Asterisk CLIAffected if The installed version is >= 16.0.0 and < 16.16.1, OR >= 17.0.0 and < 17.9.2, OR >= 18.0.0 and < 18.2.1, OR is Digium Certified Asterisk 16.8 (not 16.8-cert6 or later)
-
Verify res_rtp_asterisk module is loadedRun 'module show like res_rtp_asterisk' in the Asterisk CLI to confirm the RTP module is loadedAffected if The module is loaded and the version is in the vulnerable range from step 1
-
Confirm WebRTC is enabledCheck /etc/asterisk/pjsip.conf for endpoint configuration with 'webrtc=yes' or 'rtp_symmetric=yes' and 'ice_support=yes' settings that enable WebRTC functionalityAffected if WebRTC endpoints are configured and the version is vulnerable
-
Check for exposed WebRTC accessReview /etc/asterisk/http.conf and firewall rules to determine if WebRTC ports (typically 8088/8089 or configured WS/WSS ports) are externally accessibleAffected if WebRTC interface is exposed and the version is vulnerable
-
Inspect RTP session configurationRun 'rtp set debug on' in the Asterisk CLI and monitor for rapid hold/unhold requests, or review sip/endpoint configuration for RTP settings in /etc/asterisk/Affected if RTP sessions are active and the system is vulnerable
You are affected if you are running a vulnerable Asterisk version (16.0.0-16.16.0, 17.0.0-17.9.1, 18.0.0-18.2.0, or Certified 16.8) with WebRTC and the res_rtp_asterisk module enabled, and the WebRTC interface is accessible to authenticated clients.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor data16.16.117.9.218.2.1
Upgrade Asterisk to version 16.16.1, 17.9.2, 18.2.1 or later (or Certified Asterisk 16.8-cert6 or later). If immediate patching is not feasible, restrict WebRTC client access to trusted users only or implement rate limiting on hold/unhold requests.
- Consultation2.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-26713 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-26713 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data