Falhas do tipo CWE-22

6.562 resultados

Travessia de diretório (Path Traversal)

A aplicação constrói caminhos de arquivo usando entrada do usuário sem validar adequadamente, permitindo que caracteres especiais como '../' façam o caminho "sair" do diretório permitido e acessar arquivos fora da zona restrita. Isso expõe dados sensíveis ou permite manipulação de arquivos críticos do sistema.

Exemplo

Um site permite download de documentos via URL como /download?file=relatorio.pdf, mas não valida o parâmetro. Um atacante usa /download?file=../../etc/passwd para ler o arquivo de senhas do servidor, ou /download?file=../../configuracao.db para acessar a base de dados da aplicação.

Como mitigar

Valide e normalize todos os caminhos de entrada (use funções nativas como realpath ou canonicalize), implemente uma whitelist de arquivos permitidos em vez de bloquear padrões perigosos, e configure permissões de arquivo restritivas no SO. Melhor ainda: nunca construa caminhos a partir de entrada do usuário — use índices ou IDs mapeados internamente.

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%