CVE-2022-23537 PJSIP vulnerable to heap buffer overflow when decoding STUN message

Medium 6.5 Published Updated

Attackers can trigger heap buffer overflows in PJSIP via crafted STUN messages, potentially causing crashes or code execution in applications using the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-23537?

CVE-2022-23537 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 20 Dec 2022. 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 language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. Buffer overread is possible when parsing a specially crafted STUN message with unknown attribute. The vulnerability affects applications that uses STUN including PJNATH and PJSUA-LIB. The patch is available as a commit in the master branch (2.13.1).

Weakness: CWE-125, CWE-122

Which versions are affected by CVE-2022-23537?

It affects 2 products.

Products include Debian Debian Linux, Teluu Pjsip.

How do I fix CVE-2022-23537?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-23537 being exploited?

There is no known exploitation of CVE-2022-23537 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-23537, DEBIAN-CVE-2022-23537, GHSA-9pfh-r8x4-w26w, UBUNTU-CVE-2022-23537.

Is CVE-2022-23537 in your software?

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

Check your SBOMs for free