{"id":"CVE-2026-45538","published":"2026-08-04T21:16:36.270","lastModified":"2026-08-05T15:16:48.203","description":"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.","cvssScore":9.8,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-121"],"vendors":[],"products":[],"references":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-37wc-5j8j-95x3","tags":[]},{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-37wc-5j8j-95x3","tags":[]}],"exploitRefs":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-37wc-5j8j-95x3","tags":[]},{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-37wc-5j8j-95x3","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw is a stack buffer overflow in OpenSIPS due to unbounded copying of SIP header names into a fixed-size buffer, allowing remote code execution via crafted SIP messages.","exploitability":"Exploitation requires sending a single UDP packet with a long header name; preconditions include the target using an affected version and having routing scripts that call sip_to_json().","blast_radius":"If exploited, this can lead to process crashes or remote code execution on vulnerable deployments.","remediation":"Upgrade OpenSIPS to a non-affected version immediately.","tags":["rce","buffer-overflow","sip","udp"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-08-11T06:42:32.146Z"}}