CVE-2026-57161: PJSIP: Stack overflow handling Service-Route headers in a registration response

Published Sep 4, 2026
·
Updated

PJSIP is a free and open source multimedia communication library written in C. Prior to commit acc03b5, a stack buffer overflow exists in PJSUA when processing Service-Route headers in a registration response (updateserviceroute() in pjsuaacc.c). This affects applications that register using the PJSUA/PJSUA2 account API (the default registration path). The Service-Route URIs from a 2xx response to REGISTER are stored into a fixed-size array without bounding the number of headers; a registrar that returns an excessive number of Service-Route headers can write past the end of the array on the stack. The values written are internal pointers rather than arbitrary data, so the most likely impact is unexpected application termination (denial of service), though memory corruption cannot be excluded. The malicious response may come from a compromised or malicious registrar, or — over unprotected transports — a spoofed response. This issue has been patched via commit acc03b5.

Affected Software

1 affected component
PJSIP<acc03b5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PJSIP to a version that resolves this vulnerability.

    Patch acc03b5

Event History

Sep 4, 2026
CVE Published
via MITRE·05:11 PM
Data Sourced
via MITRE·05:11 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications that register through the PJSUA or PJSUA2 account API are affected, because this is the default registration path. The vulnerable behavior occurs while processing Service-Route headers in a successful 2xx response to REGISTER.

2

What does an attacker need to exploit it?

An attacker needs to cause the application to receive a registration response containing an excessive number of Service-Route headers. This could be a malicious or compromised registrar, or a spoofed response when unprotected transports are used.

3

What impact should operators expect?

The most likely result is unexpected application termination, causing denial of service. Because the overflow corrupts memory, additional effects cannot be excluded, although the overwritten values are internal pointers rather than attacker-controlled arbitrary data.

4

What should be done if immediate patching is not possible?

Use protected transports for registration traffic to reduce the risk of spoofed registration responses, and avoid registering against untrusted or potentially compromised registrars. Apply the fix in commit acc03b5 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203