Stack-based Buffer Overflow in Asterisk ast_parse_digest
A stack-based buffer overflow exists in the ast_parse_digest function in main/utils.c in Asterisk versions 1.8.x before 1.8.10.1 and 10.x before 10.2.1. The vulnerability is triggered by a long string in an HTTP Digest Authentication header, which is not properly checked for length, leading to a buffer overflow on the stack.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Remote attackers can exploit this vulnerability to cause a denial of service (crash) or potentially execute arbitrary code with the privileges of the Asterisk process. The attack can be performed remotely by sending a specially crafted HTTP Digest Authentication header.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the HTTP interface to trusted hosts only, and monitor for abnormal HTTP authentication attempts. Consider disabling the HTTP interface if not required.
Patch, then assume compromise.
Upgrade to Asterisk version 1.8.10.1, 10.2.1, or later, where the vulnerability has been patched. Ensure all instances are updated to a non-vulnerable version.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.