---
id: CVE-2026-48813
title: >-
  Flawfinder is a a static analysis tool for finding vulnerabilities in C/C++
  source code
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 Inj…
severity: low
cwe:
  - CWE-74
vendor: flawfinder
product: flawfinder
affected:
  - flawfinder < 2.0.20
patched:
  - flawfinder 2.0.20
published: '2026-08-11'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:55:04.493'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48813'
references:
  - url: >-
      https://github.com/david-a-wheeler/flawfinder/security/advisories/GHSA-4c3c-r6p8-c863
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-4c3c-r6p8-c863'
tags:
  - nvd
  - exploit-available
  - ghsa
  - pip
epss: 0.00444
epssPercentile: 0.35856
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/7alen7/CVE-2026-48813-POC'
  checkedAt: '2026-09-25T08:20:59.784Z'
exploitAvailable: true
ecosystem: pip
ingestedAt: '2026-06-29T13:24:35.262Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-48813)

Affected packages:

- `flawfinder < 2.0.20`

Patched in:

- `flawfinder 2.0.20`

Source: https://github.com/advisories/GHSA-4c3c-r6p8-c863
