Weaknesses of type CWE-22

5,906 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-7628MEDIUMYiJiuSmile kkFileViewOfficeEdit deleteFile path traversalEPSS 0.7%CVE-2023-34216HIGHSecond Order Command-injection Vulnerability in the Key-delete FunctionEPSS 0.7%CVE-2020-37015HIGHRuijie Networks Switch eWeb S29_RGOS 11.4 - Directory TraversalEPSS 0.7%CVE-2024-49770HIGHoak's path traversal allows transfer of hidden files within the served root directoryEPSS 0.7%CVE-2025-69601MEDIUMA directory traversal (Zip Slip) vulnerability exists in the “Static Sites” feature of 66biolinks v44.0.0 by AltumCode. Uploaded ZIP archiveEPSS 0.7%CVE-2025-59171HIGHAdvantech DeviceOn/iEdge Path TraversalEPSS 0.7%CVE-2023-29104MEDIUMA vulnerability has been identified in SIMATIC Cloud Connect 7 CC712 (All versions >= V2.0 < V2.1), SIMATIC Cloud Connect 7 CC716 (All versiEPSS 0.7%CVE-2022-45921HIGHFusionAuth before 1.41.3 allows a file outside of the application root to be viewed or retrieved using an HTTP request. To be specific, an aEPSS 0.7%CVE-2026-32771HIGHMonitoring is vulnerable to Archive Slip due to missing checks in sanitizationEPSS 0.7%CVE-2023-32176HIGHVIPRE Antivirus Plus SetPrivateConfig Directory Traversal Local Privilege Escalation VulnerabilityEPSS 0.7%CVE-2026-82264MEDIUMDuplicacy Path Traversal during Restore via Unsanitized Snapshot PathsEPSS 0.7%CVE-2026-14439CRITICALPath Traversal in Altium Git Service Allows Remote Code ExecutionEPSS 0.7%CVE-2023-32177HIGHVIPRE Antivirus Plus DeleteHistoryFile Directory Traversal Local Privilege Escalation VulnerabilityEPSS 0.7%CVE-2024-54380HIGHWordPress WP Cookies Enabler plugin <= 1.0.1 - Local File Inclusion vulnerabilityEPSS 0.7%CVE-2026-11420CRITICALPath Traversal in Altium Enterprise Server NIS Allows Unauthenticated Arbitrary File Write and File ReadEPSS 0.7%CVE-2024-54375HIGHWordPress Woolook plugin <= 1.7.0 - Local File Inclusion vulnerabilityEPSS 0.7%CVE-2023-22776MEDIUMAuthenticated Remote Path Traversal in ArubaOS Command Line Interface Allows for Arbitrary File ReadEPSS 0.7%CVE-2026-30976HIGHSonarr Path Traversal vulnerabilityEPSS 0.7%CVE-2026-33236HIGHNLTK has a Downloader Path Traversal Vulnerability (AFO) - Arbitrary File OverwriteEPSS 0.7%CVE-2025-67083MEDIUMDirectory traversal vulnerability in InvoicePlane through 1.6.3 allows unauthenticated attackers to read files from the server. The ability EPSS 0.7%