CVE-2022-31031CWE-120

Potential stack buffer overflow when parsing message as a STUN client

Critical · published June 7, 2022

CVSS v3.1
9.8
EPSS
2%
Percentile
80.9
In the wild
Unconfirmed
What it is

🔥 A sneaky stack buffer overflow lurks in PJSIP! If you're using STUN in your applications, you might be an easy target. ⚡ Think of it like a crowded elevator — when too many people try to squeeze in, it can get out of control. This vulnerability lets attackers push the stack beyond its limits, potentially causing a dangerous spillover. An attacker could exploit this vulnerability to execute arbitrary code, leading to crashes or even full system compromise. Imagine your application being hijacked, putting sensitive data at risk. This is absolutely devastating for anyone relying on PJSIP for secure communications!

Put simply

Think of it like a crowded elevator — when too many people try to squeeze in, it can get out of control. This vulnerability lets attackers push the stack beyond its limits, potentially causing a dangerous spillover. In PJSIP versions prior to and including 2.12.1, improper handling of STUN requests results in a stack buffer overflow. This means that the application trusts input data too much, allowing attackers to overwrite critical memory areas.

What to do

An attacker could exploit this vulnerability to execute arbitrary code, leading to crashes or even full system compromise. Imagine your application being hijacked, putting sensitive data at risk. This is absolutely devastating for anyone relying on PJSIP for secure communications! To secure your application, immediately patch to the latest version that includes commit 450baca. If you haven't yet, review your STUN implementation to ensure it's configured correctly. Don't wait; act now to protect your systems! You've got this! With these steps, you'll have your PJSIP setup fortified in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02036 · 80.9th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2022-06-07T00:00Z
EPSS history
Timeline
  • 07 JUN 00:00Z
    Potential stack buffer overflow when parsing message as a STUN client
    cvelistv5