Weaknesses of type CWE-22

5,987 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-32018HIGHArbitrary file write from Cursor Agent through a prompt injection from malicious @DocsEPSS 0.4%CVE-2026-76147MEDIUMGenians, Inc Genian NAC/ZTNA Remote Code ExecutionEPSS 0.4%CVE-2026-49342MEDIUMYARD static cache reads raw traversal paths before router sanitizationEPSS 0.4%CVE-2026-62680HIGHOrval: Generation-time SSRF + remote/local file inclusion via unrestricted $refEPSS 0.4%CVE-2026-5344MEDIUMTextpattern XML-RPC TXP_RPCServer.php mt_uploadImage path traversalEPSS 0.4%CVE-2026-9473MEDIUMc-rick jimeng-mcp api.ts generateVideo path traversalEPSS 0.4%CVE-2026-8116MEDIUMhuangjunsen0406 xiaozhi-mcphub dxtController.ts path traversalEPSS 0.4%CVE-2026-94123HIGHWordPress NextGEN Gallery plugin <= 4.5.0 - Arbitrary File Download vulnerabilityEPSS 0.4%CVE-2026-82233MEDIUMSiYuan before v3.8.1 Path Traversal via asset.uploadEPSS 0.4%CVE-2021-28644HIGHAdobe Acrobat SpellDictionaryCreate Path Traversal Remote Code Execution VulnerabilityEPSS 0.4%CVE-2021-35980HIGHAdobe Acrobat Reader SpellDictionaryExport Path Traversal Remote Code Execution VulnerabilityEPSS 0.4%CVE-2026-39377MEDIUMnbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment FilenamesEPSS 0.4%CVE-2026-29786HIGHnode-tar: Hardlink Path Traversal via Drive-Relative LinkpathEPSS 0.4%CVE-2026-59196HIGHpnpm: hoisted install imports lockfile alias outside node_modulesEPSS 0.4%CVE-2026-59195HIGHpnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-configEPSS 0.4%CVE-2026-19306HIGHLangflow is vulnerable to arbitrary local file read due to path traversal in ChatInput, bundle FileInput, and GitExtractor componentsEPSS 0.4%CVE-2025-9650MEDIUMyeqifu carRental AppFileUtils.java removeFileByPath path traversalEPSS 0.4%CVE-2025-64757LOWAstro Development Server is Vulnerable to Arbitrary Local File ReadEPSS 0.4%CVE-2026-40152MEDIUMPraisonAIAgents has a Path Traversal via Unvalidated Glob Pattern in list_files Bypasses Workspace BoundaryEPSS 0.4%CVE-2026-35484MEDIUMtext-generation-webui has a Path Traversal in load_preset() — .yaml file read without authenticationEPSS 0.4%