CVE-2026-57161: PJSIP stack buffer overflow in Service-Route header processing

CVE-2026-57161 · Severity: high · CVSS 8.2 · Published 2026-09-04

PJSIP is a multimedia communication library used by voice and video calling applications to handle SIP registration and call setup. When registering with a SIP server, a malicious or compromised server can send an excessive number of Service-Route headers that overflow an internal buffer, causing the application to crash (denial of service) or potentially allowing memory corruption attacks.

Technologies: PJSIP Pjproject, Teluu Pjsip. Vendors: PJSIP, Teluu.

Quick answers

Is CVE-2026-57161 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-57161 being exploited in the wild.
How severe is CVE-2026-57161?
High severity, with a CVSS score of 8.2, published 4 September 2026.
Which products and versions are affected?
PJSIP Pjproject 2.17 and earlier.
Is there a fix for CVE-2026-57161?
A patch was published on 2026-06-17: Patched via commit acc03b5 in master branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-57161 attacked?
It is attacked over the network or from the adjacent network, in a software library.
Am I affected by CVE-2026-57161?
Check whether you run PJSIP Pjproject or Teluu Pjsip at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A stack-based buffer overflow vulnerability exists in the update_service_route() function in pjsua_acc.c. The function stores Service-Route URIs from REGISTER responses into a fixed-size array (PJ_ARRAY_SIZE(uri)) without properly bounding the number of headers processed. An attacker controlling or spoofing a SIP registrar can send a 2xx REGISTER response with more than the maximum allowed Service-Route headers, causing writes past the array boundary. The overwritten values are internal pointers rather than attacker-controlled data, making denial of service the primary impact, though memory corruption is not excluded. The attack requires network-level access to intercept or spoof the registrar response (possible over unprotected transports like UDP). The vulnerability has been patched in commit acc03b5 by adding bounds checks before each array write.

Affected products

  • PJSIP pjproject 2.17 and earlier

Timeline

  • 2026-09-04: disclosed
  • 2026-06-17: patched: Patched via commit acc03b5 in master branch

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.