Weaknesses of type CWE-22

5,862 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-2022-31194HIGHPath traversal vulnerabilities in DSpace JSPUI submission uploadEPSS 1.1%CVE-2022-24851HIGHStored XSS and path traversal in LDAPAccountManager/lamEPSS 1.1%CVE-2021-41149HIGHImproper sanitization of target names in toughEPSS 1.1%CVE-2026-36227MEDIUMDirectory Traversal vulnerability in Easy Chat Server 3.1 allows a remote attacker to obtain sensitive information and execute arbitrary codEPSS 1.1%CVE-2021-33182MEDIUMImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in PDF Viewer component in Synology DiskStationEPSS 1.1%CVE-2022-25937MEDIUMVersions of the package glance before 3.0.9 are vulnerable to Directory Traversal that allows users to read files outside the public root diEPSS 1.1%CVE-2026-52680CRITICALApache Kyuubi: REST batch multipart upload path traversal allows controlled file writeEPSS 1.1%CVE-2022-20727MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 1.1%CVE-2025-3065CRITICALDatabase Toolset <= 1.8.4 - Unauthenticated Arbitrary File DeletionEPSS 1.1%CVE-2026-80104CRITICALDB-GPT 0.8.0 Path Traversal Arbitrary File Write via Skill Upload FilenameEPSS 1.1%CVE-2025-9566HIGHPodman: podman kube play command may overwrite host filesEPSS 1.1%CVE-2025-54386HIGHTraefik's Client Plugin is Vulnerable to Path Traversal, Arbitrary File Overwrites and Remote Code ExecutionEPSS 1.1%CVE-2023-6352MEDIUMAquaforest TIFF Server default configuration allows access to arbitrary filesEPSS 1.1%CVE-2023-4593MEDIUMPath Traversal in BVRP Software SLmailEPSS 1.1%CVE-2025-31359HIGHA directory traversal vulnerability exists in the PVMP package unpacking functionality of Parallels Desktop for Mac version 20.2.2 (55879). EPSS 1.1%CVE-2019-25574HIGHGreen CMS 2.x Path Traversal Arbitrary File DownloadEPSS 1.1%CVE-2024-3403HIGHLocal File Inclusion in imartinez/privategptEPSS 1.1%CVE-2026-15056MEDIUMStoreEngine <= 2.1.1 - Authenticated (Vendor+) Arbitrary File Read via Path Traversal in Downloadable File URLEPSS 1.1%CVE-2026-39276HIGHThe template upload feature in Emlog Pro v2.6.9 has a path traversal vulnerability, allowing authenticated administrators to execute arbitraEPSS 1.1%CVE-2026-67395MEDIUMA path traversal vulnerability exists in Sage Employee Self Service’s custom logo functionality due to improper validation of file path paraEPSS 1.1%