Weaknesses of type CWE-22

5,949 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-38292CRITICALIn Extreme Networks XIQ-SE before 24.2.11, due to a missing access control check, a path traversal is possible, which may lead to privilege EPSS 0.6%CVE-2025-15036CRITICALPath Traversal Vulnerability in mlflow/mlflowEPSS 0.6%CVE-2024-24569MEDIUM`ZipSecurity#isBelowCurrentDirectory` is vulnerable to partial-path traversal vulnerabilityEPSS 0.6%CVE-2026-86864HIGHpgAdmin 4: Argument and connection-string injection via the database field in the Backup toolEPSS 0.6%CVE-2025-66410HIGHGin-vue-admin has an arbitrary file deletion vulnerabilityEPSS 0.6%CVE-2025-48026HIGHA vulnerability in the WebApl component of Mitel OpenScape Xpressions through V7R1 FR5 HF43 P913 could allow an unauthenticated attacker to EPSS 0.6%CVE-2026-36760CRITICALAn issue in the fileMd5 parameter in the /a/file/upload endpoint of JeeSite v5.15.1 allows authenticated attackers with file upload permissiEPSS 0.6%CVE-2023-26265MEDIUMThe Borg theme before 1.1.19 for Backdrop CMS does not sufficiently sanitize path arguments that are passed in via a URL. The function borg_EPSS 0.6%CVE-2025-46359HIGHA path traversal issue exists in backup and restore feature of multiple versions of PowerCMS. A product administrator may execute arbitrary EPSS 0.6%CVE-2026-85580HIGHSiYuan before v3.8.2 Path Guard Bypass via Case MismatchEPSS 0.6%CVE-2025-6854MEDIUMchatchat-space Langchain-Chatchat files path traversalEPSS 0.6%CVE-2026-4092HIGHArbitrary File Write via Path Traversal in Google clasp leading to RCEEPSS 0.6%CVE-2025-59380MEDIUMQTS, QuTS heroEPSS 0.6%CVE-2025-4898MEDIUMSourceCodester Student Result Management System Logo File update_system.php unlink path traversalEPSS 0.6%CVE-2026-53571HIGHVite: `server.fs.deny` bypass on Windows alternate pathsEPSS 0.6%CVE-2024-32703HIGHWordPress ARForms plugin <= 6.4 - Subscriber+ Arbitrary File Deletion vulnerabilityEPSS 0.6%CVE-2025-54433HIGHBugsink is vulnerable to Path Traversal attacks via event_id in ingestionEPSS 0.6%CVE-2025-24965HIGH.krun_config.json symlink attack creates or overwrites file on the host in crunEPSS 0.6%CVE-2025-48387HIGHtar-fs has issue where extract can write outside the specified dir with a specific tarballEPSS 0.6%CVE-2026-44943MEDIUMremote limited file-write as root via discovery in open-iscsiEPSS 0.6%