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-2025-13677MEDIUMSimple Download Counter <= 2.2.2 - Authenticated (Administrator+) Arbitrary File Read via Path TraversalEPSS 0.5%CVE-2026-10732MEDIUMAll versions of the package decompress are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) when extracting a ZIP archivEPSS 0.5%CVE-2025-2716MEDIUMChina Mobile P22g-CIac Samba Path path traversalEPSS 0.5%CVE-2026-42608HIGHGrav: Unauthenticated Path Traversal & Arbitrary File Write in FormFlash component.EPSS 0.5%CVE-2024-39621HIGHWordPress ListingPro plugin <= 2.9.4 - Local File Inclusion vulnerabilityEPSS 0.5%CVE-2026-49738LOWTYPO3 CMS - Broken Access Control in File Abstraction LayerEPSS 0.5%CVE-2025-13699HIGHMariaDB mariadb-dump Utility Directory Traversal Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-90445HIGHPath Traversal in MalcolmEPSS 0.5%CVE-2026-64838HIGHICEcoder through 8.1 Path Traversal via oldFileName ParameterEPSS 0.5%CVE-2026-32719MEDIUMAnythingLLM has a Zip Slip Path Traversal and Code Execution via Community Hub Plugin ImportEPSS 0.5%CVE-2025-59384HIGHQfilingEPSS 0.5%CVE-2026-53906MEDIUMPath Disclosure and Path Traversal in MCOEPSS 0.5%CVE-2022-41591HIGHThe backup module has a path traversal vulnerability. Successful exploitation of this vulnerability causes unauthorized access to other systEPSS 0.5%CVE-2023-47843HIGHWordPress CataBlog Plugin <= 1.7.0 is vulnerable to Arbitrary File DeletionEPSS 0.5%CVE-2026-33166HIGHAllure Report has an Arbitrary File Read via Path Traversal in Attachment Processing (Allure 1, Allure 2, and XCTest Readers)EPSS 0.5%CVE-2024-55516CRITICALA vulnerability was found in Raisecom MSG1200, MSG2100E, MSG2200, and MSG2300 v3.90. The component affected by this issue is /upload_sysconfEPSS 0.5%CVE-2024-37547MEDIUMWordPress Elementor Addons by Livemesh plugin <= 8.4.0 - Local File Inclusion vulnerabilityEPSS 0.5%CVE-2024-55513CRITICALA vulnerability was found in Raisecom MSG1200, MSG2100E, MSG2200, and MSG2300 3.90. The component affected by this issue is /upload_netactioEPSS 0.5%CVE-2023-7260MEDIUMA path traversal vulnerability has been discovered in OpenText™ CX-E Voice.EPSS 0.5%CVE-2023-46988MEDIUMPath Traversal vulnerability in ONLYOFFICE Document Server before v8.0.1 allows a remote attacker to copy arbitrary files by manipulating thEPSS 0.5%