CVE-2026-57164: CWE-122: Heap-based Buffer Overflow in pjsip pjproject
Description
A heap-based buffer overflow vulnerability exists in the PJLIB-UTIL HTTP client component of pjsip pjproject prior to commit 8d5956a. The flaw occurs when buffering an entire HTTP response body at once, due to incorrect size calculation based on the Content-Length header, potentially allowing memory corruption or application crashes. Applications that process response data incrementally or connect only to trusted servers are not affected. This issue has been patched in commit 8d5956a.
CVSS v4.0
Score 8.3high
Affected software
pjsip
pjproject
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PJSIP pjproject contains a heap buffer overflow in the PJLIB-UTIL HTTP client (http_client.c) when buffering a complete HTTP response body in one operation without incremental processing. The vulnerability arises from an incorrect buffer size calculation using the server-supplied Content-Length header, which can cause the buffer to be undersized and lead to writing beyond allocated memory. A malicious or man-in-the-middle HTTP server can exploit this by sending a crafted response. The impact ranges from application crashes to memory corruption. The issue was fixed in commit 8d5956a.
Potential Impact
Exploitation can lead to unexpected application termination or memory corruption, which may affect the stability and security of applications using the vulnerable PJLIB-UTIL HTTP client. The vulnerability requires an attacker to control or intercept HTTP responses to trigger the overflow. Applications that process response data incrementally or connect only to trusted servers are not vulnerable.
Mitigation Recommendations
This vulnerability has been patched in commit 8d5956a. Users and developers should update to the fixed version incorporating this commit. Applications that consume HTTP responses incrementally or restrict connections to trusted servers are not affected. No additional mitigation is required if the patch is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T01:47:55.284Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9afe70acd9273b49f0e675
Added to database: 09/04/2026, 17:22:56 UTC
Last enriched: 10/18/2026, 00:35:07 UTC
Last updated: 10/19/2026, 18:48:21 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.