Weaknesses of type CWE-22

5,845 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-2026-2426MEDIUMWP-DownloadManager <= 1.69 - Authenticated (Administrator+) Path Traversal to Arbitrary File Deletion via 'file' ParameterEPSS 1.3%CVE-2023-28465HIGHThe package-decompression feature in HL7 (Health Level 7) FHIR Core Libraries before 5.6.106 allows attackers to copy arbitrary files to cerEPSS 1.3%CVE-2022-39034MEDIUMSmart eVision - Path Traversal -2EPSS 1.3%CVE-2026-18274HIGHHeimdall Data Database Proxy uploadJar Directory Traversal Remote Code Execution VulnerabilityEPSS 1.3%CVE-2018-16478—A Path Traversal in simplehttpserver versions <=0.2.1 allows to list any file in another folder of web root.EPSS 1.3%CVE-2021-22804—A CWE-22: Improper Limitation of a Pathname to a Restricted Directory vulnerability exists that could cause disclosure of arbitrary files beEPSS 1.3%CVE-2023-40747HIGHDirectory traversal vulnerability exists in A.K.I Software's PMailServer/PMailServer2 products' CGIs included in Internal Simple Webserver. EPSS 1.3%CVE-2024-33502MEDIUMAn improper limitation of a pathname to a restricted directory ('path traversal') in Fortinet FortiManager, FortiAnalyzer versions 7.4.0 thrEPSS 1.3%CVE-2022-20822HIGHCisco Identity Services Engine Unauthorized File Access VulnerabilityEPSS 1.3%CVE-2011-10009HIGHS40 CMS 0.4.2 Path TraversalEPSS 1.3%CVE-2026-53598HIGHPrompty: Arbitrary File Read via ${file:path} Reference ExpansionEPSS 1.3%CVE-2025-61666HIGHTraccar Unauthenticated Local File Inclusion on Windows - Leakage of Traccar Config FileEPSS 1.3%CVE-2021-22704—A CWE-22: Improper Limitation of a Pathname to a Restricted Directory vulnerability exists in Harmony/HMI Products Configured by Vijeo DesigEPSS 1.3%CVE-2021-41150HIGHImproper sanitization of delegated role names in toughEPSS 1.3%CVE-2023-27507CRITICALMicroEngine Mailform version 1.1.0 to 1.1.8 contains a path traversal vulnerability. If the product's file upload function and server save oEPSS 1.3%CVE-2024-29672HIGHDirectory Traversal vulnerability in zly2006 Reden before v.0.2.514 allows a remote attacker to execute arbitrary code via the DEBUG_RTC_REQEPSS 1.3%CVE-2021-32662MEDIUMTechDocs mkdocs.yml path traversalEPSS 1.3%CVE-2023-26687HIGHDirectory Traversal vulnerability in CS-Cart MultiVendor 4.16.1 allows remote attackers to obtain sensitive information via the product_dataEPSS 1.3%CVE-2024-13545CRITICALBootstrap Ultimate <= 1.4.9 - Unauthenticated Limited Local File InclusionEPSS 1.3%CVE-2013-10063MEDIUMNetgear SPH200D <= 1.0.4.80 Path Traversal via HTTP GETEPSS 1.3%