Weaknesses of type CWE-22

6,633 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-65346CRITICALalexusmai laravel-file-manager 3.3.1 and below is vulnerable to Directory Traversal. The unzip/extraction functionality improperly allows arEPSS 1.0%CVE-2026-5478HIGHEverest Forms <= 3.4.4 - Unauthenticated Arbitrary File Read and Deletion via Upload Field 'old_files' ParameterEPSS 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-2023-30265MEDIUMCLTPHP <=6.0 is vulnerable to Directory Traversal.EPSS 1.0%CVE-2024-5709HIGHWPBakery <= 7.7 - Authenticated (Author+) Local File InclusionEPSS 1.0%CVE-2023-42487HIGHSoundminer – CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')EPSS 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-2024-5548HIGHDirectory Traversal in stitionai/devikaEPSS 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-2026-79983HIGHApache Camel: camel-ftp resolved the remote path of a polled file from the name reported in the server directory listing without constraining it to the directory being polled, so a listing entry containing traversal segments could be moved outsideEPSS 1.0%CVE-2026-79986HIGHApache Camel: camel-azure-files resolved the remote path of a polled file from the name reported in the server directory listing without constraining it to the directory being polled, so a listing entry containing traversal segments could be moved outsideEPSS 1.0%CVE-2024-13910HIGHDatabase Backup and check Tables Automated With Scheduler 2024 <= 2.36 - Authenticated (Administrator+) Arbitrary File DeletionEPSS 1.0%CVE-2025-69820MEDIUMDirectory Traversal vulnerability in Beam beta9 v.0.1.521 allows a remote attacker to obtain sensitive information via the joinCleanPath funEPSS 1.0%CVE-2020-5001MEDIUMIBM Financial Transaction Manager path traversalEPSS 1.0%CVE-2023-38019HIGHIBM SOAR QRadar Plugin App directory traversalEPSS 1.0%CVE-2022-24878HIGHImproper path handling in Kustomization files allows for denial of serviceEPSS 1.0%CVE-2026-64677MEDIUMAnki's local HTTP server is vulnerable to directory traversal attacksEPSS 1.0%CVE-2024-44867HIGHphpok v3.0 was discovered to contain an arbitrary file read vulnerability via the component /autoload/file.php.EPSS 1.0%CVE-2022-1850MEDIUMPath Traversal in filegator/filegatorEPSS 1.0%