Description
Stack-based buffer overflow in the ast_parse_digest function in main/utils.c in Asterisk 1.8.x before 1.8.10.1 and 10.x before 10.2.1 allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long string in an HTTP Digest Authentication header.
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:1.8.10.0~dfsg-1 | — |
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 - 'ast_parse_digest()' Stack Buffer Overflow (PoC) EDB-18855 · dos · Mar 15, 2012
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- [oss-security] 20120316 Re: CVE Request -- Asterisk: AST-2012-002 and AST-2012-003 flaws mailing-list
- http://downloads.asterisk.org/pub/security/AST-2012-003.pdf
- http://www.asterisk.org/node/51797
- 48417 third-party-advisory
- [oss-security] 20120316 CVE Request -- Asterisk: AST-2012-002 and AST-2012-003 flaws mailing-list
- http://downloads.asterisk.org/pub/security/AST-2012-003-1.8.diff
- 80126 vdb-entry
- 1026813 vdb-entry
- asterisk-astparsedigest-bo(74083) vdb-entry