CVE-2026-57161: CWE-121: Stack-based Buffer Overflow in pjsip pjproject
Description
A stack-based buffer overflow vulnerability exists in PJSIP's pjproject prior to commit acc03b5. The flaw occurs when processing Service-Route headers in a registration response, where an excessive number of headers can overflow a fixed-size stack array. This can lead to application crashes or memory corruption. The issue affects applications using the default registration path via the PJSUA/PJSUA2 account API. The vulnerability has been patched in commit acc03b5.
CVSS v4.0
Score 8.8high
Affected software
pjsip
pjproject
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PJSIP's pjproject contains a stack buffer overflow vulnerability in the update_service_route() function within pjsua_acc.c. When processing Service-Route headers from a 2xx REGISTER response, the code stores these URIs into a fixed-size stack array without limiting the number of headers. A malicious or compromised registrar can send an excessive number of Service-Route headers, causing writes beyond the array boundary. The overflow writes internal pointers rather than arbitrary data, making denial of service via application termination the most likely impact, though memory corruption cannot be ruled out. The vulnerability affects the default registration path using the PJSUA/PJSUA2 account API and was fixed by commit acc03b5.
Potential Impact
Exploitation can cause unexpected application termination (denial of service) due to stack buffer overflow. Memory corruption is also possible but less certain. The malicious input could come from a compromised or malicious registrar or a spoofed response over unprotected transports. No known exploits are reported in the wild.
Mitigation Recommendations
This vulnerability has been patched by commit acc03b5. Users should update to the fixed version containing this commit. No other mitigation actions are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T01:45:48.698Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9afe70acd9273b49f0e66f
Added to database: 09/04/2026, 17:22:56 UTC
Last enriched: 10/18/2026, 00:35:16 UTC
Last updated: 10/19/2026, 06:48:18 UTC
Views: 75
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.