Property
Languagec
Severitymedium
CWECWE-134: Use of Externally-Controlled Format String
Confidence LevelLow
Impact LevelHigh
Likelihood LevelMedium

Description#

Using user-supplied input directly as the format string in functions like sprintf, printf, or vsprintf is dangerous. This allows attackers to manipulate the format string, leading to unexpected behavior or memory access.

Impact#

An attacker could exploit this to read sensitive memory, crash the program, or execute arbitrary code, leading to data breaches or full system compromise. This vulnerability is severe and can be used to take control of the application or leak confidential information.