Flawfinder output manipulation via untrusted filenames and source text
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| david-a-wheeler | flawfinder | before 2.0.20 | 2.0.20 | Patch available | CNA |
| — | flawfinder (PyPI) | before 2.0.20 | 2.0.20 | Patch available | GHSA-4c3c-r6p8-c863 |
- flawfinder Vendordavid-a-wheeler Affected before 2.0.20 Fixed in 2.0.20 Patch available CNA
- flawfinder (PyPI) Vendor— Affected before 2.0.20 Fixed in 2.0.20 Patch available GHSA-4c3c-r6p8-c863
Remediation
- Fix · CNA flawfinder (david-a-wheeler) Fixed in 2.0.20
- Fix · GHSA-4c3c-r6p8-c863 flawfinder (PyPI) Fixed in 2.0.20 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48813
- 2026-10-03 Alias added: GHSA-4c3c-r6p8-c863
References
Sources
- CVE-2026-48813 · CVE Program
- CVE-2026-48813 · NVD
- FIRST EPSS
- GHSA-4c3c-r6p8-c863 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-48813 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences