OpenSIPS: Stack Buffer Overflow in sip_to_json() Header Name Copy
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.
Summary
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 sip_to_json() is called in the routing script. Function sip_to_json() (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 sip_to_json(), 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 sip_to_json(). This issue was not fixed at the time of publication.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45538
More OpenSIPS vulnerabilities
- TI-2026-33289 OpenSIPS: Global Buffer Overflow in construct_uri CVSS 3.1CRITICAL 9.1
- TI-2026-32940 OpenSIPS: Buffer Overflow in Base64 Encode Transformation CVSS 3.1CRITICAL 9.1
- TI-2026-34055 OpenSIPS: Denial of Service in SDP bandwidth parsing via QoS SDP cloning CVSS 4.0HIGH 8.7
- TI-2026-33544 OpenSIPS: Denial of Service in watcherinfo XML generation from oversized watcher URI CVSS 4.0HIGH 8.7
- TI-2026-32931 OpenSIPS: Denial of service in presence.handle_publish() from unchecked Content-Type state CVSS 4.0HIGH 8.7
- TI-2026-32942 OpenSIPS: SIP Message Smuggling via TCP Content-Length Integer Overflow CVSS 3.1HIGH 7.5
Sources
- CVE-2026-45538 · CVE Program
- CVE-2026-45538 · NVD
- FIRST EPSS
- CVE-2026-45538 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences