Weaknesses of type CWE-22

6,630 results

Traversal de diretório (path traversal)

A aplicação recebe um caminho de arquivo fornecido pelo usuário e o usa para acessar arquivos sem validar adequadamente se o resultado fica dentro do diretório permitido. Um atacante injeta sequências como '../' ou '..' para "escapar" do diretório esperado e acessar arquivos sensíveis do sistema.

Example

Um site permite download de arquivos do diretório /uploads passando o nome via URL: download.php?file=documento.pdf. Um atacante envia file=../../etc/passwd e consegue ler arquivos fora de /uploads, porque o código não neutraliza a sequência '..'.

How to mitigate

Valide e canonicalize todo caminho fornecido pelo usuário antes de usá-lo: implemente uma whitelist de nomes permitidos, normalize caminhos para sua forma canônica, verifique se o resultado está dentro do diretório esperado, e use APIs de segurança da linguagem (ex: Path.normalize() + validação de prefix em Java, pathlib em Python).

CVE-2022-25895HIGHDirectory TraversalEPSS 1.4%CVE-2026-24770CRITICALRAGFlow Affected by Zip Slip Remote Code Execution (RCE) in MinerUParserEPSS 1.4%CVE-2021-1532MEDIUMCisco TelePresence Collaboration Endpoint and RoomOS Software Arbitrary File Read VulnerabilityEPSS 1.4%CVE-2022-32963HIGHITPison OMICARD EDM - Path Traversal-1EPSS 1.4%CVE-2022-35216HIGHITPison OMICARD EDM - Use of Hard-coded CredentialsEPSS 1.4%CVE-2025-6794CRITICALMarvell QConvergeConsole saveAsText Directory Traversal Remote Code Execution VulnerabilityEPSS 1.4%CVE-2012-10024HIGHXBMC ≤ 11.0 Web Server Path TraversalEPSS 1.4%CVE-2024-40617MEDIUMPath traversal vulnerability exists in FUJITSU Network Edgiot GW1500 (M2M-GW for FENICS). If a remote authenticated attacker with User ClassEPSS 1.4%CVE-2021-41185HIGHDownload file outside intended directoryEPSS 1.4%CVE-2025-27782HIGHApplio allows arbitrary file write in inference.pyEPSS 1.4%CVE-2024-7924MEDIUMZZCMS list.php path traversalEPSS 1.4%CVE-2022-25931HIGHDirectory TraversalEPSS 1.4%CVE-2026-59866CRITICALKiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceNameEPSS 1.4%CVE-2026-2426MEDIUMWP-DownloadManager <= 1.69 - Authenticated (Administrator+) Path Traversal to Arbitrary File Deletion via 'file' ParameterEPSS 1.4%CVE-2021-21269HIGHPath Traversal in KeymakerEPSS 1.4%CVE-2023-24960HIGHIBM InfoSphere Information Server information disclosureEPSS 1.4%CVE-2020-10634—SAE IT-systems FW-50 Remote Telemetry Unit (RTU). A specially crafted request could allow an attacker to view the file structure of the affeEPSS 1.4%CVE-2022-20822HIGHCisco Identity Services Engine Unauthorized File Access VulnerabilityEPSS 1.4%CVE-2025-6798HIGHMarvell QConvergeConsole deleteAppFile Directory Traversal Arbitrary File Deletion VulnerabilityEPSS 1.4%CVE-2021-27461—A vulnerability has been found in multiple revisions of Emerson Rosemount X-STREAM Gas Analyzer. The affected webserver applications allow aEPSS 1.4%