Weaknesses of type CWE-22

5,967 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-24960HIGHMissing Input validation for filename in backups endpoint in JellystatEPSS 0.5%CVE-2024-47556HIGHPre-Auth RCE via Path TraversalEPSS 0.5%CVE-2025-26779MEDIUMWordPress Keep Backup Daily plugin <= 2.1.0 - Arbitrary File Download vulnerabilityEPSS 0.5%CVE-2024-47557HIGHPre-Auth RCE via Path TraversalEPSS 0.5%CVE-2025-49448HIGHWordPress FW Food Menu plugin <= 6.0.0 - Arbitrary File Deletion VulnerabilityEPSS 0.5%CVE-2026-12609HIGHIn Eclipse Theia versions 1.66.0 and up until including 1.73.1, the `@theia/plugin-ext` backend exposes the `/hostedPlugin/:pluginId/:path(*EPSS 0.5%CVE-2026-54017HIGHOpen WebUI: Path traversal / SSRF in terminal server proxy via encoded path traversalEPSS 0.5%CVE-2026-53502HIGHThumbor has path traversal via post-validation URL decoding bypass in file_loaderEPSS 0.5%CVE-2026-86258HIGHnbviewer through 1.0.1 Path Traversal via LocalFileHandlerEPSS 0.5%CVE-2026-30351HIGHA path traversal vulnerability in the UI/static component of leonvanzyl autocoder commit 79d02a allows attackers to read arbitrary files viaEPSS 0.5%CVE-2026-61505MEDIUMRejetto HFS < 3.2.1 Limited File Disclosure via Path Traversal in lang ParameterEPSS 0.5%CVE-2026-19672MEDIUMtarfile extraction filter bypass allows creation of directories outside the destinationEPSS 0.5%CVE-2026-41493MEDIUMyard: Possible arbitrary path traversal and file access via yard serverEPSS 0.5%CVE-2026-48777CRITICALFileBrowser Quantum: Path Traversal in public share PATCH allows file ops outside shared directoryEPSS 0.5%CVE-2026-26985HIGHLORIS vulnerable to path traversal in electrophysiology_browserEPSS 0.5%CVE-2026-1811MEDIUMbolo-blog bolo-solo Filename BackupService.java importFromMarkdown path traversalEPSS 0.5%CVE-2026-82251HIGHgitoxide before 0.52.1 Path Traversal via Submodule NameEPSS 0.5%CVE-2026-73509HIGHOpenList: Authenticated users can rename files outside their base path via batch rename `src_name` traversalEPSS 0.5%CVE-2026-36851HIGHPath traversal vulnerability in UnPoller 2.33.0 password field allows arbitrary file read and network exfiltration.EPSS 0.5%CVE-2024-9575HIGHLocal File Inclusion in pretix-widget WordPress pluginEPSS 0.5%