Falhas do tipo CWE-22

6.631 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-47279HIGHDelta Electronics InfraSuite Device Master Path TraversalEPSS 1.1%CVE-2026-78851MEDIUMDirectory Traversal vulnerability in Grav CMS 2.0.3 through 2.0.6 allows a remote attacker to obtain sensitive information via the GravExtenEPSS 1.1%CVE-2026-26396HIGHOpenBMB XAgent v1.0.0 and before is vulnerable to path traversal in the file() function in XAgent/XAgentServer/application/routers/workspaceEPSS 1.1%CVE-2025-6795MEDIUMMarvell QConvergeConsole getFileUploadSize Directory Traversal Information Disclosure VulnerabilityEPSS 1.1%CVE-2025-6807MEDIUMMarvell QConvergeConsole getDriverTmpPath Directory Traversal Information Disclosure VulnerabilityEPSS 1.1%CVE-2026-66050HIGHNitroShare Desktop 0.3.4 Path Traversal via LAN File Transfer ServerEPSS 1.1%CVE-2026-100520HIGHLaranode before 1.2.1 Path Traversal in File Manager Upload EndpointEPSS 1.1%CVE-2022-4880MEDIUMstakira OpenUtau ZIP Archive VoicebankInstaller.cs VoicebankInstaller path traversalEPSS 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-2021-33182MEDIUMImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in PDF Viewer component in Synology DiskStationEPSS 1.1%CVE-2019-25097MEDIUMsoerennb eXtplorer Directory Content path traversalEPSS 1.1%CVE-2022-40082HIGHHertz v0.3.0 ws discovered to contain a path traversal vulnerability via the normalizePath function.EPSS 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-2022-20727MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 1.1%CVE-2026-52680CRITICALApache Kyuubi: REST batch multipart upload path traversal allows controlled file writeEPSS 1.1%CVE-2026-18386MEDIUMWP BackItUp Community Edition <= 2.1.0 - Authenticated (Administrator+) Path Traversal to Arbitrary File Read via 'backup_file' ParameterEPSS 1.1%CVE-2025-55523LOWAn issue in the component /api/download_work_dir_file.py of Agent-Zero v0.8.* allows attackers to execute a directory traversal.EPSS 1.1%CVE-2022-42706MEDIUMAn issue was discovered in Sangoma Asterisk through 16.28, 17 and 18 through 18.14, 19 through 19.6, and certified through 18.9-cert1. GetCoEPSS 1.1%CVE-2022-50890HIGHOwlfiles File Manager 12.0.1 - Path TraversalEPSS 1.1%