CVE-2025-57767
August 28, 2025
Asterisk is an open source private branch exchange and telephony toolkit. Prior to versions 20.15.2, 21.10.2, and 22.5.2, if a SIP request is received with an Authorization header that contains a realm that wasn't in a previous 401 response's WWW-Authenticate header, or an Authorization header with an incorrect realm was received without a previous 401 response being sent, the get_authorization_header() function in res_pjsip_authenticator_digest will return a NULL. This wasn't being checked before attempting to get the digest algorithm from the header which causes a SEGV. This issue has been patched in versions 20.15.2, 21.10.2, and 22.5.2. There are no workarounds.
Affected Packages
https://github.com/asterisk/asterisk.git (GITHUB):
Affected version(s) >=22.0.0 <22.5.2Fix Suggestion:
Update to version 22.5.2https://github.com/asterisk/asterisk.git (GITHUB):
Affected version(s) >=21.0.0 <21.10.2Fix Suggestion:
Update to version 21.10.2https://github.com/asterisk/asterisk.git (GITHUB):
Affected version(s) >=20.0.0 <20.15.2Fix Suggestion:
Update to version 20.15.2Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Incorrect Check of Function Return Value
EPSS
Base Score:
0.13