Weaknesses of type CWE-134

155 results

Uso de string de formato controlada externamente

Ocorre quando a aplicação passa uma string vinda de entrada do usuário diretamente como argumento de formato em funções como printf(), sprintf() ou logging. Um atacante pode injetar especificadores de formato (%x, %s, %n) para ler ou escrever dados arbitrários na memória, comprometendo confidencialidade e integridade.

Example

Um programa web recebe um parâmetro 'nome' do usuário e faz `printf(nome)` em vez de `printf("%s", nome)`. Um atacante envia 'nome=%x.%x.%x' e consegue vazar dados da pilha; ou usa '%n' para sobrescrever endereços de memória.

How to mitigate

Nunca passe entrada do usuário diretamente como string de formato. Use sempre um formato fixo: `printf("%s", entrada_usuario)` em C, ou equivalente em outras linguagens. Em logs, sanitize ou use APIs de logging estruturado que não interpretam strings de formato.

CVE-2023-41842MEDIUMA use of externally-controlled format string vulnerability [CWE-134] vulnerability in Fortinet allows a privileged attacker to execute unauEPSS 0.2%CVE-2026-3008MEDIUMVulnerability in Notepad++EPSS 0.2%CVE-2026-6474MEDIUMPostgreSQL timeofday() can disclose portions of server memoryEPSS 0.2%CVE-2023-21420HIGHUse of Externally-Controlled Format String vulnerabilities in STST TA prior to SMR Jan-2023 Release 1 allows arbitrary code execution.EPSS 0.2%CVE-2026-6539MEDIUMNotepad++ 8.9.3 Format String Injection via nativeLang.xmlEPSS 0.2%CVE-2023-21497MEDIUMUse of externally-controlled format string vulnerability in mPOS TUI trustlet prior to SMR May-2023 Release 1 allows local attackers to acceEPSS 0.2%CVE-2026-15809HIGHGithub.com/cri-o/cri-o: fix bypass for cve-2022-4318 — /etc/passwd injection via home envEPSS 0.2%CVE-2026-6242MEDIUMAuthenticated Format String Vulnerability in ONVIF Subscribe Service on TP-Link Tapo C520WSEPSS 0.2%CVE-2026-6241MEDIUMAuthenticated Format String Vulnerability in ONVIF AddScopes Method on TP-Link Tapo C520WSEPSS 0.2%CVE-2026-6390MEDIUMNano: gnu nano: arbitrary memory writes, information disclosure, or denial of service via format string vulnerability in error handling.EPSS 0.2%CVE-2025-10262MEDIUMAn unsanitized format validation vulnerability in Nokia SR LinuxEPSS 0.1%CVE-2026-6843MEDIUMNano: nano: format string vulnerability leads to denial of serviceEPSS 0.1%CVE-2026-15961MEDIUMPower System Information DisclosureEPSS 0.1%CVE-2026-16821HIGHVulnerabilities in IBM AIX and PowerVM VIOSEPSS 0.1%CVE-2026-84691HIGHAutomation-controller: automation-controller-container: automation-controller: format string injection in the api 4xx error log setting discloses django secret_key and database credentials to an administratorEPSS