Description
A Buffer Overflow issue was discovered in Asterisk through 13.19.1, 14.x through 14.7.5, and 15.x through 15.2.1, and Certified Asterisk through 13.18-cert2. When processing a SUBSCRIBE request, the res_pjsip_pubsub module stores the accepted formats present in the Accept headers of the request. This code did not limit the number of headers it processed, despite having a fixed limit of 32. If more than 32 Accept headers were present, the code would write outside of its memory and cause a crash.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asterisk | 1:13.20.0~dfsg-1 | — |
| Debian 9 | asterisk | 1:13.14.1~dfsg-2+deb9u4 | DSA-4320-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | asterisk | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | asterisk | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Asterisk chan_pjsip 15.2.0 - 'SUBSCRIBE' Stack Corruption EDB-44184 · dos · Feb 27, 2018 · verified
GitHub 1 repository
-
Rodrigo-D/astDoS ★ 0 · Sep 15, 2019
Tool to exploit CVE-2018-7284 and CVE-2018-19278
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- WID-SEC-2026-0838 Asterisk: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Mar 24, 2026
- DSA-4320-1 asterisk - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://downloads.asterisk.org/pub/security/AST-2018-004.html
- 44184 exploit
- DSA-4320 vendor-advisory
- 103151 vdb-entry
- 1040416 vdb-entry