Weaknesses of type CWE-22

5,968 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-53452MEDIUMGround Station: Unauthenticated out-of-containment file read via `sigmfplayback` `recordingPath`EPSS 0.5%CVE-2026-55439MEDIUMHalo: Path Traversal in Backup Download Leads to Arbitrary File ReadEPSS 0.5%CVE-2024-12793MEDIUMPbootCMS IndexController.php path traversalEPSS 0.5%CVE-2025-8433MEDIUMcode-projects Document Management System dell.php unlink path traversalEPSS 0.5%CVE-2026-102089HIGHKiteworks Email Protection Gateway path traversalEPSS 0.5%CVE-2023-46784HIGHWordPress ICS Calendar plugin <= 10.12.0.3 - SSRF and Arbitrary File Read vulnerabilityEPSS 0.5%CVE-2024-11833HIGHArbitrary Directory Write via Runbooks Artifact UploadEPSS 0.5%CVE-2026-77814HIGHInfinite Image Browsing is_path_trusted Prefix Comparison Omits the Trailing Path SeparatorEPSS 0.5%CVE-2024-11834HIGHArbitrary File Write via PTRAC ImportEPSS 0.5%CVE-2025-58158HIGHHarness Affected by Arbitrary File Write in Gitness LFS serverEPSS 0.5%CVE-2026-15280HIGHIBM WebSphere Application Server Liberty is affected by a remote code execution and path-segment injection vulnerabilityEPSS 0.5%CVE-2026-65436MEDIUMWordPress Kirki plugin <= 6.0.13 - Arbitrary File Deletion vulnerabilityEPSS 0.5%CVE-2026-54094HIGHFile Browser: Symlink following lets scoped users read, overwrite, and share files outside their filebrowser scopeEPSS 0.5%CVE-2026-49233HIGHRoutinator cache path traversal using rogue rsync URIsEPSS 0.5%CVE-2026-40535MEDIUMAn improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Desktop API in Synology DiskStation ManagEPSS 0.5%CVE-2026-75328HIGHIn DocSys-master V2.02.85, the downloadDocEx interface in src/com/DocSystem/controller/DocController.java has an arbitrary file read vulneraEPSS 0.5%CVE-2026-45017HIGHPython Liquid: Absolute paths escape filesystem loader search pathEPSS 0.5%CVE-2026-47368HIGHA malicious actor with access to the network could exploit a Path Traversal vulnerability found in certain devices running UniFi OS to obtaiEPSS 0.5%CVE-2026-75333HIGHyx-image-recognition v1.0 is vulnerable to Path Traversal. Parameters such as dir, filePath are directly passed to new File() for file systeEPSS 0.5%CVE-2023-37385HIGHWordPress Consulting theme <= 6.5.6 - Local File InclusionEPSS 0.5%