Stack-based buffer overflow in Asterisk Open Source - CVE-2012-1184

 

Stack-based buffer overflow in Asterisk Open Source - CVE-2012-1184

Published: September 18, 2012 / Updated: July 29, 2020


Vulnerability identifier: #VU32804
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-1184
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the ast_parse_digest function in main/utils.c when processing a long string in an HTTP Digest Authentication header. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Asterisk Open Source
Gentoo Linux
Fedora
asterisk (Alpine package)
asterisk

How to mitigate CVE-2012-1184

Update to version 1.8.10.1.

Asterisk Open Source - update to 1.8.10.1
asterisk (Alpine package) - addressed in versions 1.8.10.1-r0, 1.8.11.1-r0
asterisk - addressed in versions 1.8.10.1-1.el6, 1.8.11.0-1.el6

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins