Weaknesses of type CWE-22

6,021 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-58484HIGHNetwork-AI: Poisoned environment backup manifest allows arbitrary recursive deletion during backup pruningEPSS 0.2%CVE-2022-3146—A flaw was found in tripleo-ansible. Due to an insecure default configuration, the permissions of a sensitive file are not sufficiently restEPSS 0.2%CVE-2026-26960HIGHnode-tar has Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in ExtractionEPSS 0.2%CVE-2022-3101—A flaw was found in tripleo-ansible. Due to an insecure default configuration, the permissions of a sensitive file are not sufficiently restEPSS 0.2%CVE-2026-19444MEDIUMKubernetes kubectl cp path traversal on Windows allows arbitrary file writesEPSS 0.2%CVE-2026-13622HIGHKubevirt: virt-handler-rhel9: kubevirt: virt-handler migration proxy follows symlinks allowing container escape to hostEPSS 0.2%CVE-2026-3840HIGHPath Traversal in kedro-org/kedroEPSS 0.2%CVE-2022-29837MEDIUMPath traversal Vulnerability in Western Digital My Cloud Home, My Cloud Home Duo and SanDisk ibi DevicesEPSS 0.2%CVE-2026-41530MEDIUMThe automatic folder creation feature of Lhaz and Lhaz+ provided by Chitora soft contains a path traversal vulnerability. When the affected EPSS 0.2%CVE-2024-38358LOWSymlink bypasses filesystem sandbox in wasmerEPSS 0.2%CVE-2026-40027HIGHALEAPP NQ Vault Artifact Parser Path TraversalEPSS 0.2%CVE-2025-14699MEDIUMMunicorn FAX App biz.faxapp.app path traversalEPSS 0.2%CVE-2026-35338HIGHuutils coreutils chmod Path Traversal Bypass of --preserve-rootEPSS 0.2%CVE-2026-0270MEDIUMCortex XSOAR: Path Traversal VulnerabilityEPSS 0.2%CVE-2026-35206MEDIUMHelm Chart extraction output directory collapse via `Chart.yaml` name dot-segmentEPSS 0.2%CVE-2025-14702MEDIUMSmartbit CommV Smartschool App be.smartschool.mobile.SplashActivity path traversalEPSS 0.2%CVE-2025-14698MEDIUMatlaszz AI Photo Team Galleryit App gallery.photogallery.pictures.vault.album path traversalEPSS 0.2%CVE-2025-54160HIGHImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in BeeDrive in Synology BeeDrive for desktop beEPSS 0.2%CVE-2026-44192MEDIUMAnsible-lightspeed: ansible lightspeed mcp server: remote code execution and data exfiltration via path traversalEPSS 0.2%CVE-2023-21448MEDIUMPath traversal vulnerability in Samsung Cloud prior to version 5.3.0.32 allows attacker to access specific png file.EPSS 0.2%