Weaknesses of type CWE-22

6,634 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-2024-21547HIGHVersions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where EPSS 0.9%CVE-2024-51748CRITICALRemote code execution through language setting in kanboardEPSS 0.9%CVE-2026-6057CRITICALUnauthenticated Path Traversal in FalkorDB Browser Leads to Remote Code ExecutionEPSS 0.9%CVE-2026-56718HIGHAJCloud AJY IPC Firmware Path Traversal via jdbhttpdEPSS 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-2022-4748MEDIUMFlatPress File Delete panel.mediamanager.file.php doItemActions path traversalEPSS 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-62424MEDIUMClipBucket path traversal vulnerability in template editor allows arbitrary file read and writeEPSS 0.9%CVE-2026-13251HIGHPerfmatters <= 2.6.4 - Unauthenticated Arbitrary File Read via 's' ParameterEPSS 0.9%CVE-2023-25688MEDIUMIBM Security Key Lifecycle Manager information disclosureEPSS 0.9%CVE-2020-36628MEDIUMCalsign APDE ZIP File CopyBuildTask.java handleExtract path traversalEPSS 0.9%CVE-2026-13339HIGHCubeWP Framework <= 1.1.30 - Unauthenticated Arbitrary File Read via prev_icon/next_icon ParameterEPSS 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-2021-42022—A vulnerability has been identified in SIMATIC eaSie PCS 7 Skill Package (All versions < V21.00 SP3). When downloading files, the affected sEPSS 0.9%CVE-2025-1335MEDIUMCmsEasy file_admin.php deleteimg_action path traversalEPSS 0.9%CVE-2026-65768HIGHMicrosoft Teams Remote Code Execution VulnerabilityEPSS 0.9%CVE-2026-69400CRITICALAzure Logic Apps Elevation of Privilege VulnerabilityEPSS 0.9%CVE-2025-14850HIGHAdvantech WebAccess/SCADA Improper Limitation of a Pathname to a Restricted DirectoryEPSS 0.9%