CVE-2021-43300CWE-121

Stack overflow in PJSUA API when calling pjsua_recorder_create

published February 16, 2022

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

⚠️ A seemingly innocent filename could spell trouble! When calling the pjsua_recorder_create function, this vulnerability allows attackers to send a filename that's larger than the stack can handle, leading to an overflow. 😱 Think of it like a restaurant serving too much food on a small plate — eventually, the food spills over. In this case, the filename is the oversized dish that overflows the stack buffer, causing chaos in your application! If exploited, this stack overflow could lead to unexpected behavior, potentially crashing the application or allowing the attacker to execute arbitrary code. While the severity is marked as unknown, the risks associated with buffer overflows are always a concern, making this a vulnerability worth addressing!

Put simply

Think of it like a restaurant serving too much food on a small plate — eventually, the food spills over. In this case, the filename is the oversized dish that overflows the stack buffer, causing chaos in your application! The vulnerability in the PJSUA API occurs because an attacker-controlled 'filename' argument is copied into a fixed-size stack buffer without proper size validation. This lack of checks makes it ripe for overflow attacks.

What to do

If exploited, this stack overflow could lead to unexpected behavior, potentially crashing the application or allowing the attacker to execute arbitrary code. While the severity is marked as unknown, the risks associated with buffer overflows are always a concern, making this a vulnerability worth addressing! To mitigate this vulnerability, ensure that all user-supplied input is properly validated before being passed to the pjsua_recorder_create function. Implement size checks and consider limiting the input length to prevent overflow. Regularly update to the latest version of PJSUA to benefit from security patches. You can tackle this! With a bit of validation magic, your application will stay safe and sound. You've got this! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02356 · 83.6th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2022-02-16T00:00Z
EPSS history
Timeline
  • 16 FEB 00:00Z
    Stack overflow in PJSUA API when calling pjsua_recorder_create
    cvelistv5