CVE-2026-57162
largePre-Auth Stack Buffer Overflow in PJSIP SRTP/SDES Media Transport
PJSIP, a widely embedded open-source C multimedia/SIP library, contains a stack buffer overflow (CWE-121) in its SRTP/SDES media transport, where a=crypto attributes from the remote SDP are collected into a fixed-size stack array without bounding their number during SDP offer/answer processing (sdes_encode_sdp() in transport_srtp_sdes.c). A remote attacker can trigger the flaw simply by sending a SIP INVITE whose SDP media description contains an excessive number of a=crypto attributes, and the code path is reached before any application-level authentication. Successful exploitation can cause application termination (denial of service) and potentially memory corruption or control-flow hijack, which may lead to remote code execution. Only applications and devices that embed PJSIP with SRTP enabled (use_srtp set to optional or mandatory with SDES keying) are affected; deployments that do not enable SRTP are not exposed. There is no known public proof-of-concept, the issue is not in CISA's KEV catalog, and EPSS puts 30-day exploitation probability at just 0.4%, so no in-the-wild exploitation is known.
What to do: Rebuild or upgrade PJSIP to a version incorporating patch commit a1b707c and update any applications, SDKs, or devices that bundle the library. If patching is delayed, disable SRTP (or SDES keying specifically) or restrict inbound SIP INVITEs to trusted peers with ACLs. Inventory which VoIP clients, servers, and embedded devices in your estate embed PJSIP and confirm whether use_srtp is enabled, since non-SRTP deployments are unaffected.
| PJSIP project (open source) PJSIP (pjproject) | All versions prior to patch commit a1b707c; only affects builds/deployments with SRTP enabled using SDES keying (use_srtp optional or mandatory) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
PJSIP is a free and open source multimedia communication library written in C. Prior to commit a1b707c, a stack buffer overflow exists in the SRTP/SDES media transport when processing a=crypto attributes during SDP offer/answer (sdes_encode_sdp() in transport_srtp_sdes.c). This affects applications with SRTP enabled (use_srtp optional or mandatory, using SDES keying). During media negotiation, the crypto attributes from the remote SDP are collected into a fixed-size array without bounding their number; a remote peer that includes an excessive number of a=crypto attributes in a single media description can write past the end of that array on the stack. This is reachable from an incoming SIP INVITE during offer/answer, before application-level authentication. Impact may range from unexpected application termination to control flow hijack/memory corruption. Applications that do not enable SRTP are not affected. This issue has been patched via commit a1b707c.
- Vendors
- teluu
- Products
- pjsip
- Weakness
- CWE-121
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.