ubuntu-cve-2026-48813
Vulnerability from osv_ubuntu
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": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "flawfinder",
"binary_version": "1.31-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "flawfinder",
"purl": "pkg:deb/ubuntu/flawfinder@1.31-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.31-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "flawfinder",
"binary_version": "1.31-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "flawfinder",
"purl": "pkg:deb/ubuntu/flawfinder@1.31-1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.31-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "flawfinder",
"binary_version": "2.0.10-0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "flawfinder",
"purl": "pkg:deb/ubuntu/flawfinder@2.0.10-0.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.31-1",
"2.0.10-0.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "flawfinder",
"binary_version": "2.0.19-1.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "flawfinder",
"purl": "pkg:deb/ubuntu/flawfinder@2.0.19-1.1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.10-0.1",
"2.0.19-1",
"2.0.19-1.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "flawfinder",
"binary_version": "2.0.19-1.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "flawfinder",
"purl": "pkg:deb/ubuntu/flawfinder@2.0.19-1.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.19-1.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "flawfinder",
"binary_version": "2.0.19-1.1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "flawfinder",
"purl": "pkg:deb/ubuntu/flawfinder@2.0.19-1.1build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.19-1.1",
"2.0.19-1.1build1"
]
}
],
"aliases": [],
"details": "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\u0027s 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.",
"id": "UBUNTU-CVE-2026-48813",
"modified": "2026-08-19T11:05:28Z",
"published": "2026-08-11T20:17:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-48813"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-48813"
},
{
"type": "REPORT",
"url": "https://github.com/david-a-wheeler/flawfinder/security/advisories/GHSA-4c3c-r6p8-c863"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"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": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-48813"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.