Skip to content
OpenAdvisories
High · 8.7 Public exploit CVE-2026-48813 EUVD-2026-56901GHSA-4c3c-r6p8-c863PYSEC-2026-2480

Flawfinder output manipulation via untrusted filenames and source text

Published Aug 11, 2026 · Updated Aug 12, 2026 · 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.

Affected products

VendorProductAffectedFixed
david-a-wheeler flawfinder < 2.0.20 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 flawfinder No fix yet —
Ubuntu 26.04 LTS flawfinder No fix yet —
Ubuntu 24.04 LTS flawfinder No fix yet —
Ubuntu 22.04 LTS flawfinder No fix yet —
Ubuntu 20.04 LTS flawfinder No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS flawfinder No fix yet —
Ubuntu 16.04 LTS flawfinder No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI flawfinder < 2.0.20 2.0.20 GHSA-4c3c-r6p8-c863

References