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-2026-18645MEDIUMdanpros HTMLy Admin Content Endpoint admin.php add_content path traversalEPSS 0.5%CVE-2026-7024MEDIUMrawchen sims deleteFileServlet Endpoint DeleteFileServlet.java path traversalEPSS 0.5%CVE-2025-41757HIGHArbitrary Write with ubr-restoreEPSS 0.5%CVE-2024-35677CRITICALWordPress MegaMenu plugin <= 2.3.12 - Unauthenticated Local File Inclusion vulnerabilityEPSS 0.5%CVE-2021-27278HIGHThis vulnerability allows local attackers to escalate privileges on affected installations of Parallels Desktop 16.1.1-49141. An attacker muEPSS 0.5%CVE-2024-34551CRITICALWordPress Stockholm theme <= 9.6 - Unauthenticated Local File Inclusion vulnerabilityEPSS 0.5%CVE-2026-18644MEDIUMdanpros HTMLy Delete Username Endpoint htmly.php unlink path traversalEPSS 0.5%CVE-2025-41758HIGHArbitrary Write with wwwupload.cgiEPSS 0.5%CVE-2025-1127CRITICALCombination Path Traversal and Concurrent Execution vulnerability exists within the embedded web serverEPSS 0.5%CVE-2026-6496MEDIUMprasathmani TinyFileManager POST Parameter filemanager.php path traversalEPSS 0.5%CVE-2024-43221HIGHWordPress JetGridBuilder plugin <= 1.1.2 - Local File Inclusion vulnerabilityEPSS 0.5%CVE-2025-48940HIGHMyBB's upgrade component vulnerable to local file inclusionEPSS 0.5%CVE-2024-43345HIGHWordPress Landing Page Builder plugin <= 1.5.2.0 - Local File Inclusion vulnerabilityEPSS 0.5%CVE-2025-26752HIGHWordPress VideoWhisper Live Streaming Integration plugin <= 6.2 - Arbitrary File Deletion vulnerabilityEPSS 0.5%CVE-2026-75593HIGHBuildKit: Malicious client can bypass destination directory validation on local sources uploadEPSS 0.5%CVE-2024-43232HIGHWordPress Timeline and History slider plugin <= 2.3 - Local File Inclusion vulnerabilityEPSS 0.5%CVE-2023-3675MEDIUMInsufficient input validation when downloading certain file types.EPSS 0.5%CVE-2025-48124HIGHWordPress Spreadsheet Price Changer for WooCommerce and WP E-commerce – Light plugin <= 2.4.37 - Arbitrary File Download VulnerabilityEPSS 0.5%CVE-2025-31635HIGHWordPress CLEVER plugin <= 2.6 - Arbitrary File Download VulnerabilityEPSS 0.5%CVE-2025-31050HIGHWordPress Apptha Slider Gallery plugin <= 2.5 - Arbitrary File Read vulnerabilityEPSS 0.5%