{"id":"CVE-2026-48813","published":"2026-08-11T19:24:53Z","modified":"2026-08-12T13:09:06Z","title":"Flawfinder output manipulation via untrusted filenames and source text","vendor":"david-a-wheeler","product":"flawfinder","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00444,"percentile":0.39447,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/david-a-wheeler/flawfinder/security/advisories/GHSA-4c3c-r6p8-c863","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":7.89},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.09}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-05-17","earliestUrl":"https://github.com/7alen7/CVE-2026-48813-POC","repos":[{"name":"7alen7/CVE-2026-48813-POC","url":"https://github.com/7alen7/CVE-2026-48813-POC","stars":1,"created":"2026-05-17"}]},"first":{"date":"2026-05-17","source":"PoC-in-GitHub","url":"https://github.com/7alen7/CVE-2026-48813-POC"},"provenance":"source"},"vendorSlug":"david-a-wheeler","affectedVersions":[{"vendor":"david-a-wheeler","product":"flawfinder","versions":["< 2.0.20"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-12T13:08:36.500967Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flawfinder","vulnerableRanges":["<2.0.20"],"patched":["2.0.20"],"from":["GHSA-4c3c-r6p8-c863","PYSEC-2026-2480"],"provenance":"source"}],"summary":{"text":"Flawfinder, a static analysis tool for C/C++ source code, fails to neutralize untrusted fields such as filenames, categories, and code context text when generating its output, affecting versions prior to 2.0.20. An attacker who can supply a file with a malicious name or contents over the network, without authentication or user interaction, can cause ANSI escape sequence injection in terminal output, corrupt CSV reports, or inject arbitrary XML attributes into SonarQube output via output_sonar(), with the risk concentrated on users who scan intentionally malicious inputs.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:18Z"},"euvd":{"id":"EUVD-2026-56901","exploited":false,"provenance":"source"}}