CWE-134: Use of Externally-Controlled Format String
417 CVEs have CWE-134 as their primary weakness. 3 of them are in the CISA KEV catalog. The highest EPSS score among them is 80.684%.
The product uses a function that accepts a format string as an argument, but the format string originates from an external source.
Child of CWE-668: Exposure of Resource to Wrong Sphere
Mitigations
- Requirements: Choose a language that is not subject to this flaw.
- Implementation: Ensure that all format string functions are passed a static string which cannot be controlled by the user, and that the proper number of arguments are always sent to that function as well. If at all possible, use functions that do not support the %n operator in format strings. [REF-116] [REF-117]
- Build and Compilation: Run compilers and linkers with high warning levels, since they may detect incorrect usage.
Observed examples
- CVE-2002-1825: format string in Perl program
- CVE-2001-0717: format string in bad call to syslog function
- CVE-2002-0573: format string in bad call to syslog function
- CVE-2002-1788: format strings in NNTP server responses
- CVE-2006-2480: Format string vulnerability exploited by triggering errors or warnings, as demonstrated via format string specifiers in a .bmp filename.
- CVE-2007-2027: Chain: untrusted search path enabling resultant format string by loading malicious internationalization messages.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2024-23113 | 2024-02-15 | CRITICAL | 9.8 | 61.725% | A use of externally-controlled format string in Fortinet FortiOS versions 7.4.0 through 7.4.2, 7.2.0 through 7.2.6, 7.0.0 through 7.0.13, FortiProxy versions… |
| CVE-2019-1579 | 2019-07-19 | HIGH | 8.1 | 44.159% | Remote Code Execution in PAN-OS 7.1.18 and earlier, PAN-OS 8.0.11-h1 and earlier, and PAN-OS 8.1.2 and earlier with GlobalProtect Portal or GlobalProtect… |
| CVE-2020-3118 | 2020-02-05 | HIGH | 8.8 | 11.685% | A vulnerability in the Cisco Discovery Protocol implementation for Cisco IOS XR Software could allow an unauthenticated, adjacent attacker to execute arbitrary… |
| CVE-2026-53998 | 2026-11-16 | CRITICAL | 10.0 | 0.356% | Phoenix is an AI observability and evaluation platform. From 13.0.0 until 15.7.0, the applyChatTemplate GraphQL query passed attacker-controlled F-string… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-134'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-134'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).