Weaknesses of type CWE-22

6,020 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-2025-54658HIGHAn Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability [CWE-22] in Fortinet FortiDLP Agent's OutlooEPSS 0.2%CVE-2026-82708HIGHBotslab G980H Dashcams Improper Limitation of a Pathname to a Restricted DirectoryEPSS 0.2%CVE-2026-88394HIGHWookTeam v1.6.6 and before is vulnerable to a Directory Traversal. The project task export endpoint /api/project/task/export downloads an arEPSS 0.2%CVE-2026-28793HIGHPath Traversal Leading to Arbitrary File Read, Write and Delete in TinaCMSEPSS 0.2%CVE-2024-7061MEDIUMOkta Verify for Windows is vulnerable to privilege escalation through DLL hijacking. The vulnerability is fixed in Okta Verify for Windows vEPSS 0.2%CVE-2026-103884MEDIUMKeycloak-services: keycloak-services: path traversal in x.509 crl distribution point allows arbitrary local file readEPSS 0.2%CVE-2026-41861MEDIUMArbitrary Root File Write via Path Traversal in BOSH agentEPSS 0.2%CVE-2023-31427HIGHKnowledge of full path nameEPSS 0.2%CVE-2026-19059MEDIUMFoundationAgents MetaGPT editor.py read path traversalEPSS 0.2%CVE-2026-26972MEDIUMOpenClaw has a Path Traversal in Browser Download FunctionalityEPSS 0.2%CVE-2026-28827CRITICALA parsing issue in the handling of directory paths was addressed with improved path validation. This issue is fixed in macOS Sequoia 15.7.5,EPSS 0.2%CVE-2026-73737MEDIUMUnauthenticated Path Traversal in HPE Networking Fabric Composer API Endpoint Allows Unauthorized File ModificationEPSS 0.2%CVE-2026-102262HIGHNewell Brands DYMO ID parent directory open to path traversal through improper spheres of controlEPSS 0.2%CVE-2026-18648MEDIUMBlix Email Blue Mail Calendar App react-native-receive-sharing-intent FileDirectory.getFileFromUri path traversalEPSS 0.2%CVE-2026-8736LOWOinone Pamirs RestController LocalFileClient.java request.getParameter path traversalEPSS 0.2%CVE-2026-84431MEDIUMAirAsia MOVE App com.airasia.mobile com.airasia.core.utils.RealPathUtil.getRealPath path traversalEPSS 0.2%CVE-2026-55443MEDIUMLangChain: Path traversal and sandbox escape in LangChain file-search middleware and loadersEPSS 0.2%CVE-2026-84852MEDIUMReader Tools PDF Reader App File ActSplashNew.handleDeeplink path traversalEPSS 0.2%CVE-2026-84442MEDIUMMapQuest Get Directions App com.mapquest.android.ace ExpoShareIntentModule.kt getDataColumn path traversalEPSS 0.2%CVE-2026-18853MEDIUMZomboDroid Meme Generator App com.zombodroid.MemeGenerator t5.l.c path traversalEPSS 0.2%