Weaknesses of type CWE-22

5,840 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-12898MEDIUMAll-in-One WP Migration and Backup < 7.106 - Unauthenticated Arbitrary-Location Log File Write via Path TraversalEPSS 1.4%CVE-2026-18855CRITICALLink Library <= 7.9.4 - Unauthenticated Arbitrary File Deletion via link_url ParameterEPSS 1.4%CVE-2021-47850HIGHMini Mouse 9.2.0 - Path TraversalEPSS 1.4%CVE-2025-56816HIGHDatart 1.0.0-rc.3 is vulnerable to Directory Traversal. The configuration file handling of the application allows attackers to upload arbitrEPSS 1.4%CVE-2024-50509HIGHWordPress Woocommerce Product Design plugin <= 1.0.0 - Arbitrary File Deletion vulnerabilityEPSS 1.4%CVE-2022-45299CRITICALAn issue in the IpFile argument of rust-lang webbrowser-rs v0.8.2 allows attackers to access arbitrary files via supplying a crafted URL.EPSS 1.3%CVE-2022-4244HIGHCodehaus-plexus: directory traversalEPSS 1.3%CVE-2020-7494—A CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists in EcoStruxure Operator TerminEPSS 1.3%CVE-2026-39468MEDIUMWordPress Meta Box – WordPress Custom Fields Framework plugin <= 5.11.1 - Arbitrary File Deletion vulnerabilityEPSS 1.3%CVE-2025-53793HIGHAzure Stack Hub Information Disclosure VulnerabilityEPSS 1.3%CVE-2023-49735—Apache Tiles: Unvalidated input may lead to path traversal and XXEEPSS 1.3%CVE-2022-23082HIGHCureKit - Path Traversal in isFileOutsideDirEPSS 1.3%CVE-2022-23602HIGHNim's rst parser sandboxed mode allows include which can embed any local fileEPSS 1.3%CVE-2022-25895HIGHDirectory TraversalEPSS 1.3%CVE-2022-21192HIGHAll versions of the package serve-lite are vulnerable to Directory Traversal due to missing input sanitization or other checks and protectioEPSS 1.3%CVE-2022-25936HIGHVersions of the package servst before 2.0.3 are vulnerable to Directory Traversal due to improper sanitization of the filePath variable. EPSS 1.3%CVE-2023-27105CRITICALA vulnerability in the Wi-Fi file transfer module of Shanling M5S Portable Music Player with Shanling MTouch OS v4.3 and Shanling M2X PortabEPSS 1.3%CVE-2018-1103MEDIUMOpenshift Enterprise source-to-image before version 1.1.10 is vulnerable to an improper validation of user input. An attacker who could tricEPSS 1.3%CVE-2023-46177MEDIUMIBM MQ Appliance information disclosureEPSS 1.3%CVE-2025-6798HIGHMarvell QConvergeConsole deleteAppFile Directory Traversal Arbitrary File Deletion VulnerabilityEPSS 1.3%