Skip to content
OpenAdvisories
High · 8.8 CVE-2026-57161 EUVD-2026-71655

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

Published Sep 4, 2026 · Updated Sep 9, 2026 · Assigned by GitHub_M

Description

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 (update_service_route() in pjsua_acc.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 products

VendorProductAffectedFixed
pjsip pjproject < acc03b57cef7a7d31b8e1f5b9117437d7e87c591 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 asterisk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 asterisk No fix yet —
Ubuntu 26.04 LTS asterisk No fix yet —
Ubuntu 24.04 LTS asterisk No fix yet —
Ubuntu 22.04 LTS asterisk No fix yet —
Ubuntu 20.04 LTS asterisk No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS asterisk No fix yet —
Ubuntu Pro 18.04 LTS pjproject No fix yet —
Ubuntu Pro 16.04 LTS asterisk +1 No fix yet —

Advisories 1

References