CWE•Base•Draft•20 recent CVEs
CWE-134Use of Externally-Controlled Format String
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
- Confidentiality→Read MemoryFormat string problems allow for information disclosure which can severely simplify exploitation of the program.
- Integrity,Confidentiality,Availability→Modify Memory,Execute Unauthorized Code or CommandsFormat string problems can result in the execution of arbitrary code, buffer overflows, denial of service, or incorrect data representation.
Potential mitigations
- RequirementsChoose a language that is not subject to this flaw.
- ImplementationEnsure 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 CompilationRun compilers and linkers with high warning levels, since they may detect incorrect usage.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-62422026-06-06CVE-2026-62412026-06-06CVE-2026-502119.82026-06-04CVE-2026-78353.12026-05-21CVE-2026-64744.32026-05-14CVE-2026-444074.72026-05-07CVE-2026-65394.42026-04-30CVE-2026-30086.62026-04-27CVE-2026-68435.52026-04-22CVE-2025-641576.72026-02-10CVE-2026-221907.52026-01-07CVE-2024-358459.12024-05-17CVE-2017-24038.82017-04-02CVE-2017-55244.32017-03-23CVE-2017-38597.52017-03-22CVE-2017-56137.82017-03-03CVE-2013-73862014-06-02CVE-2014-13152014-04-23CVE-2009-51412014-04-01CVE-2007-61832007-11-30