Weaknesses of type CWE-22

5,972 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-39378MEDIUMnbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image EmbeddingEPSS 0.5%CVE-2026-55201HIGHEvil-WinRM - Path Traversal in download_dir() FunctionEPSS 0.5%CVE-2024-0980HIGHThe Auto-update service for Okta Verify for Windows is vulnerable to two flaws which in combination could be used to execute arbitrary code.EPSS 0.5%CVE-2026-1810MEDIUMbolo-blog bolo-solo ZIP File BackupService.java unpackFilteredZip path traversalEPSS 0.5%CVE-2026-43791MEDIUMA validation issue was addressed with improved input sanitization. This issue is fixed in macOS Golden Gate 27, macOS Sequoia 15.8, macOS TaEPSS 0.5%CVE-2023-25750MEDIUMUnder certain circumstances, a ServiceWorker's offline cache may have leaked to the file system when using private browsing mode. This vulneEPSS 0.5%CVE-2026-42028MEDIUMnovaGallery: Unauthenticated Path Traversal in Album and Cached Image Routes Allows Reading Images Outside Gallery RootEPSS 0.5%CVE-2026-32885MEDIUMDDEV has ZipSlip path traversal in tar and zip archive extractionEPSS 0.5%CVE-2025-59744HIGHMultiple vulnerabilities in AndSoft's e-TMSEPSS 0.5%CVE-2025-61586MEDIUMFreshRSS is vulnerable to directory enumeration by setting path in its theme fieldEPSS 0.5%CVE-2025-10233MEDIUMkalcaddle kodbox editor.class.php fileSave path traversalEPSS 0.5%CVE-2025-60574HIGHA Local File Inclusion (LFI) vulnerability has been identified in tQuadra CMS 4.2.1117. The issue exists in the "/styles/" path, which failsEPSS 0.5%CVE-2025-7896MEDIUMharry0703 MoneyPrinterTurbo video.py delete_video path traversalEPSS 0.5%CVE-2025-60024HIGHMultiple Improper Limitations of a Pathname to a Restricted Directory ('Path Traversal') vulnerabilities [CWE-22] vulnerability in Fortinet EPSS 0.5%CVE-2023-42804LOWBigBlueButton Path Traversal – Reading Certain File ExtensionsEPSS 0.5%CVE-2026-102119HIGHKiteworks Email Protection Gateway Path TraversalEPSS 0.5%CVE-2026-39405CRITICALFrappe has Path Transversal via SCORMEPSS 0.5%CVE-2026-27735MEDIUMmcp-server-git : Path traversal in git_add allows staging files outside repository boundariesEPSS 0.5%CVE-2026-81659HIGHFlowintel Note PDF Export Allows Arbitrary Local File Read via Pandoc/XeLaTeX ProcessingEPSS 0.5%CVE-2026-43872MEDIUMactual-server has a path traversal vulnerabilityEPSS 0.5%