Skip to main content

flawfinder EUVDEUVD-2026-56901

| CVE-2026-48813 HIGH
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-06-26 https://github.com/david-a-wheeler/flawfinder GHSA-4c3c-r6p8-c863 PYSEC-2026-2480
8.7
CVSS 4.0 · Vendor: https://github.com/david-a-wheeler/flawfinder
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker submits PR with ANSI-crafted filenames
  2. Delivery
    CI pipeline invokes flawfinder on untrusted repository
  3. Exploit
    Escape sequences pass unsanitized to terminal output
  4. Execution
    Real security findings overwritten in reviewer's terminal
  5. Persist
    Reviewer sees false-clean output
  6. Impact
    Malicious code approved and merged

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires that the attacker control at least one filename or file content entry that flawfinder processes during a scan. Specifically: for ANSI terminal injection, the attacker must be able to place a file with a name containing control characters (including ESC sequences) in a directory passed to flawfinder, and the victim's terminal must render ANSI codes (the default for virtually all modern Linux, macOS, and Windows terminals). For SonarQube XML injection, the attacker must be able to influence fields such as filename, category, or source code context text, and the victim must invoke flawfinder's output_sonar() function to generate a SonarQube-format report. For CSV injection, similarly, the victim must generate CSV output from flawfinder using untrusted input. Exploitation is limited to scenarios where flawfinder scans adversarially controlled content - organizations scanning only their own trusted repositories are not exposed. The CVSS PR:N indicates that the attacker requires no privileges on the system running flawfinder; they only need their files to reach the scan target, which in CI/CD environments can occur via a pull request submission.

Impact

The vendor-assigned CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N) rates this as a high-severity integrity issue with no confidentiality or availability impact. The AV:N designation warrants scrutiny: flawfinder does not expose a network service, so 'network' reflects the indirect threat model where an attacker supplies malicious files via a network-reachable channel (e.g., a pull request to a repository scanned in CI/CD) rather than directly exploiting a listening port. The integrity impact is genuinely high - successfully hiding security findings from a flawfinder run defeats the purpose of the scan entirely, and SonarQube XML injection could corrupt security dashboards consumed by downstream systems. No EPSS score was provided in the source data, and this CVE does not appear in CISA KEV. The 'RCE' tag present in the intelligence metadata is almost certainly incorrect for this vulnerability - nothing in the advisory description, CVSS vector, or CWE-74 classification supports remote code execution; this tag should be disregarded. Real-world risk is bounded by the narrow deployment context: only organizations running flawfinder against untrusted or adversarial repositories (e.g., CI pipelines scanning external PRs or submitted code) are exposed. Internal-only codescanning against trusted sources carries negligible risk.

Exploit ScenarioDerived

An attacker submits a pull request to an open-source project whose CI pipeline runs flawfinder automatically, naming one or more submitted files with embedded ANSI escape sequences designed to clear previous terminal lines and print a false 'No issues found' message. When the CI log or a human reviewer inspects the flawfinder terminal output, genuine security findings reported earlier in the output are overwritten or hidden, causing the reviewer to approve the pull request under the false impression that no vulnerabilities were detected. No confirmed public exploit code exists at time of analysis, but the technique is well-documented in terminal injection literature and is straightforward to replicate given the public advisory details.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 11, 2026

Output manipulation in flawfinder, the Python-based C/C++ source code security scanner, allows attackers who control scanned filenames or file contents to inject ANSI escape sequences into terminal output and arbitrary content into structured CSV and SonarQube XML reports. Versions prior to 2.0.20 fail to neutralize untrusted fields - including filenames, categories, and code context text - before including them in tool output, enabling an adversary to hide critical security findings from human reviewers or corrupt downstream report processing. Vendor-released patch 2.0.20 (2026-05-16) is available; no KEV listing or confirmed public exploit code has been identified at time of analysis, though the GHSA advisory is public and the exploitation mechanism is straightforward to replicate.

Earlier versions of this analysis (1)
v1 Jun 26, 2026 - 21:25

Output manipulation in flawfinder before version 2.0.20 allows an attacker who controls repository filenames or file content to inject ANSI escape sequences into terminal output, visually hiding or falsifying scan results from human reviewers. The same untrusted-input handling gap extends to structured report generation: CSV reports and SonarQube XML output (via the output_sonar() function) can be corrupted or attribute-injected when filenames, categories, or code context contain unescaped special characters. No public exploit code is identified and the vulnerability is not in CISA KEV; however, the defense-evasion potential is meaningful for organizations running flawfinder against untrusted or adversarial repositories in CI/CD pipelines. The 'RCE' tag present in the intelligence metadata is not supported by the advisory and appears to be a mis-classification.

RemediationAI

Upgrade to flawfinder 2.0.20 or later immediately using pip install --upgrade flawfinder; this is the only fully effective fix per the vendor advisory (https://github.com/david-a-wheeler/flawfinder/security/advisories/GHSA-4c3c-r6p8-c863). For GitHub Actions consumers, update workflow references to david-a-wheeler/flawfinder@2.0.20 or a later tag. If an immediate upgrade is not possible, three compensating controls are available, each with trade-offs: (1) Pre-scan filenames programmatically to reject any containing control characters (ASCII < 0x20 or ESC sequences) before passing the repository to flawfinder - this blocks the ANSI injection vector but requires building and maintaining a validation script; (2) Review flawfinder terminal output in a text editor or logging pipeline that renders raw bytes rather than interpreting ANSI codes (e.g., cat -v, less -R disabled, or piping to a log file) - this reveals injection attempts but changes the reviewer workflow; (3) Disable SonarQube and CSV report generation when scanning untrusted repositories - this eliminates the structured-output injection vectors but removes report integration with downstream tooling. None of these workarounds are available as configuration flags within flawfinder itself.

Affected VersionsENISA

flawfinder < 2.0.20

Affected Packages

pypi flawfinder fix: 2.0.20

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Flawfinder (pip package: flawfinder, CPE: pkg:pip/flawfinder) is a static analysis tool that scans C and C++ source code for common security weaknesses. The root cause is CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - Injection), which manifests in two forms: (1) ANSI/terminal escape sequence injection, where filenames containing control characters pass through to standard terminal output without stripping or escaping, enabling an adversary to issue terminal control codes that reposition the cursor, overwrite output lines, or clear the screen; (2) CSV and XML injection in structured report generation, specifically the output_sonar() function, where untrusted fields such as filenames, finding categories, and source code context are interpolated into XML attribute values without encoding, allowing injection of arbitrary XML attributes or structure into SonarQube-formatted reports. Both attack surfaces share the same underlying failure: user-controlled data is treated as safe output content rather than being sanitized or encoded for its output context.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/david-a-wheeler/flawfinder) PRIMARY 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
vuln.today AI 7.5 HIGH

Attacker supplies malicious files remotely (AV:N, PR:N); no special conditions required (AC:L); integrity of scan output is wholly compromised (I:H); no confidentiality or availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/david-a-wheeler/flawfinder).

CVSS VectorVendor: https://github.com/david-a-wheeler/flawfinder

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Analysis Updated
Aug 11, 2026 - 20:28 vuln.today
v2 - CVSS changed
CVSS changed
Aug 11, 2026 - 20:22 NVD
8.7 (HIGH)

DescriptionCVE.org

Impact

This vulnerability is an improper input neutralization issue leading to output manipulation, specifically, Terminal/ANSI Escape Sequence Injection and XML Injection:

  • Terminal Output Spoofing: A malicious file whose name contains ANSI escape sequences can end up being included in flawfinder's standard terminal output, with many effects. For example, this might allow an attacker to hide critical scan results, falsely making it appear to a human reviewer that no security issues were found.
  • CSV and XML Injection: 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.

The initial filename injection problem was reported by Dan Lenz https://www.linkedin.com/in/dan-lenz/

The other vulnerabilities were found by flawfinder project leader David A. Wheeler, GitHub david-a-wheeler, https://dwheeler.com/

Patches

This issue has been fully patched in Version 2.0.20 (released 2026-05-16). All users should upgrade to version 2.0.20 or later immediately. If you use Python's package manager, you can upgrade using pip install --upgrade flawfinder. If you are consuming flawfinder via GitHub Actions, ensure your workflow points to david-a-wheeler/flawfinder@2.0.20 or later.

Workarounds

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: Manually or programmatically verifying that target repositories do not contain filenames with control characters (including ANSI escape sequences) before passing them to flawfinder.
  • Inspecting raw output: Reviewing flawfinder outputs in a text editor or logging mechanism that explicitly displays or strips raw escape sequences, rather than relying on live terminal rendering.
  • Restricting untrusted inputs: Avoiding the generation of SonarQube or CSV reports from completely untrusted repositories until the tool is updated.

Resources

See the flawfinder GitHub Repository: https://github.com/david-a-wheeler/flawfinder

Executive ViewAI

Why It Matters

Flawfinder vulnerability scanning results become unreliable in versions prior to 2.0.20 when processing attacker-controlled file names or content, as the tool fails to sanitize these inputs before generating security reports. This creates a direct blind spot in security visibility-critical vulnerabilities could be hidden in scan reports or subsequent processing tools could be corrupted, undermining the organization's ability to identify and prioritize security risks. Any engineering team relying on flawfinder for vulnerability detection faces the risk of false confidence in their security posture.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche C/C++ static analysis tool, limited CI/CD adoption
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy