Weaknesses of type CWE-22

6,631 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-2021-40359HIGHA vulnerability has been identified in OpenPCS 7 V8.2 (All versions), OpenPCS 7 V9.0 (All versions < V9.0 Upd4), OpenPCS 7 V9.1 (All versionEPSS 1.2%CVE-2017-20284HIGHCaucho Resin resin-doc Unauthenticated Path Traversal via jndi-appconfig ServletEPSS 1.2%CVE-2023-38702CRITICALKnowage Server vulnerable to path traversal via upload functionalityEPSS 1.2%CVE-2020-15182HIGHCross-site Request Forgery leading to RCE in SOY CMSEPSS 1.2%CVE-2026-19952HIGHFrontend Admin by DynamiApps <= 3.29.12 - Unauthenticated Arbitrary File Deletion via Path Traversal via custom_directory_name Merge TagEPSS 1.2%CVE-2023-32003MEDIUM`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to bypass the permission model check using a path traversal attack. This flaw arises from EPSS 1.2%CVE-2023-25265HIGHDocmosis Tornado <= 2.9.4 is vulnerable to Directory Traversal leading to the disclosure of arbitrary content on the file system.EPSS 1.2%CVE-2024-5187HIGHArbitrary File Overwrite in download_model_with_test_data in onnx/onnxEPSS 1.2%CVE-2026-91771HIGHWeights & Biases wandb before 0.29.0 Path Traversal via File DownloadEPSS 1.2%CVE-2021-40357—A vulnerability has been identified in Teamcenter Active Workspace V4.3 (All versions < V4.3.10), Teamcenter Active Workspace V5.0 (All versEPSS 1.2%CVE-2024-42501HIGHAuthenticated Path Traversal Vulnerability Leads to a Remote Command Execution (RCE)EPSS 1.2%CVE-2023-32137MEDIUMD-Link DAP-1360 webproc WEB_DisplayPage Directory Traversal Information Disclosure VulnerabilityEPSS 1.2%CVE-2026-9725CRITICALPrintcart Web to Print Product Designer for WooCommerce <= 2.5.2 - Unauthenticated Arbitrary File DeletionEPSS 1.2%CVE-2026-14487CRITICALSimple Coherent Form <= 2.4.13 - Unauthenticated Arbitrary File Deletion via 'id' ParameterEPSS 1.2%CVE-2026-121351CRITICALAdobe Connect | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 1.2%CVE-2026-28807HIGHPath Traversal in wisp.serve_static allows arbitrary file readEPSS 1.2%CVE-2024-41887MEDIUMArbitrary File OverwriteEPSS 1.2%CVE-2022-34126HIGHThe Activity plugin before 3.1.1 for GLPI allows reading local files via directory traversal in the front/cra.send.php file parameter.EPSS 1.2%CVE-2020-5221MEDIUMDirectory Traversal (Chroot Escape) vulnerability in uftpdEPSS 1.2%CVE-2026-69943HIGHMicrosoft Office SharePoint Remote Code Execution VulnerabilityEPSS 1.2%