CVE-2021-43300
NixOS vulnerability analysis and mitigation

Overview

Stack overflow vulnerability identified in PJSUA API when calling pjsua_recorder_create function. The vulnerability (CVE-2021-43300) was discovered in PJSIP versions 2.11.1 and below, with patches available in version 2.12 and later. The issue occurs when an attacker-controlled 'filename' argument is passed to the function, which may cause a buffer overflow since it is copied to a fixed-size stack buffer without any size validation (GitHub Advisory).

Technical details

The vulnerability stems from improper buffer size validation in the PJSUA API. When calling pjsua_recorder_create(), the function copies the filename parameter to a fixed-size stack buffer without performing size validation checks. This oversight can lead to a buffer overflow condition. The vulnerability has been assigned a CVSS 3.1 base score of 9.8 (Critical), indicating high severity across confidentiality, integrity, and availability impacts (Ubuntu Security).

Impact

If successfully exploited, this vulnerability could allow an attacker to cause buffer overflow conditions, potentially leading to arbitrary code execution or denial of service. The issue affects applications that use the PJSUA API's recording functionality, particularly when handling user-supplied filenames (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in PJSIP version 2.12 and later. As a workaround, applications should implement length validation for filename parameters before calling the affected API. The fix is available as commit d979253 in the master branch. Multiple Linux distributions have also released security updates to address this vulnerability, including Debian and Ubuntu (Debian LTS, Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-0821MEDIUM6.9
  • NixOSNixOS
  • quickjs
NoNoJan 10, 2026
CVE-2025-68949MEDIUM5.3
  • NixOSNixOS
  • n8n
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026
CVE-2026-23497LOW1.3
  • NixOSNixOS
  • learning
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management