CVE-2026-48813Flawfinder output manipulation via untrusted filenames and source text
Flawfinder is a a static analysis tool for finding vulnerabilities in C/C++ source code. Versions prior to 2.0.20 have an improper input neutralization issue leading to output manipulation, specifically, Terminal/ANSI Escape Sequence Injection and XML Injection. A malicious file whose name contains ANSI escape sequences can end up being included in flawfinder's standard terminal output, with many effects. Untrusted fields (such as filenames, categories, or code context text) were not properly sanitized when generating structured reports. An attacker could exploit this to corrupt CSV formats or inject arbitrary XML attributes into SonarQube outputs via output_sonar(). It impacts those who use flawfinder to evaluate intentionally malicious filenames or file contents. This issue has been fully patched in Version 2.0.20 (released 2026-05-16). There is no configuration-based workaround within older versions of flawfinder. If an immediate upgrade is not possible, users can mitigate the risk by pre-scanning filenames, inspecting raw output, and/or restricting untrusted inputs.
What to do
Fixed builds are available from PyPI: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | flawfinder | Fix pending | UBUNTU-CVE-2026-48813 | |
| Ubuntu 26.04 | flawfinder | Under investigation | UBUNTU-CVE-2026-48813 | |
| Ubuntu 24.04 | flawfinder | Under investigation | UBUNTU-CVE-2026-48813 | |
| Ubuntu 22.04 | flawfinder | Under investigation | UBUNTU-CVE-2026-48813 | |
| Ubuntu 20.04 | flawfinder | Fix pending | UBUNTU-CVE-2026-48813 | |
| Ubuntu 18.04 | flawfinder | Fix pending | UBUNTU-CVE-2026-48813 | |
| Ubuntu 16.04 | flawfinder | Fix pending | UBUNTU-CVE-2026-48813 | |
| PyPI library | flawfinder | Fixed | 2.0.20 | GHSA-4c3c-r6p8-c863 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- david-a-wheeler flawfinder: affected: < 2.0.20
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.