Weaknesses of type CWE-22

5,950 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-2024-38709MEDIUMWordPress GD Rating System plugin <= 3.6 - Local File Inclusion vulnerabilityEPSS 0.5%CVE-2026-91751HIGHFlextype CMS through 1.0.0-alpha.3 Path Traversal via Entries REST APIEPSS 0.5%CVE-2026-30952HIGHliquidjs has a path traversal fallback vulnerabilityEPSS 0.5%CVE-2026-79304MEDIUMCyberPanel 1.9.1 contains a path traversal vulnerability in the readFileContents method of the /filemanager/controller endpoint. An authentiEPSS 0.5%CVE-2026-101082MEDIUMPMWeb downloader.aspx path traversalEPSS 0.5%CVE-2026-25964MEDIUMTandoor Recipes Affected by Authenticated Local File Disclosure (LFD) via Recipe Import leads to Arbitrary File ReadEPSS 0.5%CVE-2026-34604HIGH@tinacms/graphql's `FilesystemBridge` Path Validation Can Be Bypassed via Symlinks or JunctionsEPSS 0.5%CVE-2025-6109MEDIUMjavahongxi whatsmars InitializrController.java initialize path traversalEPSS 0.5%CVE-2025-13879MEDIUMDirectory traversal vulnerability in EfficientIP's SOLIDserver IPAMEPSS 0.5%CVE-2025-69376HIGHWordPress User Extra Fields plugin <= 17.0 - Arbitrary File Deletion vulnerabilityEPSS 0.5%CVE-2024-50626HIGHAn issue was discovered in Digi ConnectPort LTS before 1.4.12. A Directory Traversal vulnerability exists in WebFS. This allows an attacker EPSS 0.5%CVE-2026-87791HIGHPath traversal vulnerability in WordPress theme design-scuole-wordpress-themeEPSS 0.5%CVE-2025-23416MEDIUMKeysight Ixia Vision Product Family Path TraversalEPSS 0.5%CVE-2026-58499HIGHPath traversal in EverOS /api/v1/memory/add via unvalidated sender_idEPSS 0.5%CVE-2026-42162CRITICALMahara before 25.04.5 and 26.04.0 is vulnerable to artefacts being accessible to others under certain circumstances when the file path to anEPSS 0.5%CVE-2026-78299CRITICALIn Eclipse Embedded CDT versions 6.0 to 6.7 if the CMSIS-Pack archive extracts a compromised CMSIS pack the archive extraction can extract fEPSS 0.5%CVE-2013-10046HIGHAgnitum Outpost Internet Security Local Privilege EscalationEPSS 0.5%CVE-2023-35020MEDIUMIBM Sterling Control Center directory traversalEPSS 0.5%CVE-2026-79743MEDIUMMCPHub: Path Traversal via Malicious MCPB Manifest NameEPSS 0.5%CVE-2025-64152CRITICALApache IoTDB: Path Traversal VulnerabilityEPSS 0.5%