Weaknesses of type CWE-22

5,905 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-2025-65897HIGHzdh_web is a data collection, processing, monitoring, scheduling, and management platform. In zdh_web thru 5.6.17, insufficient validation oEPSS 0.8%CVE-2023-40587MEDIUMPyramid static view path traversal up one directoryEPSS 0.8%CVE-2023-42488HIGH EisBaer Scada - CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')EPSS 0.8%CVE-2026-2672MEDIUMTsinghua Unigroup Electronic Archives System downLoad download path traversalEPSS 0.8%CVE-2026-0963CRITICALImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Crafty ControllerEPSS 0.8%CVE-2025-30841CRITICALWordPress Countdown & Clock plugin <=2.8.8 - Remote Code Execution (RCE) vulnerabilityEPSS 0.8%CVE-2026-11940HIGHtarfile extraction filter bypass allows escaping the destination directoryEPSS 0.8%CVE-2026-13347HIGHHide My WP Lite <= 1.3 - Unauthenticated Path Traversal to Arbitrary File Read via 'he_wrapper_js' ParameterEPSS 0.7%CVE-2024-23182HIGHRelative path traversal vulnerability in a-blog cms Ver.3.1.x series versions prior to Ver.3.1.7, Ver.3.0.x series versions prior to Ver.3.0EPSS 0.7%CVE-2026-53486CRITICALdecompress: Archive extraction can create files and links outside the target directoryEPSS 0.7%CVE-2024-8706MEDIUMJFinalCMS com.cms.util.TemplateUtils update path traversalEPSS 0.7%CVE-2024-21799MEDIUMPath traversal for some Intel(R) Extension for Transformers software before version 1.5 may allow an authenticated user to potentially enablEPSS 0.7%CVE-2023-29986MEDIUMspring-boot-actuator-logview 0.2.13 allows Directory Traversal to sibling directories via LogViewEndpoint.view.EPSS 0.7%CVE-2024-47820MEDIUMMarkUs vulnerable to Path TraversalEPSS 0.7%CVE-2026-52607MEDIUMA directory traversal vulnerability in reportico-web <= 8.1.0 allows remote attackers to expose or execute arbitrary php files on the web seEPSS 0.7%CVE-2024-56198CRITICALpath-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerabilityEPSS 0.7%CVE-2025-53632HIGHChall-Manager's scenario decoding process does not check for zip slipsEPSS 0.7%CVE-2023-26101HIGHIn Progress Flowmon Packet Investigator before 12.1.0, a Flowmon user with access to Flowmon Packet Investigator could leverage a path-traveEPSS 0.7%CVE-2020-8144—The UniFi Video Server v3.9.3 and prior (for Windows 7/8/10 x64) web interface Firmware Update functionality, under certain circumstances, dEPSS 0.7%CVE-2023-22772MEDIUMAuthenticated Path Traversal in ArubaOS Web-based Management Interface Allows for Arbitrary File DeletionEPSS 0.7%