Weaknesses of type CWE-22

5,991 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-58355HIGHSoft Serve is vulnerable to arbitrary file writing through its SSH APIEPSS 0.3%CVE-2026-7085LOWHBAI-Ltd Toonflow-app downloadApp Endpoint downloadApp.ts z.url path traversalEPSS 0.3%CVE-2025-7719MEDIUMSmallworld SWMFS Arbitrary File OpsEPSS 0.3%CVE-2026-50163HIGHoras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution in `oras-go` tar extractionEPSS 0.3%CVE-2026-78312CRITICALPath Traversal in DIAEnergieEPSS 0.3%CVE-2026-101889HIGHPrime Mover < 2.2.1 Path Traversal via wprime-config.jsonEPSS 0.3%CVE-2025-65076HIGHArbitrary File Read and Delete via Path Traversal in WaveStore ServerEPSS 0.3%CVE-2026-95588HIGHWordPress AcyMailing SMTP Newsletter plugin <= 11.0.5 - Arbitrary File Deletion vulnerabilityEPSS 0.3%CVE-2026-88624CRITICALMissing path validation in the Worktree.remove component of openCode v1.18.26 allows attackers to execute arbitrary recursive directory deleEPSS 0.3%CVE-2025-67643MEDIUMJenkins Redpen - Pipeline Reporter for Jira Plugin 1.054.v7b_9517b_6b_202 and earlier does not correctly perform path validation of the workEPSS 0.3%CVE-2025-15470MEDIUMEleganzo <= 1.2 - Authenticated (Subscriber+) Arbitrary Directory DeletionEPSS 0.3%CVE-2021-39143MEDIUMPath Traversal in spinnakerEPSS 0.3%CVE-2026-58171LOWVibe-Trading < 0.1.10 - Path Traversal via Swarm Run IdentifierEPSS 0.3%CVE-2023-26243HIGHAn issue was discovered in the Hyundai Gen5W_L in-vehicle infotainment system AE_E_PE_EUR.S5W_L001.001.211214. The decryption binary used toEPSS 0.3%CVE-2026-66063MEDIUMgoshs has a Path Traversal issueEPSS 0.3%CVE-2022-50953MEDIUMWordPress Plugin admin-word-count-column 2.2 Local File ReadEPSS 0.3%CVE-2026-7807HIGHSmarterTools SmarterMail < Build 9560 Server Local File Inclusion via the /api/v1/report/summary/{type} APIEPSS 0.3%CVE-2026-48789MEDIUMAnythingLLM: Windows path containment bypass in document folder routeEPSS 0.3%CVE-2026-16955MEDIUMAI Engine < 3.6.6 - Subscriber+ Arbitrary File Read via Audio TranscriptionEPSS 0.3%CVE-2026-42885MEDIUMAudiobookshelf: Path prefix bypass in filesystem existence check leaks out-of-scope file existenceEPSS 0.3%