p PatchFirst

CVE-2026-48813

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.7 · High · EPSS 0.4% · Public exploit · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • flawfinder

    Versions
    • < 2.0.20: Affected

    No fix published

  • flawfinder PyPI

    Versions
    • 2.0.10
    • 2.0.11
    • 2.0.14
    • 2.0.15
    • 2.0.16
    • 2.0.17
    • 2.0.18
    • 2.0.19
    • 2.0.3
    • 2.0.4
    • 2.0.5
    • 2.0.6
    • 2.0.7
    • 2.0.8
    • 2.0.9
    Affected ranges
    • ECOSYSTEM: < 2.0.20

    Update to 2.0.20

  • flawfinder Ubuntu:16.04:LTS

    Versions
    • 1.31-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • flawfinder Ubuntu:18.04:LTS

    Versions
    • 1.31-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • flawfinder Ubuntu:20.04:LTS

    Versions
    • 1.31-1
    • 2.0.10-0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • flawfinder Ubuntu:22.04:LTS

    Versions
    • 2.0.10-0.1
    • 2.0.19-1
    • 2.0.19-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • flawfinder Ubuntu:24.04:LTS

    Versions
    • 2.0.19-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • flawfinder Ubuntu:26.10

    Versions
    • 2.0.19-1.1build1
    • 2.0.19-1.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • flawfinder Ubuntu:26.04:LTS

    Versions
    • 2.0.19-1.1
    • 2.0.19-1.1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →