CVE-2023-38703 PJSIP has use-after-free vulnerability in SRTP media transport
Attackers can trigger a use-after-free in PJSIP SRTP transport, potentially causing application crashes or arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-38703?
CVE-2023-38703 is a critical use after free vulnerability in pjsip pjproject, published on 6 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, and Python languages. SRTP is a higher level media transport which is stacked upon a lower level media transport such as UDP and ICE. Currently a higher level transport is not synchronized with its lower level transport that may introduce use-after-free issue. This vulnerability affects applications that have SRTP capability (`PJMEDIA_HAS_SRTP` is set) and use underlying media transport other than UDP. This vulnerability’s impact may range from unexpected application termination to control flow hijack/memory corruption. The patch is available as a commit in the master branch.
Weakness: CWE-416
Which versions are affected by CVE-2023-38703?
It affects 1 product.
Products include Teluu Pjsip.
How do I fix CVE-2023-38703?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-38703 being exploited?
There is no known exploitation of CVE-2023-38703 in the wild and no public exploit code.
Other vulnerabilities in pjsip pjproject
- CVE-2022-39269 Media transport downgrade from the secure version (SRTP) to non-secure (RTP) in pjsip
- CVE-2026-57161 PJSIP: Stack overflow handling Service-Route headers in a registration response
- CVE-2026-57162 PJSIP: Stack overflow parsing SDP a=crypto attributes
- CVE-2026-57163 PJSIP: Stack overflow parsing a TLS peer certificate's SubjectAltName in GnuTLS backend
- CVE-2026-57159 PJSIP: SDP parser out-of-bounds write in remote payload-type map maintenance
Sources
Also known as ALPINE-CVE-2023-38703, DEBIAN-CVE-2023-38703, GHSA-f76w-fh7c-pc66, UBUNTU-CVE-2023-38703.