Weaknesses of type CWE-22

5,865 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-56718HIGHAJCloud AJY IPC Firmware Path Traversal via jdbhttpdEPSS 0.9%CVE-2024-51748CRITICALRemote code execution through language setting in kanboardEPSS 0.9%CVE-2025-47952LOWTraefik allows path traversal using url encodingEPSS 0.9%CVE-2023-1864MEDIUMFANUC ROBOGUIDE-HandlingPRO Path TraversalEPSS 0.9%CVE-2024-10803HIGHMP3 Sticky Player <= 8.0 - Unauthenticated Arbitrary File Read/DownloadEPSS 0.9%CVE-2024-4347HIGHWP Fastest Cache <= 1.2.6 - Authenticated (Administrator+) Arbitrary File DeletionEPSS 0.9%CVE-2024-1485HIGHRegistry-support: decompress can delete files outside scope via relative pathsEPSS 0.9%CVE-2025-67160HIGHAn issue in Vatilon v1.12.37-20240124 allows attackers to access sensitive directories and files via a directory traversal.EPSS 0.9%CVE-2022-39022MEDIUMe-Excellence Inc. U-Office Force - Path TraversalEPSS 0.9%CVE-2022-39023MEDIUMe-Excellence Inc. U-Office Force - Path TraversalEPSS 0.9%CVE-2026-13251HIGHPerfmatters <= 2.6.4 - Unauthenticated Arbitrary File Read via 's' ParameterEPSS 0.9%CVE-2025-62424MEDIUMClipBucket path traversal vulnerability in template editor allows arbitrary file read and writeEPSS 0.9%CVE-2022-1264MEDIUMInductive Automation IgnitionEPSS 0.9%CVE-2026-13339HIGHCubeWP Framework <= 1.1.30 - Unauthenticated Arbitrary File Read via prev_icon/next_icon ParameterEPSS 0.9%CVE-2023-25688MEDIUMIBM Security Key Lifecycle Manager information disclosureEPSS 0.9%CVE-2025-1335MEDIUMCmsEasy file_admin.php deleteimg_action path traversalEPSS 0.9%CVE-2023-31477HIGHA path traversal issue was discovered on GL.iNet devices before 3.216. Through the file sharing feature, it is possible to share an arbitrarEPSS 0.9%CVE-2025-4330HIGHExtraction filter bypass for linking outside extraction directoryEPSS 0.9%CVE-2026-65768HIGHMicrosoft Teams Remote Code Execution VulnerabilityEPSS 0.9%CVE-2016-15055HIGHJVC VN-T IP-Camera Directory Traversal via check.cgiEPSS 0.9%