BaseDraft

CWE-134Use of Externally-Controlled Format String

Category: other

Description

The product uses a function that accepts a format string as an argument, but the format string originates from an external source.

Common consequences· 2

  • Confidentiality — Read Memory
    Format string problems allow for information disclosure which can severely simplify exploitation of the program.
  • Integrity / Confidentiality / Availability — Modify Memory, Execute Unauthorized Code or Commands
    Format string problems can result in the execution of arbitrary code, buffer overflows, denial of service, or incorrect data representation.

Potential mitigations· 3

  • [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.

Related CAPEC attack patterns· 2

CAPEC-135CAPEC-67

References

  1. https://cwe.mitre.org/data/definitions/134.html

Exploits (incoming)2

TypeTargetConfidenceTier
AttackPatternFormat String Injectioncapec-135100%live
AttackPatternString Format Overflow in syslog()capec-67100%live

(incoming)12

TypeTargetConfidenceTier
VulnerabilityCVE-2025-22482cve-2025-224820%live
VulnerabilityCVE-2025-24359cve-2025-243590%live
VulnerabilityCVE-2025-30269cve-2025-302690%live
VulnerabilityCVE-2025-36202cve-2025-362020%live
VulnerabilityCVE-2025-40600cve-2025-406000%live
VulnerabilityCVE-2025-46121cve-2025-461210%live
VulnerabilityCVE-2025-48826cve-2025-488260%live
VulnerabilityCVE-2025-55298cve-2025-552980%live
VulnerabilityCVE-2026-33210cve-2026-332100%live
KEVEntryPalo Alto Networks PAN-OS Remote Code Execution Vulnerabilitykev-cve-2019-15790%live
KEVEntryCisco IOS XR Software Discovery Protocol Format String Vulnerabilitykev-cve-2020-31180%live
KEVEntryFortinet Multiple Products Format String Vulnerabilitykev-cve-2024-231130%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Use of Potentially Dangerous Function
CWE
Excessive Use of Hard-Coded Literals in Initialization
CWE
Misinterpretation of Input
CWE
Use of Prohibited Code
CWE
Improper Validation of Specified Type of Input
CWE
Exposed Dangerous Method or Function
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.