Skip to content
Heist/ feed
Back to feed
High

flawfinder — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-48813

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.

Products
flawfinder
Affected versions
1.31-1, 2.0.10-0.1, 2.0.19-1, 2.0.19-1.1, 2.0.19-1.1build1, 2.0.19-1.2
Fixed versions
Not specified
CVEs
CVE-2026-48813
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:07 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-48813

core-osv · Original source

Published 11 Aug 2026, 20:17 UTC

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.

osv:UBUNTU-CVE-2026-48813

flawfinder

Fixed versions: Not specified

flawfinder

Fixed versions: Not specified

flawfinder

Fixed versions: Not specified

flawfinder

Fixed versions: Not specified

flawfinder

Fixed versions: Not specified

flawfinder

Fixed versions: Not specified

flawfinder

Fixed versions: Not specified

Complete source record
{
  "id": "442ccc52c36f4d188fb79995b8eb90cf0ecdfc78df76497f8c222b66b6161060",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-48813",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-48813",
    "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 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.",
    "evidence": "osv:UBUNTU-CVE-2026-48813",
    "products": [
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.31-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.31-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.31-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.0.10-0.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.10-0.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.0.19-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.0.19-1.1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.19-1.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.19-1.1build1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.0.19-1.2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "flawfinder",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.19-1.1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.0.19-1.1build1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-48813",
      "aliases": [
        "UBUNTU-CVE-2026-48813"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.31-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "1.31-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.31-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "1.31-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.31-1",
            "2.0.10-0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "2.0.10-0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.0.10-0.1",
            "2.0.19-1",
            "2.0.19-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "2.0.19-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.0.19-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "2.0.19-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.0.19-1.1build1",
            "2.0.19-1.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "2.0.19-1.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "flawfinder",
            "purl": "pkg:deb/ubuntu/flawfinder?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.0.19-1.1",
            "2.0.19-1.1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48813.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "flawfinder",
                "binary_version": "2.0.19-1.1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:23.949265611Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-48813"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-48813",
        "https://www.cve.org/CVERecord?id=CVE-2026-48813",
        "https://github.com/david-a-wheeler/flawfinder/security/advisories/GHSA-4c3c-r6p8-c863"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-48813",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360493,
  "published_at": "2026-08-11T20:17:00+00:00"
}