Weaknesses of type CWE-22

5,912 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-42219MEDIUMFrappe: Path Traversal via /backups RouteEPSS 0.7%CVE-2025-26616CRITICALPath Traversal endpoint 'exportar_dump.php' parameter 'file' in WeGIAEPSS 0.7%CVE-2026-55852HIGHFrappe: TarSlip RCE in Package ImportEPSS 0.7%CVE-2026-1532MEDIUMD-Link DCS-700L Music File Upload Service setUploadMusic uploadmusic path traversalEPSS 0.7%CVE-2025-5545MEDIUMaaluoxiang oa_system ProcedureController.java image path traversalEPSS 0.7%CVE-2026-54617CRITICALGravitLauncher: Unauthenticated path traversal in LaunchServer FileServerHandlerEPSS 0.7%CVE-2025-5381MEDIUMYifang CMS Admin Panel downloadFile path traversalEPSS 0.7%CVE-2024-49287HIGHWordPress PDF-Rechnungsverwaltung plugin <= 0.0.1 - Local File Inclusion vulnerabilityEPSS 0.7%CVE-2026-28795HIGHOpenChatBI: Critical Path Traversal Vulnerability in save_report Tool of OpenChatBIEPSS 0.7%CVE-2025-4329MEDIUM74CMS index path traversalEPSS 0.7%CVE-2025-62630HIGHAdvantech DeviceOn/iEdge Path TraversalEPSS 0.7%CVE-2026-54343HIGHFrappe LMS: Path Traversal in SCORM File ServingEPSS 0.7%CVE-2026-22860HIGHRack has a Directory Traversal via Rack:DirectoryEPSS 0.7%CVE-2024-37497HIGHWordPress JetThemeCore plugin < 2.2.1 - Subscriber+ Arbitrary File Deletion vulnerabilityEPSS 0.7%CVE-2024-6759MEDIUMNFS client accepts file names containing path separatorsEPSS 0.7%CVE-2026-15019HIGHDirect Download for WooCommerce <= 1.19 - Unauthenticated Arbitrary File Read via 'file_id' Path SegmentEPSS 0.7%CVE-2026-75592MEDIUMKirby: Access to image files outside of the site root via path traversal in the media handlingEPSS 0.7%CVE-2024-44720HIGHSeaCMS v13.1 was discovered to an arbitrary file read vulnerability via the component admin_safe.php.EPSS 0.7%CVE-2023-37888HIGHWordPress Phlox Core Elements plugin <= 2.14.0 - Unauthenticated Local File Inclusion vulnerabilityEPSS 0.7%CVE-2024-52771CRITICALDedeBIZ v6.3.0 was discovered to contain an arbitrary file deletion vulnerability via the component /admin/file_manage_view.EPSS 0.7%