Weaknesses of type CWE-22

5,998 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-2021-3960HIGHPrivilege Escalation via the GravityZone productManager UpdateServer.KitsManager API (VA-10146)EPSS 0.3%CVE-2025-14965MEDIUM1541492390c yougou-mall ResourceController.java delete path traversalEPSS 0.3%CVE-2026-48374HIGHBridge | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 0.3%CVE-2025-10723LOWPixelYourSite < 11.1.2 - Admin+ LFIEPSS 0.3%CVE-2026-48441HIGHLightroom Classic | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 0.3%CVE-2024-25859HIGHA path traversal vulnerability in the /path/to/uploads/ directory of Blesta before v5.9.2 allows attackers to takeover user accounts and exeEPSS 0.3%CVE-2026-51570HIGHmodelscope Agentscope v1.0.0-v1.0.8 is vulnerable to Path Traversal in insert_text_file.EPSS 0.3%CVE-2023-33544MEDIUMhawtio 2.17.2 is vulnerable to Path Traversal. it is possible to input malicious zip files, which can result in the high-risk files after deEPSS 0.3%CVE-2026-49144HIGHBrowserStack Runner 0.9.5 Path Traversal via _default HTTP HandlerEPSS 0.3%CVE-2026-44437MEDIUMAngular SSR: Open Redirect and Request Steering via Encoded X-Forwarded-PrefixEPSS 0.3%CVE-2026-79781MEDIUMrclone serve s3 Path Traversal via dot-dot object keysEPSS 0.3%CVE-2026-18133MEDIUMIBM Financial Transaction Manager (FTM) is Impacted by Multiple VulnerabilitiesEPSS 0.3%CVE-2026-42078MEDIUMPPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_imageEPSS 0.3%CVE-2025-8917MEDIUMPath Traversal Leading to Remote Code Execution in allegroai/clearmlEPSS 0.3%CVE-2024-6618HIGHPath Traversal in Ocean Data Systems Dream ReportEPSS 0.3%CVE-2026-23485MEDIUMBlinko: Unauthorized Path Traversal File Enumeration - music-metadataEPSS 0.3%CVE-2026-42080MEDIUMPPTAgent: Arbitrary File Write via `save_generated_slides`EPSS 0.3%CVE-2026-0651MEDIUMPath Traversal on TP-Link Tapo D235, C211, C520WS and C260 via Local httpsEPSS 0.3%CVE-2025-36597MEDIUMDell Avamar, versions prior to 19.12 with patch 338905, contains an Improper Limitation of a Pathname to a Restricted Directory ('Path TraveEPSS 0.3%CVE-2024-42680MEDIUMAn issue in Super easy enterprise management system v.1.0.0 and before allows a local attacker to obtain the server absolute path by enterinEPSS 0.3%