Weaknesses of type CWE-22

5,972 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-2025-4893MEDIUMjammy928 CoinExchange_CryptoExchange_Java File Upload Endpoint UploadFileUtil.java uploadLocalImage path traversalEPSS 0.5%CVE-2026-40605MEDIUMTautulli Vulnerable to Authenticated Path Traversal in Cache Deletion APIEPSS 0.5%CVE-2025-14420HIGHpdfforge PDF Architect CBZ File Parsing Directory Traversal Remote Code Execution VulnerabilityEPSS 0.5%CVE-2025-4868MEDIUMmerikbest ecommerce-spring-reactjs File Upload Endpoint admin path traversalEPSS 0.5%CVE-2025-59336MEDIUMRelative Path Traversal in LuanoxEPSS 0.5%CVE-2023-45026MEDIUMQTS, QuTS hero, QuTScloudEPSS 0.5%CVE-2026-47682HIGHCVAT: Missing path-containment validation in multiple entry points allows arbitrary path writesEPSS 0.5%CVE-2024-33869MEDIUMAn issue was discovered in Artifex Ghostscript before 10.03.1. Path traversal and command execution can occur (via a crafted PostScript docuEPSS 0.5%CVE-2026-44353MEDIUMStreamlink: Arbitrary local file read via file:// URI in HLS and DASHEPSS 0.5%CVE-2026-91012CRITICALApache Karaf: Path Traversal in Config Service Allows Manager-to-Admin Privilege EscalationEPSS 0.5%CVE-2025-64184HIGHDosage vulnerable to Directory Traversal through crafted HTTP responsesEPSS 0.5%CVE-2026-30234MEDIUMOpenProject BIM BCF XML Import: <Snapshot> Path Traversal Leads to Arbitrary Local File Read (AFR)EPSS 0.5%CVE-2026-54468MEDIUMDell Unisphere for PowerMax, version(s) 10.3.0.5 and prior, contain(s) a path traversal vulnerability. A low privileged attacker with remoteEPSS 0.5%CVE-2026-9035MEDIUMMultiple vulnerabilities in Aspera applications.EPSS 0.5%CVE-2025-66300HIGHGrav is vulnerable to Arbitrary File ReadEPSS 0.5%CVE-2026-70424MEDIUMDell OpenManage Enterprise, versions prior to 4.7.0, contains an Improper Limitation of a Pathname to a Restricted Directory ('Path TraversaEPSS 0.5%CVE-2026-7646MEDIUMLangflow is affected by security vulnerabilities in Model Context Protocol featuresEPSS 0.5%CVE-2026-67247HIGHA path traversal vulnerability was found in the IHM Log handling of ADMEPSS 0.5%CVE-2026-9153MEDIUMArbitrary File Read in Rapid7 InsightConnect Sed PluginEPSS 0.5%CVE-2026-54550HIGHIzPack: Path Traversal in UnpackerBase allows writing files outside the installation directory via malicious pack entriesEPSS 0.5%