Falhas do tipo CWE-22

5.825 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-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-2020-15097CRITICALPath Traversal in loklakEPSS 2.1%CVE-2025-27410MEDIUMPwnDoc Arbitrary File Write to RCE using Path Traversal in backup restore as adminEPSS 2.1%CVE-2023-7327HIGHOzeki SMS Gateway <= 10.3.208 Unauthenticated Arbitrary File ReadEPSS 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-2010-10012HIGHhttpdASM 0.92 Path TraversalEPSS 2.1%CVE-2021-32814HIGHImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in SkytableEPSS 2.1%CVE-2026-65919HIGHMeshery < 1.0.57 Unauthenticated Arbitrary File Read via fileView and fileDownloadEPSS 2.1%CVE-2024-23475CRITICALSolarWinds Access Rights Manager Directory Traversal and Information Disclosure VulnerabilityEPSS 2.1%CVE-2026-29963HIGHHSC MailInspector 5.3.3-7 has a Path Traversal vulnerability due to improper validation of user-supplied input in the /tap/dw.php endpoint. EPSS 2.1%CVE-2025-34076MEDIUMMicroweber CMS Authenticated Local File Inclusion via Backup APIEPSS 2.1%CVE-2023-50233HIGHInductive Automation Ignition getJavaExecutable Directory Traversal Remote Code Execution VulnerabilityEPSS 2.1%CVE-2023-34478CRITICALApache Shiro before 1.12.0, or 2.0.0-alpha-3, may be susceptible to a path traversal attack when used together with APIs or other web frameworks that route requests based on non-normalized requests.EPSS 2.1%CVE-2023-5241CRITICALAI ChatBot <= 4.8.9 and 4.9.2 - Authenticated (Subscriber+) Directory Traversal to Arbitrary File Write via qcld_openai_upload_pagetraining_fileEPSS 2.1%CVE-2023-42130HIGHA10 Thunder ADC FileMgmtExport Directory Traversal Arbitrary File Read and Deletion VulnerabilityEPSS 2.1%CVE-2023-52332HIGHAllegra serveMathJaxLibraries Directory Traversal Information Disclosure VulnerabilityEPSS 2.1%CVE-2025-34118HIGHLinknat VOS Manager Path Traversal File DisclosureEPSS 2.1%CVE-2020-26252HIGHLayout XML RCE Vulnerability in OpenMageEPSS 2.1%