Weaknesses of type CWE-22

5,967 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-54650HIGHopenhole-server vulnerable to path traversal via URL-decoded request pathEPSS 0.5%CVE-2026-3585HIGHThe Events Calendar <= 6.15.17 - Authenticated (Author+) Arbitrary File Read via ajax_create_importEPSS 0.5%CVE-2025-3355HIGHIBM Tivoli Monitoring is vulnerable to unauthenticated file read and write operationsEPSS 0.5%CVE-2024-37169MEDIUM@jmondi/url-to-png arbitrary file read via Playwright's screenshot feature exploiting file wrapperEPSS 0.5%CVE-2026-33528MEDIUMGoDoxy has a Path Traversal Vulnerability in its File APIEPSS 0.5%CVE-2025-3295MEDIUMWP Editor <= 1.2.9.1 - Authenticated (Administrator+) Directory Traversal to Arbitrary File ReadEPSS 0.5%CVE-2026-44641HIGHMicrosoft APM: plugin.json component paths escape plugin root and copy arbitrary host files during installEPSS 0.5%CVE-2024-27869HIGHThe issue was addressed with improved checks. This issue is fixed in iOS 18 and iPadOS 18, macOS Sequoia 15. An app may be able to record thEPSS 0.5%CVE-2024-35754HIGHWordPress Ovic Importer plugin <= 1.6.3 - Arbitrary File Download vulnerabilityEPSS 0.5%CVE-2024-7609CRITICALDirectory Traversal in Vidco Software's VOC TESTEREPSS 0.5%CVE-2023-35947MEDIUMPath traversal vulnerabilities in handling of Tar archives in GradleEPSS 0.5%CVE-2022-4494MEDIUMbspkrs MCPMappingViewer ZIP File RemoteZipHandler.java extractZip path traversalEPSS 0.5%CVE-2026-6410MEDIUM@fastify/static vulnerable to path traversal in directory listingEPSS 0.5%CVE-2026-32727HIGHSciTokens: Authorization Bypass via Path Traversal in Scope ValidationEPSS 0.5%CVE-2025-31053HIGHWordPress KBx Pro Ultimate plugin < 8.0.5 - Arbitrary File Deletion VulnerabilityEPSS 0.5%CVE-2026-40157CRITICALPraisonAI affected by arbitrary file write via path traversal in `praisonai recipe unpack`EPSS 0.5%CVE-2026-34242HIGHWeblate: Arbitrary File Read via SymlinkEPSS 0.5%CVE-2026-49831MEDIUMDSpace: Curation Task Reporter output path is not restricted to trusted directories (Path Traversal Vulnerability)EPSS 0.5%CVE-2026-53594MEDIUMFreeScout has Arbitrary File Read in App Logs Viewer via Forged Encrypted PathEPSS 0.5%CVE-2026-84373MEDIUMVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockEPSS 0.5%