Weaknesses of type CWE-22

5,931 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-42048CRITICALLangflow: Path Traversal in Langflow Knowledge Bases APIEPSS 0.6%CVE-2026-49136HIGHBanana Slides 0.4.0 Path Traversal via generate_image() in ai_service.pyEPSS 0.6%CVE-2025-68912HIGHWordPress HDForms plugin <= 1.6.1 - Arbitrary File Deletion vulnerabilityEPSS 0.6%CVE-2026-52756MEDIUMGhidra < 12.2 - Unauthenticated Path Traversal in Debugger ISF ServerEPSS 0.6%CVE-2025-59372MEDIUMA path traversal vulnerability has been identified in certain router models. A remote, authenticated attacker could exploit this vulnerabiliEPSS 0.6%CVE-2016-20076HIGHWordPress Simple-Backup 2.7.11 Arbitrary File Deletion and DownloadEPSS 0.6%CVE-2026-48544HIGHTaipy 4.1.1 Path Traversal via ElementLibrary.get_resource()EPSS 0.6%CVE-2026-56845HIGHAn unauthenticated path traversal (LFI) vulnerability exists under /custom-sounds/ when CustomSounds storage is configured to FileSystem. ByEPSS 0.6%CVE-2019-25295MEDIUMWP Cost Estimation < 9.660 - Upload Directory TraversalEPSS 0.6%CVE-2023-38399HIGHWordPress Phlox Portfolio plugin <= 2.3.1 - Unauthenticated Local File Inclusion vulnerabilityEPSS 0.6%CVE-2026-35050CRITICALtext-generation-webui affected by Remote Code Execution (RCE) through Path Traversal at "Session -> Save extention settings to user_data/settings.yaml".EPSS 0.6%CVE-2026-70200CRITICALAzure Logic Apps Elevation of Privilege VulnerabilityEPSS 0.6%CVE-2023-39163HIGHWordPress Phlox Shop plugin <= 2.0.0 - Unauthenticated Local File Inclusion vulnerabilityEPSS 0.6%CVE-2022-3939MEDIUMlanyulei ferry API file.go path traversalEPSS 0.6%CVE-2026-49982HIGHtmp: Type-confusion bypass of _assertPath in tmp@0.2.6 allows path traversal via non-string prefix/postfix/templateEPSS 0.6%CVE-2025-1228MEDIUMolajowon Loggrove Logfile Update page path traversalEPSS 0.6%CVE-2025-58162MEDIUMMobSF Vulnerable to Arbitrary File Write (AR-Slip) via Absolute Path in .a ExtractionEPSS 0.6%CVE-2023-49753HIGHWordPress Adifier System plugin < 3.1.4 - Local File Inclusion vulnerabilityEPSS 0.6%CVE-2021-24761—Error Log Viewer < 1.1.2 - Arbitrary Text File Deletion via CSRFEPSS 0.6%CVE-2024-41765MEDIUMIBM Engineering Lifecycle Optimization - Publishing directory traversalEPSS 0.6%