Weaknesses of type CWE-22

6,562 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-2023-42130HIGHA10 Thunder ADC FileMgmtExport Directory Traversal Arbitrary File Read and Deletion VulnerabilityEPSS 2.1%CVE-2020-26252HIGHLayout XML RCE Vulnerability in OpenMageEPSS 2.1%CVE-2020-15097CRITICALPath Traversal in loklakEPSS 2.1%CVE-2023-32322MEDIUMArbitrary file read in OmbiEPSS 2.1%CVE-2022-37865CRITICALApache Ivy allows creating/overwriting any file on the systemEPSS 2.1%CVE-2023-40055HIGHSolarWinds Network Configuration Manager Directory Traversal Remote Code Execution VulnerabilityEPSS 2.1%CVE-2023-41181MEDIUMLG SuperSign Media Editor getSubFolderList Directory Traversal Information Disclosure VulnerabilityEPSS 2.1%CVE-2024-35324CRITICALDouchat 4.0.5 suffers from an arbitrary file upload vulnerability via Public/Plugins/webuploader/server/preview.php.EPSS 2.1%CVE-2023-32004HIGHA vulnerability has been discovered in Node.js version 20, specifically within the experimental permission model. This flaw relates to improEPSS 2.1%CVE-2022-30117—Concrete 8.5.7 and below as well as Concrete 9.0 through 9.0.2 allow traversal in /index.php/ccm/system/file/upload which could result in anEPSS 2.1%CVE-2022-38451MEDIUMA directory traversal vulnerability exists in the httpd update.cgi functionality of FreshTomato 2022.5. A specially crafted HTTP request canEPSS 2.1%CVE-2022-20723MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 2.1%CVE-2023-50254CRITICALDeepin Reader RCE vulnerability due to a design flawEPSS 2.1%CVE-2017-16593—This vulnerability allows remote attackers to delete arbitrary files on vulnerable installations of NetGain Systems Enterprise Manager 7.2.7EPSS 2.1%CVE-2026-33001HIGHJenkins 2.554 and earlier, LTS 2.541.2 and earlier does not safely handle symbolic links during the extraction of .tar and .tar.gz archives,EPSS 2.1%CVE-2025-27410MEDIUMPwnDoc Arbitrary File Write to RCE using Path Traversal in backup restore as adminEPSS 2.1%CVE-2026-75604CRITICALNext.js: Unauthenticated Remote Code Execution on windows-hosted serversEPSS 2.1%CVE-2024-55587HIGHpython-libarchive through 4.2.1 allows directory traversal (to create files) in extract in zip.py for ZipFile.extractall and ZipFile.extractEPSS 2.1%CVE-2022-46256HIGHPath traversal in GitHub Enterprise Server leading to remote code execution in GitHub PagesEPSS 2.1%CVE-2021-32814HIGHImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in SkytableEPSS 2.1%