Falhas do tipo CWE-22

6.630 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-30626HIGHJellyfin vulnerable to directory traversal and file write causing arbitrary code executionEPSS 2.0%CVE-2021-1259MEDIUMCisco SD-WAN vManage Software Path Traversal VulnerabilityEPSS 2.0%CVE-2018-25113HIGHDicoogle PACS Web Server 2.5.0 Unauthenticated Path TraversalEPSS 2.0%CVE-2021-28209MEDIUMASUS BMC's firmware: path traversal - Delete video file functionEPSS 2.0%CVE-2021-28205MEDIUMASUS BMC's firmware: path traversal - Delete SOL video file functionEPSS 2.0%CVE-2021-28206MEDIUMASUS BMC's firmware: path traversal - Record video file functionEPSS 2.0%CVE-2021-28208MEDIUMASUS BMC's firmware: path traversal - Get video file functionEPSS 2.0%CVE-2021-28207MEDIUMASUS BMC's firmware: path traversal - Get Help file functionEPSS 2.0%CVE-2022-31195HIGHPath traversal vulnerability in Simple Archive Format package import in DSpaceEPSS 2.0%CVE-2026-102099HIGHKiteworks Core arbitrary file writeEPSS 2.0%CVE-2019-10242—In Eclipse Kura versions up to 4.0.0, the SkinServlet did not checked the path passed during servlet call, potentially allowing path traversEPSS 2.0%CVE-2026-102116HIGHKiteworks Email Protection Gateway Path TraversalEPSS 2.0%CVE-2022-39296HIGHPath traversal in MelisAssetManagerEPSS 1.9%CVE-2024-31818CRITICALDirectory Traversal vulnerability in DerbyNet v.9.0 allows a remote attacker to execute arbitrary code via the page parameter of the kiosk.pEPSS 1.9%CVE-2021-43840MEDIUMPath traversal in message_busEPSS 1.9%CVE-2025-10897HIGHWooCommerce Designer Pro <= 1.9.28 - Unauthenticated Arbitrary File ReadEPSS 1.9%CVE-2021-33178—The Manage Backgrounds functionality within NagVis versions prior to 1.9.29 is vulnerable to an authenticated path traversal vulnerability. EPSS 1.9%CVE-2017-9270HIGHpost-auth arbitrary file write on cryptctl serverEPSS 1.9%CVE-2021-21886MEDIUMA directory traversal vulnerability exists in the Web Manager FSBrowsePage functionality of Lantronix PremierWave 2050 8.9.0.0R4. A speciallEPSS 1.9%CVE-2023-22273HIGHZDI-CAN-21307: Adobe RoboHelp Server OnPublishFile Directory Traversal Remote Code Execution VulnerabilityEPSS 1.9%