# CVE-2026-48813: Flawfinder output manipulation via untrusted filenames and source text

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-02)
- Published: 2026-06-26T20:52:25.000Z
- Modified: 2026-09-09T20:55:04.493Z
- Also known as: GHSA-4c3c-r6p8-c863, PYSEC-2026-2480
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- david-a-wheeler flawfinder: < 2.0.20
- flawfinder (PyPI): before 2.0.20

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 0.0 None `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N`

## References

- <https://github.com/david-a-wheeler/flawfinder/security/advisories/GHSA-4c3c-r6p8-c863> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48813> (advisory)
- <https://github.com/david-a-wheeler/flawfinder> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flawfinder/PYSEC-2026-2480.yaml> (web)
- <https://pypi.org/project/flawfinder> (package)
- <https://github.com/advisories/GHSA-4c3c-r6p8-c863> (advisory)

## Sources

- CVE List: [CVE-2026-48813](https://www.cve.org/CVERecord?id=CVE-2026-48813), CVE Terms of Use, modified 2026-08-12
- GitHub Advisory Database: [GHSA-4c3c-r6p8-c863](https://github.com/advisories/GHSA-4c3c-r6p8-c863), CC-BY-4.0, modified 2026-08-11
- NVD: [CVE-2026-48813](https://nvd.nist.gov/vuln/detail/CVE-2026-48813), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-2480](https://osv.dev/vulnerability/PYSEC-2026-2480), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-48813 · Whole record: https://cve.day/CVE-2026-48813.json · Rebuilt by cve.day 2026-11-25T22:59:32.506Z
