Weaknesses of type CWE-22

6,630 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-2026-121349CRITICALAdobe Connect | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 1.3%CVE-2024-29672HIGHDirectory Traversal vulnerability in zly2006 Reden before v.0.2.514 allows a remote attacker to execute arbitrary code via the DEBUG_RTC_REQEPSS 1.3%CVE-2022-28981HIGHPath traversal vulnerability in the Hypermedia REST APIs module in Liferay Portal 7.4.0 through 7.4.2 allows remote attackers to access fileEPSS 1.3%CVE-2021-32662MEDIUMTechDocs mkdocs.yml path traversalEPSS 1.3%CVE-2023-26687HIGHDirectory Traversal vulnerability in CS-Cart MultiVendor 4.16.1 allows remote attackers to obtain sensitive information via the product_dataEPSS 1.3%CVE-2026-39352HIGHFrappe has an Arbitrary File Read via Path Traversal in render_includeEPSS 1.3%CVE-2023-23314HIGHAn arbitrary file upload vulnerability in the /api/upload component of zdir v3.2.0 allows attackers to execute arbitrary code via a crafted EPSS 1.3%CVE-2023-34409CRITICALIn Percona Monitoring and Management (PMM) server 2.x before 2.37.1, the authenticate function in auth_server.go does not properly formalizeEPSS 1.3%CVE-2019-19102MEDIUMZip Slip vulnerability in 3rd-Party library in B&R Automation Studio upgrade serviceEPSS 1.3%CVE-2023-42462HIGHFile deletion through document upload process in GLPIEPSS 1.3%CVE-2021-0231MEDIUMJunos OS: SRX, vSRX Series: J-Web Path traversal vulnerability in SRX and vSRX Series leads to information disclosure.EPSS 1.3%CVE-2024-39332CRITICALWebswing 23.2.2 allows remote attackers to modify client-side JavaScript code to achieve path traversal, likely leading to remote code execuEPSS 1.3%CVE-2022-40713MEDIUMAn issue was discovered in NOKIA 1350OMS R14.2. Multiple Relative Path Traversal issues exist in different specific endpoints via the file pEPSS 1.3%CVE-2024-54374HIGHWordPress Sogrid plugin <= 1.5.6 - Local File Inclusion vulnerabilityEPSS 1.3%CVE-2021-40358CRITICALA vulnerability has been identified in SIMATIC PCS 7 V8.2 (All versions), SIMATIC PCS 7 V9.0 (All versions < V9.0 SP3 UC04), SIMATIC PCS 7 VEPSS 1.3%CVE-2026-92192HIGHQuest Foglight for Databases installLicense Directory Traversal Remote Code Execution VulnerabilityEPSS 1.3%CVE-2026-92186HIGHQuest Foglight for Databases paFnUploadFileAndCreateInfo Directory Traversal Remote Code Execution VulnerabilityEPSS 1.3%CVE-2025-2270HIGHCountdown, Coming Soon, Maintenance – Countdown & Clock <= 2.8.9.1 - Unauthenticated Limited Local File InclusionEPSS 1.3%CVE-2026-92194HIGHQuest Foglight for Databases loadManageServerLicense Directory Traversal Remote Code Execution VulnerabilityEPSS 1.3%CVE-2022-4779HIGHauthentication bypass in elvexys StreamX using StreamView HTML component with public web server featureEPSS 1.3%