Weaknesses of type CWE-22

5,863 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-39367HIGHVulnerability in handling of uploaded QTI ZIP filesEPSS 1.0%CVE-2024-27145CRITICALMultiple Post-authenticated Remote Code ExecutionEPSS 1.0%CVE-2023-30265MEDIUMCLTPHP <=6.0 is vulnerable to Directory Traversal.EPSS 1.0%CVE-2018-25048HIGHCodesys Runtime Improper Limitation of a PathnameEPSS 1.0%CVE-2024-7565HIGHSMARTBEAR SoapUI unpackageAll Directory Traversal Remote Code Execution VulnerabilityEPSS 1.0%CVE-2022-45894MEDIUMGetFile.aspx in Planet eStream before 6.72.10.07 allows ..\ directory traversal to read arbitrary local files.EPSS 1.0%CVE-2021-25020—CAOS < 4.1.9 - Admin+ Arbitrary Folder Deletion via Path TraversalEPSS 1.0%CVE-2022-0673—A flaw was found in LemMinX in versions prior to 0.19.0. Cache poisoning of external schema files due to directory traversal.EPSS 1.0%CVE-2021-25021—OMGF < 4.5.12 - Admin+ Arbitrary Folder Deletion via Path TraversalEPSS 1.0%CVE-2024-5709HIGHWPBakery <= 7.7 - Authenticated (Author+) Local File InclusionEPSS 1.0%CVE-2024-5548HIGHDirectory Traversal in stitionai/devikaEPSS 1.0%CVE-2024-13910HIGHDatabase Backup and check Tables Automated With Scheduler 2024 <= 2.36 - Authenticated (Administrator+) Arbitrary File DeletionEPSS 1.0%CVE-2024-25006HIGHXenForo before 2.2.14 allows Directory Traversal (with write access) by an authenticated user who has permissions to administer styles, and EPSS 1.0%CVE-2020-5001MEDIUMIBM Financial Transaction Manager path traversalEPSS 1.0%CVE-2023-38019HIGHIBM SOAR QRadar Plugin App directory traversalEPSS 1.0%CVE-2025-3294HIGHWP Editor <= 1.2.9.1 - Authenticated (Administrator+) Directory Traversal to Arbitrary File UpdateEPSS 1.0%CVE-2022-24878HIGHImproper path handling in Kustomization files allows for denial of serviceEPSS 1.0%CVE-2026-28807HIGHPath Traversal in wisp.serve_static allows arbitrary file readEPSS 1.0%CVE-2022-27611MEDIUMImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in webapi component in Synology Audio Station bEPSS 1.0%CVE-2026-64677MEDIUMAnki's local HTTP server is vulnerable to directory traversal attacksEPSS 1.0%