CVE-2023-38703 PJSIP has use-after-free vulnerability in SRTP media transport

Critical 9.8 Published Updated

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.

Sources

Also known as ALPINE-CVE-2023-38703, DEBIAN-CVE-2023-38703, GHSA-f76w-fh7c-pc66, UBUNTU-CVE-2023-38703.

Is CVE-2023-38703 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free