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-2023-47279HIGHDelta Electronics InfraSuite Device Master Path TraversalEPSS 1.1%CVE-2026-78851MEDIUMDirectory Traversal vulnerability in Grav CMS 2.0.3 through 2.0.6 allows a remote attacker to obtain sensitive information via the GravExtenEPSS 1.1%CVE-2026-26396HIGHOpenBMB XAgent v1.0.0 and before is vulnerable to path traversal in the file() function in XAgent/XAgentServer/application/routers/workspaceEPSS 1.1%CVE-2025-6795MEDIUMMarvell QConvergeConsole getFileUploadSize Directory Traversal Information Disclosure VulnerabilityEPSS 1.1%CVE-2025-6807MEDIUMMarvell QConvergeConsole getDriverTmpPath Directory Traversal Information Disclosure VulnerabilityEPSS 1.1%CVE-2026-66050HIGHNitroShare Desktop 0.3.4 Path Traversal via LAN File Transfer ServerEPSS 1.1%CVE-2026-100520HIGHLaranode before 1.2.1 Path Traversal in File Manager Upload EndpointEPSS 1.1%CVE-2022-4880MEDIUMstakira OpenUtau ZIP Archive VoicebankInstaller.cs VoicebankInstaller path traversalEPSS 1.1%CVE-2022-24851HIGHStored XSS and path traversal in LDAPAccountManager/lamEPSS 1.1%CVE-2021-41149HIGHImproper sanitization of target names in toughEPSS 1.1%CVE-2021-33182MEDIUMImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in PDF Viewer component in Synology DiskStationEPSS 1.1%CVE-2022-40082HIGHHertz v0.3.0 ws discovered to contain a path traversal vulnerability via the normalizePath function.EPSS 1.1%CVE-2019-25097MEDIUMsoerennb eXtplorer Directory Content path traversalEPSS 1.1%CVE-2022-25937MEDIUMVersions of the package glance before 3.0.9 are vulnerable to Directory Traversal that allows users to read files outside the public root diEPSS 1.1%CVE-2022-20727MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 1.1%CVE-2026-52680CRITICALApache Kyuubi: REST batch multipart upload path traversal allows controlled file writeEPSS 1.1%CVE-2026-18386MEDIUMWP BackItUp Community Edition <= 2.1.0 - Authenticated (Administrator+) Path Traversal to Arbitrary File Read via 'backup_file' ParameterEPSS 1.1%CVE-2025-55523LOWAn issue in the component /api/download_work_dir_file.py of Agent-Zero v0.8.* allows attackers to execute a directory traversal.EPSS 1.1%CVE-2022-42706MEDIUMAn issue was discovered in Sangoma Asterisk through 16.28, 17 and 18 through 18.14, 19 through 19.6, and certified through 18.9-cert1. GetCoEPSS 1.1%CVE-2022-50890HIGHOwlfiles File Manager 12.0.1 - Path TraversalEPSS 1.1%