CVE-2026-57161
Received Received - Intake

Stack Buffer Overflow in PJSIP Library

Vulnerability report for CVE-2026-57161, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-05
AI Q&A
2026-09-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
pjsip pjsip to acc03b5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

PJSIP is a multimedia communication library. A stack buffer overflow exists in PJSUA when processing Service-Route headers in registration responses. The issue occurs in the update_service_route() function in pjsua_acc.c. A malicious registrar can send excessive Service-Route headers, causing a buffer overflow on the stack. This may lead to application termination or memory corruption.

Detection Guidance

Detecting this vulnerability requires monitoring for crashes or unusual behavior in PJSIP applications during SIP registration. Check logs for segmentation faults or stack overflow errors in PJSUA/PJSUA2 applications. No specific commands are provided for detection as it depends on application logging.

Impact Analysis

The vulnerability can cause denial of service by crashing the application. Memory corruption is also possible, though less likely. The impact depends on the application using PJSIP. If the application registers with a compromised or malicious registrar, or over unprotected networks, it may be affected.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling denial of service attacks through stack buffer overflow, leading to service disruptions in systems handling sensitive personal or health data. Unauthorized termination of services may violate availability requirements under these regulations.

Mitigation Strategies

Update PJSIP to a version that includes commit acc03b5 or later. If immediate patching is not possible, restrict network access to trusted SIP registrars and use TLS for SIP communications to prevent spoofed responses.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57161. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart