CVE-2026-45538

Source
https://cve.org/CVERecord?id=CVE-2026-45538
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45538.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45538
Aliases
  • GHSA-37wc-5j8j-95x3
Downstream
Published
2026-08-04T20:47:10.262Z
Modified
2026-08-12T03:51:26.009203298Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
OpenSIPS: Stack Buffer Overflow in sip_to_json() Header Name Copy
Details

OpenSIPS is a Session Initiation Protocol (SIP) server implementation. In versions 4.0.0 and prior, processing a SIP message with a header name longer than 255 bytes causes a stack buffer overflow when siptojson() is called in the routing script. Function siptojson() (modules/sipmsgops/sipmsgops.c) copies SIP header names into a fixed 255-byte stack buffer without bounds checking, performing a memcpy of the full header-name length even though the SIP parser imposes no such limit (a header name can be roughly 65000 bytes). As a result, when a routing script calls siptojson(), a SIP message with a header name longer than 255 bytes triggers a stack buffer overflow in which both the length and content of the overwrite are attacker-controlled, corrupting the saved frame pointer and return address. A single unauthenticated UDP packet to the SIP port (5060) can crash the process or, on builds without stack protections, hijack the return address to achieve remote code execution. This affects deployments whose routing script invokes siptojson(). This issue was not fixed at the time of publication.

Database specific
{
    "cwe_ids": [
        "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45538.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/opensips/opensips

Affected ranges

Type
GIT
Repo
https://github.com/opensips/opensips
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "4.0.0"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

1.*
1.11.0
2.*
2.1-alpha1
2.1-alpha2
2.1-alpha3
2.1-rc1
4.*
4.0.0
4.0.0-beta
4.0.0-rc1
4.0.0-rc2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45538.json"