Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl pre-computed digest credential source
-
DeliverySupply over-length digest string
-
Exploitpjsip_auth_create_digest2 copies data.slen unchecked
-
ExecutionOverflow 128-byte ha1 stack buffer
-
ImpactCrash or execute code
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to use pre-computed digest credentials (credential-data type PJSIP_CRED_DATA_DIGEST) and requires an attacker-influenced credential value whose data.slen exceeds the expected digest string length so it overruns the 128-byte ha1 stack buffer in pjsip_auth_create_digest2(). Limiting factors: deployments that use plaintext password credentials (PJSIP_CRED_DATA_PLAIN_PASSWD) never reach this path; the digest credential is normally set by the application/operator or its provisioning source, so an attacker must be able to control or poison that credential data rather than simply sending SIP traffic to the device - meaning the AV:N/PR:N assumption in the published CVSS likely does not hold unless a specific deployment lets a remote party supply the digest value. Affected only on pjproject ≤ 2.16. |
| Impact | Signals conflict and must be weighed carefully. The published CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, base 8.1) portrays this as remote, unauthenticated, network-triggerable with total confidentiality/integrity/availability impact, and SSVC marks technical impact 'total' and automatable 'yes'. However, the description states the overflow is driven by cred_info->data.slen - the length of a pre-computed digest credential that is normally provisioned by the application or operator, not directly injected by a remote SIP peer. That makes the AV:N/PR:N characterization questionable for typical deployments: to weaponize this an attacker generally needs to control the credential data fed to the client (e.g., a malicious or compromised provisioning source, config, or an application that forwards untrusted digest values), which is closer to local/config-dependent, higher-privilege exploitation. Countervailing risk signals are low: EPSS is 0.04% (13th percentile), SSVC exploitation is 'none', there is no KEV listing, and no public POC exists. Net assessment: a genuine memory-safety bug worth patching promptly given PJSIP's broad footprint, but not urgent for most operators - the AV:N/PR:N/8.1 rating likely overstates realistic remote-unauthenticated risk. Verify with the vendor whether any remote-controllable path can populate the digest credential in your integration. |
| Exploit ScenarioDerived | An attacker who can control or influence the pre-computed digest credential handed to a PJSIP-based client - for instance a compromised or malicious provisioning/config source, or an application that relays untrusted digest values - supplies a digest string longer than the expected HA1 length. When the client builds an authentication header via pjsip_auth_create_digest2(), the oversized value overflows the 128-byte ha1 stack buffer, corrupting the stack to crash the process or potentially execute code. No public exploit is known and no POC has been published at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Stack buffer overflow in PJSIP (pjproject) 2.16 and earlier occurs in pjsip_auth_create_digest2() when an application authenticates using pre-computed digest credentials (PJSIP_CRED_DATA_DIGEST). The function pj_memcpy's cred_info->data.slen bytes into a fixed 128-byte ha1 stack buffer with no upper-bound check (CWE-121), so an over-length credential string corrupts adjacent stack memory and can cause a crash or potentially code execution. No public exploit identified at time of analysis; EPSS is very low (0.04%, 13th percentile) and it is not in CISA KEV, though CISA SSVC rates technical impact as total and automatable as yes.
RemediationAI
Upstream fix available (commit c82123ea6f3c3652bbc9ebd5e9e658c301451687); a released, tagged patched version is not independently confirmed from the provided data, so track the vendor advisory GHSA-2wcg-w3c4-48r7 (https://github.com/pjsip/pjproject/security/advisories/GHSA-2wcg-w3c4-48r7) for the patched release and rebuild any product that statically links pjproject. The code fix bounds the copy to digest_strlen instead of cred_info->data.slen (https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687). Until a tagged release is applied, the most direct compensating control is to avoid the vulnerable code path: where feasible use plaintext password credentials (PJSIP_CRED_DATA_PLAIN_PASSWD) instead of PJSIP_CRED_DATA_DIGEST pre-computed digests, which sidesteps the unchecked copy at the cost of handling/storing plaintext secrets; alternatively, validate and cap the length of any pre-computed digest credential (to the expected 32-hex-char MD5 HA1 or the relevant SHA length) before passing it into pjsip_auth_create_digest2(), and restrict and verify the trustworthiness of whatever source provisions those credentials. Backporting the one-line commit into your own build is the cleanest interim mitigation if you compile pjproject yourself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PJSIP/pjproject is a widely embedded open-source C library implementing SIP, SDP, RTP/RTCP, STUN, ICE and related VoIP/multimedia signaling; it is the SIP stack underneath Asterisk chan_pjsip and many softphones, SBCs, and embedded VoIP endpoints. The defect lives in the SIP digest authentication client path (sip_auth_client.c). When credentials are supplied as credential-data type PJSIP_CRED_DATA_DIGEST, the caller passes a pre-computed HA1 digest value rather than a plaintext password, and pjsip_auth_create_digest2() copies that value into a fixed 128-byte on-stack ha1 buffer. A legitimate MD5 HA1 is a 32-character hex string (SHA variants longer but still bounded), so the buffer is generously sized for valid input. The root cause is CWE-121 (stack-based buffer overflow): the copy length is taken from the supplied data.slen instead of the expected digest_strlen, allowing writes past the buffer. The upstream fix (commit c82123ea) changes pj_memcpy to use digest_strlen as the bounded length.
Know when Pjsip gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Overflow is driven by an operator/application-provisioned digest credential, so an attacker must control that config data (PR:H) via a local/config path (AV:L); memory corruption yields high C/I/A.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, a stack buffer overflow exists in pjsip_auth_create_digest2() in PJSIP when using pre-computed digest credentials (PJSIP_CRED_DATA_DIGEST). The function copies credential data using cred_info->data.slen as the length without an upper-bound check, which can overflow the fixed-size ha1 stack buffer (128 bytes) if data.slen exceeds the expected digest string length.
Executive ViewAI
PJSIP telecommunications library versions 2.16 and earlier contain a memory corruption vulnerability (CVSS 8.1) affecting SIP authentication that could disrupt voice services or compromise calling infrastructure. Without an available patch, organizations require immediate mitigation to protect communications systems.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to SIP services through firewall rules, disable pre-computed digest authentication methods where technically feasible, take non-critical affected systems offline, implement application monitoring for crashes and unexpected exceptions, and segment vulnerable systems to limit lateral movement in case of compromise.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9
Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe
Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit
PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.
EUVD-2026-24469
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB