Weaknesses of type CWE-22

5,902 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-86541HIGHknowns before 0.30.0 Path Traversal via code.replace MCP actionEPSS 0.8%CVE-2024-12718MEDIUMBypass extraction filter to modify file metadata outside extraction directoryEPSS 0.8%CVE-2023-7335HIGHEduSoho < 22.4.7 Arbitrary File Read via classroom-course-statisticsEPSS 0.8%CVE-2022-3966MEDIUMUltimate Member Plugin Template class-shortcodes.php load_template pathname traversalEPSS 0.8%CVE-2026-9335MEDIUMImproper Handling of HDF5 ExternalLinks in keras-team/kerasEPSS 0.8%CVE-2026-14628MEDIUMNousResearch hermes-agent Live Webhook Endpoint base.py extract_media path traversalEPSS 0.8%CVE-2026-4997MEDIUMSinaptik AI PandasAI sql_sanitizer.py is_sql_query_safe path traversalEPSS 0.8%CVE-2026-90494MEDIUMrestify node-restify static.js serveStatic path traversalEPSS 0.8%CVE-2026-18646MEDIUMdanpros HTMLy Author Name htmly.php path traversalEPSS 0.8%CVE-2026-3719MEDIUMTsinghua Unigroup Electronic Archives System downLoad path traversalEPSS 0.8%CVE-2026-8215MEDIUMIndustrial Application Software IAS Canias ERP RMI iasRequestFileEvent path traversalEPSS 0.8%CVE-2026-13503MEDIUMantlr ANTLR4 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile path traversalEPSS 0.8%CVE-2024-47769HIGHIDURAR has a Path Traversal (unauthenticated user can read sensitive data)EPSS 0.8%CVE-2022-36328MEDIUMPath Traversal Vulnerability leading to an arbitrary file read in Western Digital devicesEPSS 0.8%CVE-2023-22774HIGHAuthenticated Path Traversal in ArubaOS Command Line Interface Allows for Arbitrary File Deletion.EPSS 0.8%CVE-2025-12493CRITICALShopLentor <= 3.2.5 - Unauthenticated Local PHP File Inclusion via 'load_template'EPSS 0.8%CVE-2023-22773HIGHAuthenticated Path Traversal in ArubaOS Command Line Interface Allows for Arbitrary File Deletion.EPSS 0.8%CVE-2018-25059LOWpastebinit server.go pasteHandler path traversalEPSS 0.8%CVE-2025-4857HIGHNewsletters <= 4.9.9.9 - Authenticated (Administrator+) Local File InclusionEPSS 0.8%CVE-2026-25161HIGHAlist vulnerable to Path Traversal in multiple file operation handlersEPSS 0.8%