Weaknesses of type CWE-22

5,863 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-44867HIGHphpok v3.0 was discovered to contain an arbitrary file read vulnerability via the component /autoload/file.php.EPSS 1.0%CVE-2022-39221HIGHImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') McWebserver Minecraft ModEPSS 1.0%CVE-2026-33046HIGHIndico discloses local files resulting in Remote Code Execution through LaTeX injectionEPSS 1.0%CVE-2024-3311MEDIUMDreamer CMS ThemesController.java ZipUtils.unZipFiles path traversalEPSS 1.0%CVE-2026-34653HIGHAdobe Commerce | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 1.0%CVE-2023-2315HIGHPath Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2EPSS 1.0%CVE-2019-25098MEDIUMsoerennb eXtplorer Archive archive.php path traversalEPSS 1.0%CVE-2022-41607MEDIUMETIC Telecom Remote Access Server Path TraversalEPSS 1.0%CVE-2022-42188HIGHIn Lavalite 9.0.0, the XSRF-TOKEN cookie is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server.EPSS 1.0%CVE-2021-21909MEDIUMSpecially-crafted command line arguments can lead to arbitrary file deletion in the del .cnt|.log file delete command. An attacker can proviEPSS 1.0%CVE-2022-40444MEDIUMZZCMS 2022 was discovered to contain a full path disclosure vulnerability via the page /admin/index.PHP? _server.EPSS 1.0%CVE-2023-26559MEDIUMA directory traversal vulnerability in Oxygen XML Web Author before 25.0.0.3 build 2023021715 and Oxygen Content Fusion before 5.0.3 build 2EPSS 1.0%CVE-2026-19264CRITICALUnauthenticated arbitrary file read via /uploads path traversal (URL-encoded separators) leading to instance takeoverEPSS 1.0%CVE-2023-25802HIGHRoxy-WI has Path Traversal vulnerabilityEPSS 1.0%CVE-2024-57669HIGHDirectory Traversal vulnerability in Zrlog backup-sql-file.jar v.3.0.31 allows a remote attacker to obtain sensitive information via the BacEPSS 1.0%CVE-2026-46402HIGHMicrosoft UFO uses untrusted task_name in log paths, allowing authenticated path traversal and log file creation outside the logs directoryEPSS 1.0%CVE-2024-38824CRITICALCVE-2024-38824 salt advisoryEPSS 1.0%CVE-2026-50548CRITICALCursor Desktop sandbox escape via agent-controlled working directoryEPSS 1.0%CVE-2023-1002MEDIUMMuYuCMS index.php path traversalEPSS 1.0%CVE-2025-11849MEDIUMVersions of the package mammoth from 0.3.25 and before 1.11.0; versions of the package mammoth from 0.3.25 and before 1.11.0; versions of thEPSS 1.0%