Weaknesses of type CWE-22

5,839 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-52334HIGHAllegra downloadAttachmentGlobal Directory Traversal Information Disclosure VulnerabilityEPSS 1.9%CVE-2022-23612HIGHDirectory Traversal in OpenMRS Startup FilterEPSS 1.9%CVE-2022-41158HIGHeyoom builder Remote Code Execution VulnerabilityEPSS 1.9%CVE-2026-53519CRITICALNezha Monitoring: Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_keyEPSS 1.9%CVE-2018-3766—Path traversal in buttle module versions <= 0.2.0 allows to read any file in the server.EPSS 1.9%CVE-2018-3734—stattic node module suffers from a Path Traversal vulnerability due to lack of validation of path, which allows a malicious user to read conEPSS 1.9%CVE-2026-27886CRITICALStrapi may leak sensitive data via relational filtering due to lack of query sanitizationEPSS 1.9%CVE-2026-26217CRITICALCrawl4AI < 0.8.0 Docker API Local File Inclusion via file URL HandlingEPSS 1.9%CVE-2026-23536HIGHFeast: unauthenticated arbitrary file readEPSS 1.9%CVE-2021-43775HIGHArbitrary file reading vulnerability in AimEPSS 1.9%CVE-2023-52333CRITICALAllegra saveFile Directory Traversal Remote Code Execution VulnerabilityEPSS 1.9%CVE-2021-28206MEDIUMASUS BMC's firmware: path traversal - Record video file functionEPSS 1.9%CVE-2021-28209MEDIUMASUS BMC's firmware: path traversal - Delete video file functionEPSS 1.9%CVE-2021-28207MEDIUMASUS BMC's firmware: path traversal - Get Help file functionEPSS 1.9%CVE-2018-4861—A vulnerability has been identified in SCALANCE M875 (All versions). An authenticated remote attacker with access to the web interface (443/EPSS 1.9%CVE-2021-28205MEDIUMASUS BMC's firmware: path traversal - Delete SOL video file functionEPSS 1.9%CVE-2021-28208MEDIUMASUS BMC's firmware: path traversal - Get video file functionEPSS 1.9%CVE-2026-53976CRITICALOpenChamber 1.11.7 Path Traversal File Read via allowOutsideWorkspace ParameterEPSS 1.9%CVE-2020-6974—Honeywell Notifier Web Server (NWS) Version 3.50 is vulnerable to a path traversal attack, which allows an attacker to bypass access to restEPSS 1.9%CVE-2022-39058HIGHChanging Information Technology Inc. RAVA certificate validation system - Path TraversalEPSS 1.9%