Weaknesses of type CWE-22

6,633 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-11939MEDIUMChurchCRM Backup Restore RestoreJob.php path traversalEPSS 1.0%CVE-2022-39215HIGHThe readDir Endpoint Scope can be Bypassed With Symbolic Links in TauriEPSS 1.0%CVE-2026-2448HIGHPage Builder by SiteOrigin <= 2.33.5 - Authenticated (Contributor+) Local File InclusionEPSS 1.0%CVE-2022-39221HIGHImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') McWebserver Minecraft ModEPSS 1.0%CVE-2024-1303MEDIUMMultiple Vulnerabilities in Badger Meter's MonitoolEPSS 1.0%CVE-2026-15095MEDIUMProduct Feed Manager for WooCommerce <= 6.6.43 - Authenticated (Shop Manager+) Path Traversal to File Deletion via 'provider' ParameterEPSS 1.0%CVE-2023-49508MEDIUMDirectory Traversal vulnerability in YetiForceCompany YetiForceCRM versions 6.4.0 and before allows a remote authenticated attacker to obtaiEPSS 1.0%CVE-2022-23609HIGHPath traveresal in iTunesRPC-RemasteredEPSS 1.0%CVE-2026-105727HIGHMicrosoft Dynamics 365 Business Central Elevation of Privilege VulnerabilityEPSS 1.0%CVE-2026-102226HIGHDynamics Business Central Elevation of Privilege VulnerabilityEPSS 1.0%CVE-2026-9843HIGHDatabase for Contact Form 7, WPforms, Elementor forms <= 1.5.1 - Unauthenticated Arbitrary File Deletion via CF7 File Field POST ValueEPSS 1.0%CVE-2024-11123MEDIUM上海灵当信息科技有限公司 Lingdang CRM pdf.php path traversalEPSS 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-2026-71932MEDIUMDrayTek VigorSwitch Multiple Models Path Traversal via getSyslogFileEPSS 1.0%CVE-2021-43930MEDIUMElcomplus SmartPtt Path TraversalEPSS 1.0%CVE-2023-2315HIGHPath Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2EPSS 1.0%CVE-2025-3294HIGHWP Editor <= 1.2.9.1 - Authenticated (Administrator+) Directory Traversal to Arbitrary File UpdateEPSS 1.0%CVE-2026-57565MEDIUMReadest: Cross-tenant object write via unsanitized fileName in /api/storage/upload (object-key path traversal)EPSS 1.0%CVE-2026-78461HIGHVisual Studio Code Security Feature Bypass VulnerabilityEPSS 1.0%CVE-2026-107092CRITICALNexoPOS v6.2.4 is vulnerable to Directory Traversal via the api/update endpoint.EPSS 1.0%