CVE-2021-43303CWE-120

Buffer overflow in PJSUA API when calling pjsua_call_dump

published February 16, 2022

CVSS
—
EPSS
2%
Percentile
83.6
In the wild
Unconfirmed
What it is

⚠️ A careless buffer size could lead to a nasty overflow! When the PJSUA API runs a call dump, providing a buffer smaller than 128 characters could send it spilling over like a poorly packed suitcase. 🔥 Think of it as trying to stuff a giant pizza into a tiny lunch box — if you force it in, toppings will fly everywhere! Here, the output buffer is expecting more room than it's given, leading to a chaotic overflow instead of a neat delivery. An attacker could potentially exploit this overflow to manipulate program execution, leading to unexpected behavior or even crashing the application. While the immediate risks may feel contained, it’s absolutely essential to keep a tight lid on your application's integrity — you never know how such a mishap could be leveraged.

Put simply

Think of it as trying to stuff a giant pizza into a tiny lunch box — if you force it in, toppings will fly everywhere! Here, the output buffer is expecting more room than it's given, leading to a chaotic overflow instead of a neat delivery. The buffer overflow flaw exists in the PJSUA API when calling pjsua_call_dump, where an attacker can supply a smaller-than-required output buffer, causing an overflow regardless of the supplied 'maxlen' argument.

What to do

An attacker could potentially exploit this overflow to manipulate program execution, leading to unexpected behavior or even crashing the application. While the immediate risks may feel contained, it’s absolutely essential to keep a tight lid on your application's integrity — you never know how such a mishap could be leveraged. To mitigate this risk, ensure that the buffer passed to pjsua_call_dump is always 128 characters or larger. Review your code and update to the latest version of the PJSIP library that addresses this issue. Always validate input sizes before processing! This vulnerability is fixable! Follow the steps to tighten up your buffers, and you'll be a security hero in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02356 · 83.6th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2022-02-16T00:00Z
EPSS history
Timeline
  • 16 FEB 00:00Z
    Buffer overflow in PJSUA API when calling pjsua_call_dump
    cvelistv5