Skip to main content

PJSIP pjproject CVE-2026-57164

| EUVDEUVD-2026-71658 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-09-04 GitHub_M
8.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    MITM or control target HTTP server
  2. Delivery
    Send response with misleading Content-Length
  3. Exploit
    Client allocates undersized heap buffer
  4. Install
    Deliver body exceeding twice the allocation
  5. C2
    Single buffer doubling leaves buffer too small
  6. Execute
    pj_memcpy writes past heap allocation end
  7. Impact
    Memory corruption or process termination

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap 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

The vulnerable code path is only reachable when an application uses the PJLIB-UTIL HTTP client configured with a whole-body completion callback and no incremental on_data_read callback; applications consuming responses incrementally are explicitly not affected. The attacker must either control the HTTP server the application connects to, or hold a man-in-the-middle network position between the client and server - passive network observation is insufficient. The malicious server must provide a Content-Length value that causes the initial heap allocation to be smaller than half the actual body size delivered in a single read, so that one buffer doubling is insufficient. Applications that connect exclusively to trusted, non-adversarial servers are not affected per the upstream advisory.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H) scores 8.3, reflecting network reachability and no privilege requirement, but tempered by the AT:P condition - the attacker must control or man-in-the-middle the HTTP server to which the vulnerable application connects. Real-world risk is strongly gated by deployment pattern: applications exclusively connecting to trusted internal servers are explicitly unaffected per the advisory, while those fetching responses from user-supplied or external URLs (configuration files, media, update manifests) present meaningful exposure. No EPSS score or CISA KEV listing is available in the provided data, and no public proof-of-concept exploit is known at time of analysis; exploitation requires crafting a specific HTTP response, which is well within the capability of any attacker holding a MITM position. Even a mid-sized municipal IT team in sopot running VoIP infrastructure built on pjproject should treat this as urgent if their deployment fetches responses from external HTTP sources without incremental parsing. The absence of confidentiality impact in the CVSS vector is consistent with the description, which identifies termination and memory corruption as the primary consequences rather than data exfiltration.

Exploit ScenarioDerived

An attacker positioned as a man-in-the-middle between a pjproject-based VoIP application and an external HTTP endpoint crafts a response with a Content-Length header set to a small value (e.g., 16 bytes) while sending a body several kilobytes in length; the PJLIB-UTIL client allocates a heap buffer sized from the header, the single doubling to 32 bytes is still far smaller than the actual body, and pj_memcpy() corrupts adjacent heap metadata or application data. No public proof-of-concept exploit is available at time of analysis, but the bug class and fix are fully documented in the commit diff, making independent reproduction straightforward for a researcher with network interposition capability.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 04, 2026

Heap buffer overflow in PJSIP pjproject's PJLIB-UTIL HTTP client allows a malicious or man-in-the-middle HTTP server to corrupt application heap memory or terminate the process by delivering a response body larger than twice the Content-Length-derived initial allocation. The flaw resides in http_client.c where the buffer growth logic performed only a single doubling, which is insufficient when the server-supplied Content-Length substantially underestimates the actual body size, causing pj_memcpy() to write beyond the allocation boundary. Only applications using the non-incremental whole-body completion callback are affected; the fix (commit 8d5956a) replaces single-doubling with a loop that guarantees the buffer fits the incoming data before any copy occurs.

RemediationAI

The primary fix is to apply upstream commit 8d5956afab2ede95ddb199078dc19a8ac0114f3d from the pjproject repository (https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d), which replaces the single-shift buffer growth with a while-loop ensuring the allocated region always fits incoming data before any pj_memcpy() executes. No tagged release incorporating this fix has been independently confirmed, so downstream consumers should apply the commit directly or monitor for a versioned release announcement. As a compensating control, refactor affected applications to use the incremental on_data_read callback instead of the whole-body completion callback, as the advisory explicitly states this path is not affected; this change may require application-layer logic adjustments to handle partial data. Alternatively, restrict PJLIB-UTIL HTTP client usage exclusively to trusted, controlled servers - note this is a deployment constraint, not a code fix, and would not prevent exploitation if a trusted server is itself compromised.

Affected VersionsENISA

pjproject < 8d5956afab2ede95ddb199078dc19a8ac0114f3d

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pjproject (CPE cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:*) is a widely-used open-source C multimedia communications library providing SIP, media, and utility subsystems. The affected component is the PJLIB-UTIL HTTP client, specifically the http_on_data_read() callback in http_client.c. When an application registers a whole-body completion callback without an incremental on_data_read callback, the client buffers the entire response body in a pool-allocated heap region initially sized from the server-supplied Content-Length header. CWE-122 (heap-based buffer overflow) arises because the prior growth code performed exactly one left-shift (size <<= 1) when incoming data exceeded the current allocation; if the server delivers a body chunk exceeding twice the Content-Length-based allocation in one read, the single doubling leaves the buffer undersized and the subsequent pj_memcpy() writes past the end of the heap region. An additional edge case (Content-Length: 0 with a non-empty body) would have caused an infinite loop in the new doubling loop, guarded in the fix by resetting to INITIAL_DATA_BUF_SIZE before entering the loop.

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.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

Network attack via HTTP server response, but MITM or server-control prerequisite warrants AC:H; heap overflow yields no confidentiality impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Sep 04, 2026 - 19:18 EUVD
CVE Published
Sep 04, 2026 - 17:11 cve.org
HIGH 8.3

DescriptionCVE.org

PJSIP is a free and open source multimedia communication library written in C. Prior to commit 8d5956a, a heap buffer overflow exists in the PJLIB-UTIL HTTP client (http_client.c) when buffering an HTTP response body. This affects applications that use the PJLIB-UTIL HTTP client to receive a whole response body at once (a completion callback with no incremental on_data_read callback). When growing the response buffer, an incorrect size calculation based on the server-supplied Content-Length can leave the buffer too small, causing response data to be written past the end of the allocation. A malicious or man-in-the-middle HTTP server can trigger this with a crafted response; impact may range from unexpected application termination to memory corruption. Applications that consume the response incrementally (via on_data_read), or that only connect to trusted servers, are not affected. This issue has been patched via commit 8d5956a.

Technical POC Analysis

CWE-122: heap-based buffer overflow in the PJLIB-UTIL HTTP client, file httpclient.c.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

PJSIP pjproject's HTTP client contains a high-severity heap buffer overflow flaw that enables denial of service or potential remote code execution when applications receive HTTP responses with mismatched Content-Length headers. No public exploit identified at time of analysis, but the absence of a vendor patch makes this a priority for immediate mitigation planning, as any organization using PJSIP for HTTP communication faces material risk from malicious or network-positioned attackers. Leadership should prioritize inventory and mitigation measures given the memory corruption potential and broad impact.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Deploy HTTP gateway proxies with strict Content-Length header validation and response size enforcement rules. Modify applications to use incremental callback mechanisms instead of whole-body completion callbacks where feasible. Implement application performance monitoring to detect memory corruption symptoms or abnormal terminations. Restrict vulnerable applications to isolated network segments and limit exposure to untrusted HTTP sources.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
widely used in SIP/VoIP stacks and telecom middleware
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.3%
Patch available Yes
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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 heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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.

Vendor StatusVendor

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