Weaknesses of type CWE-22

6,020 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-8736LOWOinone Pamirs RestController LocalFileClient.java request.getParameter path traversalEPSS 0.2%CVE-2026-84852MEDIUMReader Tools PDF Reader App File ActSplashNew.handleDeeplink path traversalEPSS 0.2%CVE-2026-64740CRITICALA parsing issue in the handling of directory paths was addressed with improved path validation. This issue is fixed in iOS 18.7.10 and iPadOEPSS 0.2%CVE-2026-12565MEDIUMPath Traversal (Zip-Slip) in unarchive moduleEPSS 0.2%CVE-2026-45668CRITICALTrilium Notes : Note Import to RCE via #docName Path Traversal (Safe Import Enabled)EPSS 0.2%CVE-2026-44022MEDIUMDocling: Potential Path Traversal via LaTeX \includegraphics and \input CommandsEPSS 0.2%CVE-2025-53951MEDIUMAn Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability [CWE-22] in Fortinet FortiDLP Agent's OutlooEPSS 0.2%CVE-2026-40024HIGHSleuth Kit tsk_recover Path TraversalEPSS 0.2%CVE-2026-46555HIGHWhatsApp MCP: Unauthenticated bridge API allows message sending and arbitrary file exfiltrationEPSS 0.2%CVE-2025-6773MEDIUMHKUDS LightRAG File Upload document_routes.py upload_to_input_dir path traversalEPSS 0.2%CVE-2026-24801MEDIUMA Potential SPA-vulnerability in Ralim/IronOSEPSS 0.2%CVE-2026-34730MEDIUMCopier `_external_data` allows path traversal and absolute-path local file read without unsafe modeEPSS 0.2%CVE-2025-4661MEDIUMPath transversal vulnerability potentially leading to sensitive information disclosureEPSS 0.2%CVE-2026-2399MEDIUMCWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists that could cause critical files oEPSS 0.2%CVE-2026-40000LOWPath Traversal Vulnerability in ZTE Blade A75 5GEPSS 0.2%CVE-2026-46345HIGHcompliance-trestle - jinja has an Arbitrary File Write via Path TraversalEPSS 0.2%CVE-2026-85690HIGHPlandex 2.2.1 Path Traversal via ApplyFilesEPSS 0.2%CVE-2024-46939LOWGame Extension Engine Path Traversal VulnerabilityEPSS 0.2%CVE-2026-92816HIGHComfyUI before 0.30.0 Path Traversal via dataset save nodesEPSS 0.2%CVE-2026-28486MEDIUMOpenClaw 2026.1.16-2 < 2026.2.14 - Path Traversal (Zip Slip) in Archive Extraction via Installation CommandsEPSS 0.2%