Weaknesses of type CWE-22

5,925 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-36767CRITICALA path traversal vulnerability in the /content/images/add endpoint of shopizer v3.2.5 allows attackers write arbitrary files to any writeablEPSS 0.6%CVE-2017-20248HIGHWordPress Plugin Apptha Slider Gallery 1.0 Path Traversal File DownloadEPSS 0.6%CVE-2018-25326HIGHGoogle Drive for WordPress 2.2 Path Traversal RCE via gdrive-ajaxs.phpEPSS 0.6%CVE-2023-38708MEDIUMPimcore Path Traversal Vulnerability in AssetController:importServerFilesActionEPSS 0.6%CVE-2017-20250HIGHWordPress Plugin Mac Photo Gallery 3.0 Arbitrary File DownloadEPSS 0.6%CVE-2025-29846HIGHA vulnerability in portenable cgi allows remote authenticated users to get the status of installed packages.EPSS 0.6%CVE-2025-65418HIGHdocuFORM Managed Print Service Client 11.11c is vulnerable to a directory traversal allowing attackers to read arbitrary files via crafted uEPSS 0.6%CVE-2026-56445HIGHpydicom pynetdicom Library Path TraversalEPSS 0.6%CVE-2026-25116HIGHRuntipi vulnerable to unauthenticated docker-compose.yml Overwrite via Path TraversalEPSS 0.6%CVE-2022-20725MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 0.6%CVE-2026-1921MEDIUMLoco Translate <= 2.8.2 - Authenticated (Translator+) Path Traversal to Limited File Read via 'ref' ParameterEPSS 0.6%CVE-2014-125068MEDIUMsaxman maps-js-icoads http-server.js path traversalEPSS 0.6%CVE-2024-54453HIGHAn issue was discovered in Kurmi Provisioning Suite before 7.9.0.35, 7.10.x through 7.10.0.18, and 7.11.x through 7.11.0.15. A path traversaEPSS 0.6%CVE-2020-37077MEDIUMBooked Scheduler 2.7.7 - Authenticated Directory TraversalEPSS 0.6%CVE-2026-33681HIGHAVideo has Path Traversal in pluginRunDatabaseScript.json.php Enables Arbitrary SQL File Execution via Unsanitized Plugin NameEPSS 0.6%CVE-2025-14520MEDIUMbaowzh hfly delfile path traversalEPSS 0.6%CVE-2024-11210MEDIUMEyouCMS FilemanagerLogic.php editFile path traversalEPSS 0.6%CVE-2024-42007MEDIUMSPX (aka php-spx) through 0.4.15 allows SPX_UI_URI Directory Traversal to read arbitrary files.EPSS 0.6%CVE-2018-25408HIGHThe Open ISES Project 3.30A Path Traversal Arbitrary File DownloadEPSS 0.6%CVE-2026-81551HIGHDataStage on Cloud Pak for Data has several vulnerabilities due to open source softwareEPSS 0.6%