CVE-2018-7284
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.
What to do
Likely to be exploited: EPSS gives a 66% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | asterisk | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | asterisk | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | asterisk | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | asterisk | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | asterisk | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | asterisk | Fix pending | UBUNTU-CVE-2018-7284 | |
| Ubuntu 16.04 | asterisk | Fix pending | UBUNTU-CVE-2018-7284 | |
| Ubuntu 14.04 | asterisk | Fix pending |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2018/dsa-4320 (vendor-advisory)
References
- http://downloads.asterisk.org/pub/security/AST-2018-004.html
- https://www.exploit-db.com/exploits/44184/
- https://www.debian.org/security/2018/dsa-4320
- http://www.securityfocus.com/bid/103151
- http://www.securitytracker.com/id/1040416
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.