CVE-2021-40574
NixOS vulnerability analysis and mitigation

Overview

The binary MP4Box in Gpac from version 0.9.0-preview to 1.0.1 contains a double-free vulnerability in the gftextgetutf8line function located in load_text.c. This vulnerability was discovered in August 2021 and affects the text processing functionality of the software (NVD, Debian Advisory).

Technical details

The vulnerability exists in the gftextgetutf8line function within load_text.c, where a buffer overflow condition can lead to a double-free scenario. The issue was identified with a CVSS v3.1 Base Score of 7.8 (HIGH), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The vulnerability specifically affects the text processing functionality when handling UTF-8 encoded text files (NVD).

Impact

If successfully exploited, this vulnerability can allow attackers to cause a denial of service condition, and potentially achieve code execution and escalation of privileges. The vulnerability affects the core functionality of the MP4Box binary, which is a critical component of the Gpac framework (NVD).

Mitigation and workarounds

The vulnerability has been fixed in subsequent releases of Gpac. For Debian systems, the fix is available in version 1.0.1+dfsg1-4+deb11u2. Users are recommended to upgrade to the patched version. The fix involved adjusting buffer sizes in the affected function (Debian Advisory, GitHub Patch).

Additional resources


SourceThis report was generated using AI

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