CVE-2026-57161

Source
https://cve.org/CVERecord?id=CVE-2026-57161
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57161.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-57161
Aliases
  • GHSA-xc62-j9h2-mp84
Downstream
Published
2026-09-04T17:11:33.488Z
Modified
2026-09-06T08:14:56.465670Z
Severity
  • 8.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
PJSIP: Stack overflow handling Service-Route headers in a registration response
Details

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 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.

Database specific
{
    "cwe_ids": [
        "CWE-121"
    ],
    "cna_assigner": "GitHub_M",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "acc03b57cef7a7d31b8e1f5b9117437d7e87c591"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57161.json"
}
References

Affected packages

Git / github.com/pjsip/pjproject

Affected ranges

Type
GIT
Repo
https://github.com/pjsip/pjproject
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source": "REFERENCES"
}

Affected versions

2.*
2.10
2.11
2.12
2.13
2.14
2.15
2.16
2.17

Database specific

vanir_signatures
[
    {
        "target": {
            "file": "pjsip/src/pjsua-lib/pjsua_acc.c",
            "function": "update_service_route"
        },
        "deprecated": false,
        "id": "CVE-2026-57161-991adea8",
        "signature_version": "v1",
        "digest": {
            "function_hash": "231092572113432386254224372783085568014",
            "length": 2076.0
        },
        "signature_type": "Function",
        "source": "https://github.com/pjsip/pjproject/commit/acc03b57cef7a7d31b8e1f5b9117437d7e87c591"
    },
    {
        "target": {
            "file": "pjsip/src/pjsua-lib/pjsua_acc.c"
        },
        "deprecated": false,
        "id": "CVE-2026-57161-dd434ac6",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "195085791941282295658134388069475402224",
                "189875619073264633970969239108096599411",
                "255929625464236592835179354163788890654",
                "89758809914378715682471127206372329439",
                "18039153693145687670257955616250892977",
                "323169140021135744574294113640115731074",
                "216808286038063834065218396969384191988",
                "25375236710895406912662060593624994229",
                "8940688792440521517011441780371941922",
                "34712855523357717426345223882675683475"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/pjsip/pjproject/commit/acc03b57cef7a7d31b8e1f5b9117437d7e87c591"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57161.json"
vanir_signatures_modified
"2026-09-06T08:14:56Z"