Weaknesses of type CWE-22

5,866 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-25527MEDIUMchangedetection.io vulnerable to unauthenticated static path traversalEPSS 0.9%CVE-2023-45867—ILIAS (2013-09-12 release) contains a medium-criticality Directory Traversal local file inclusion vulnerability in the ScormAicc module. An EPSS 0.9%CVE-2026-6670MEDIUMMedia Sync <= 1.4.9 - Authenticated (Author+) Path Traversal via 'sub_dir' and 'media_items' ParametersEPSS 0.9%CVE-2026-32820HIGHdataCycle Public Markdown Path Traversal Via /docs/*pathEPSS 0.9%CVE-2025-67076HIGHDirectory traversal vulnerability in Omnispace Agora Project before 25.10 allowing unauthenticated attackers to read files on the system viaEPSS 0.9%CVE-2020-36639MEDIUMAlliedModders AMX Mod X Console Command adminvote.sma cmdVoteMap path traversalEPSS 0.9%CVE-2024-23787HIGHPath traversal vulnerability in Energy Management Controller with Cloud Services JH-RVB1 /JH-RV11 Ver.B0.1.9.1 and earlier allows a network-EPSS 0.9%CVE-2026-42200HIGHCoolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCEEPSS 0.9%CVE-2026-44307HIGHMako: Path traversal via backslash URI on Windows in TemplateLookupEPSS 0.9%CVE-2022-38165CRITICALArbitrary file write in F-Secure Policy Manager through 2022-08-10 allows unauthenticated users to write the file with the contents in arbitEPSS 0.9%CVE-2020-36651MEDIUMyoungerheart nodeserver nodeserver.js path traversalEPSS 0.9%CVE-2026-30632HIGHDirectory traversal vulnerability in knowns-dev/knowns 0.11.4 via crafted folder name value to the create_doc tool.EPSS 0.9%CVE-2026-2448HIGHPage Builder by SiteOrigin <= 2.33.5 - Authenticated (Contributor+) Local File InclusionEPSS 0.9%CVE-2026-30633HIGHDirectory traversal vulnerability in knowns-dev/knowns 0.11.4 via crafted path value to the get_doc and update_doc tools.EPSS 0.9%CVE-2026-74239HIGHXenForo < 2.3.13 Path Traversal via Style Archive Importer on WindowsEPSS 0.9%CVE-2023-32317MEDIUMAutolab tar slip in cheat checker functionality (`GHSL-2023-082`)EPSS 0.9%CVE-2019-25734MEDIUMContact Form by WD 1.13.1 CSRF to Local File InclusionEPSS 0.9%CVE-2025-28384CRITICALAn issue in the /script-api/scripts/ endpoint of OpenC3 COSMOS before 6.1.0 allows attackers to execute a directory traversal.EPSS 0.9%CVE-2025-28382HIGHAn issue in the openc3-api/tables endpoint of OpenC3 COSMOS before 6.1.0 allows attackers to execute a directory traversal.EPSS 0.9%CVE-2024-2385HIGHElementor Addons by Livemesh <= 8.4 - Authenticated (Contributor+) Limited Local File Inclusion via WidgetsEPSS 0.9%