Weaknesses of type CWE-22

5,862 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-48318CRITICALColdFusion | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 1.1%CVE-2026-77110HIGHAdobe Commerce | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 1.1%CVE-2024-22523HIGHDirectory Traversal vulnerability in Qiyu iFair version 23.8_ad0 and before, allows remote attackers to obtain sensitive information via uplEPSS 1.1%CVE-2023-41040MEDIUMGitPython blind local file inclusionEPSS 1.1%CVE-2026-14524CRITICALProSolution WP Client <= 2.0.8 - Unauthenticated Arbitrary File Deletion via 'newfilename' and 'filename' ParametersEPSS 1.1%CVE-2019-25579HIGHphpTransformer 2016.9 Directory Traversal via jQueryFileUploadEPSS 1.1%CVE-2025-3381MEDIUMzhangyanbo2007 youkefu File Upload WebIMController.java path traversalEPSS 1.1%CVE-2023-48243HIGHThe vulnerability allows a remote attacker to upload arbitrary files in all paths of the system under the context of the application OS userEPSS 1.1%CVE-2023-26152HIGHAll versions of the package static-server are vulnerable to Directory Traversal due to improper input sanitization passed via the validPath EPSS 1.1%CVE-2025-27783HIGHApplio allows arbitrary file write in train.pyEPSS 1.1%CVE-2024-7514MEDIUMWordPress Comments Import & Export <= 2.3.7 - Authenticated (Author+) Arbitrary File Read via Directory TraversalEPSS 1.1%CVE-2026-44024CRITICALFluentd: Remote Code Execution (RCE) via Arbitrary File Write in `${tag}` PlaceholderEPSS 1.1%CVE-2023-52076HIGHRemote Code Execution Vulnerability in Atril's EPUB ebook parsingEPSS 1.1%CVE-2022-40082HIGHHertz v0.3.0 ws discovered to contain a path traversal vulnerability via the normalizePath function.EPSS 1.1%CVE-2026-19942HIGHAtarim <= 5.1.1 - Authenticated (Author+) Arbitrary File Deletion via '_wp_attached_file' MetaEPSS 1.1%CVE-2023-1467MEDIUMSourceCodester Student Study Center Desk Management System POST Parameter path traversalEPSS 1.1%CVE-2025-4078MEDIUMWangshen SecGate 3600 g=log_export_file path traversalEPSS 1.1%CVE-2022-50890HIGHOwlfiles File Manager 12.0.1 - Path TraversalEPSS 1.1%CVE-2026-53451CRITICALGround Station: Unauthenticated arbitrary file write (path traversal) in save-waterfall-snapshot leads to remote code executionEPSS 1.1%CVE-2024-46375CRITICALBest House Rental Management System 1.0 contains an arbitrary file upload vulnerability in the signup() function of the file rental/admin_clEPSS 1.1%