Skip to main content

PJSIP EUVDEUVD-2026-24469

| CVE-2026-40892 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-04-21 GitHub_M
8.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control pre-computed digest credential source
  2. Delivery
    Supply over-length digest string
  3. Exploit
    pjsip_auth_create_digest2 copies data.slen unchecked
  4. Execution
    Overflow 128-byte ha1 stack buffer
  5. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pjproject ≤ 2.16

Affected Packages

euvd pjproject no fix

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

Vendor (GitHub_M) PRIMARY 8.1 HIGH
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
vuln.today AI 6.7 MEDIUM

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.

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Apr 21, 2026 - 21:22 NVD
8.1 (HIGH)
CVE Published
Apr 21, 2026 - 19:55 nvd
HIGH 8.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Prevalence
High
core open-source SIP/VoIP stack embedded in Asterisk and many softphones
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Pjsip

View all
CVE-2021-43845 CRITICAL POC
9.1 Dec 27

PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability

CVE-2021-21375 MEDIUM POC
6.5 Mar 10

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2017-16872 CRITICAL
9.8 Nov 17

An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9

CVE-2026-25994 CRITICAL POC
9.8 Feb 11

Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe

CVE-2026-32945 CRITICAL
9.8 Mar 20

Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit

CVE-2023-38703 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a

CVE-2022-23547 CRITICAL
9.8 Dec 23

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-23537 CRITICAL
9.8 Dec 20

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-39244 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-31031 CRITICAL
9.8 Jun 09

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-24786 CRITICAL
9.8 Apr 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-24754 CRITICAL
9.8 Mar 11

PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy