Weaknesses of type CWE-22

6,631 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-24718HIGHPath Traversal in ssr-pagesEPSS 1.1%CVE-2025-3381MEDIUMzhangyanbo2007 youkefu File Upload WebIMController.java path traversalEPSS 1.1%CVE-2026-52610CRITICALAn arbitrary file write/directory traversal vulnerability in reportico-web <= 8.1.0 allows remote attackers to create or overwrite files anyEPSS 1.1%CVE-2019-25258HIGHLogicalDOC Enterprise 7.7.4 Multiple Post-Authentication Directory Traversal VulnerabilitiesEPSS 1.1%CVE-2025-40549CRITICALSolarWinds Serv-U Path Restriction Bypass VulnerabilityEPSS 1.1%CVE-2026-117127HIGHDirectory Traversal vulnerability in Gleez GleezCMS v.1.2.0 allows a remote attacker to obtain sensitive information via the action_serve fuEPSS 1.1%CVE-2025-3065CRITICALDatabase Toolset <= 1.8.4 - Unauthenticated Arbitrary File DeletionEPSS 1.1%CVE-2026-19091HIGHGeoDirectory <= 2.8.169 - Authenticated (Subscriber+) Arbitrary File Deletion via 'post_type' Parameter via Query-String Bypass in geodir_save_post + geodir_delete_revisionEPSS 1.1%CVE-2025-11849MEDIUMVersions of the package mammoth from 0.3.25 and before 1.11.0; versions of the package mammoth from 0.3.25 and before 1.11.0; versions of thEPSS 1.1%CVE-2022-20726MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 1.1%CVE-2018-19945—Improper Limitation of a Pathname to a Restricted Directory in QTSEPSS 1.1%CVE-2026-119905MEDIUMWindows DNS Spoofing VulnerabilityEPSS 1.1%CVE-2026-77621CRITICALVector: Arbitrary file write in the file sink via templated path (path traversal).EPSS 1.1%CVE-2014-125133HIGHNativeChurch WordPress Theme < 1.6.2 Arbitrary File Download via download.phpEPSS 1.1%CVE-2024-10816HIGHLUNA RADIO PLAYER <= 6.24.01.24 - Unauthenticated Arbitrary File ReadEPSS 1.1%CVE-2025-1282HIGHCar Dealer Automotive WordPress Theme – Responsive <= 1.6.3 - Authenticated (Subscriber+) Arbitrary File Deletion and ReadEPSS 1.1%CVE-2023-2435HIGHBlog-in-Blog <= 2.0.0 - Authenticated (Editor+) Local File Inclusion via ShortcodeEPSS 1.1%CVE-2024-28073HIGHSolarWinds Serv-U Directory Traversal Remote Code Execution Vulnerability EPSS 1.1%CVE-2024-48019MEDIUMApache Doris: allows admin users to read arbitrary files through the REST APIEPSS 1.1%CVE-2023-1478CRITICALHummingbird < 3.4.2 - Unauthenticated Path Traversal EPSS 1.1%