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-2025-55149MEDIUMPath Traversal Vulnerability in PDF Review Function (CWE-22)EPSS 0.6%CVE-2025-34154CRITICALUnForm Server Manager < 10.1.12 Unauthenticated Arbitrary File ReadEPSS 0.6%CVE-2024-11398HIGHImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in OTP reset functionality in Synology Router MEPSS 0.6%CVE-2019-25256HIGHVideoFlow Digital Video Protection DVP 2.10 Authenticated Directory TraversalEPSS 0.6%CVE-2024-44030HIGHWordPress Checkout Mestres WP plugin <= 8.6 - Local File Inclusion vulnerabilityEPSS 0.6%CVE-2026-22905HIGHAuthentication Bypass via URI TraversalEPSS 0.6%CVE-2024-6085HIGHPath Traversal in parisneo/lollmsEPSS 0.6%CVE-2026-6968HIGHMultiple Path Traversal Variants in awslabs/toughEPSS 0.6%CVE-2025-14111LOWRarlab RAR App com.rarlab.rar path traversalEPSS 0.6%CVE-2025-24891CRITICALDumb Drop has an arbitrary file overwrite and path traversal for root shellEPSS 0.6%CVE-2024-23768HIGHDremio before 24.3.1 allows path traversal. An authenticated user who has no privileges on certain folders (and the files and datasets in thEPSS 0.6%CVE-2024-32869MEDIUMHono vulnerable to Restricted Directory Traversal in serveStatic with denoEPSS 0.6%CVE-2026-82665MEDIUMyaojingang GEOFlow Image Library Cleanup ImageLibraryController.php unlink path traversalEPSS 0.6%CVE-2026-3051MEDIUMDataLinkDC dinky Project Name GitRepository.java getProjectDir path traversalEPSS 0.6%CVE-2025-9079HIGHAdmin RCE via prepackaged plugins by way of misconfigured imports directoryEPSS 0.6%CVE-2023-3698HIGHA Command injection vulnerability was found on Printer service of ADMEPSS 0.6%CVE-2025-64712CRITICALUnstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File WriteEPSS 0.6%CVE-2026-40576CRITICALImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-serverEPSS 0.6%CVE-2025-6772MEDIUMeosphoros-ai db-gpt import import_flow path traversalEPSS 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%