Weaknesses of type CWE-22

5,925 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-2023-30509MEDIUMAuthenticated Remote Path Traversal in Aruba EdgeConnect Enterprise Command Line InterfaceEPSS 0.6%CVE-2023-30508MEDIUMAuthenticated Remote Path Traversal in Aruba EdgeConnect Enterprise Command Line InterfaceEPSS 0.6%CVE-2026-13528MEDIUMYunaiV/zhijiantianya ruoyi-vue-pro AppFileController File Upload Endpoint FileServiceImpl.java generateUploadPath path traversalEPSS 0.6%CVE-2026-52830CRITICALfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionEPSS 0.6%CVE-2025-9118CRITICALDataform Path TraversalEPSS 0.6%CVE-2024-28880MEDIUMPath traversal vulnerability in MosP kintai kanri V4.6.6 and earlier allows a remote attacker who can log in to the product to obtain sensitEPSS 0.6%CVE-2026-56260HIGHCrawl4AI - Arbitrary File Write via output_path ParameterEPSS 0.6%CVE-2025-3686MEDIUMmisstt123 oasys show image path traversalEPSS 0.6%CVE-2026-20191HIGHCisco Catalyst Center Arbitrary File Read VulnerabilityEPSS 0.6%CVE-2024-43440HIGHMoodle: lfi vulnerability when restoring malformed block backupsEPSS 0.6%CVE-2024-32807HIGHWordPress Brevo for WooCommerce plugin <= 4.0.17 - Arbitrary File Download and Deletion vulnerabilityEPSS 0.6%CVE-2025-27092HIGHPath Traversal Vulnerability in GHOSTS Photo Retrieval EndpointEPSS 0.6%CVE-2025-2363MEDIUMlenve VBlog ArticleController.java uploadImg path traversalEPSS 0.6%CVE-2025-62353CRITICALA path traversal vulnerability in all versions of the Windsurf IDE enables a threat actor to read and write arbitrary local files in and outEPSS 0.6%CVE-2025-12003HIGHA path traversal vulnerability has been identified in WebDAV, which may allow unauthenticated remote attackers to impact the integrity of thEPSS 0.6%CVE-2025-27395HIGHA vulnerability has been identified in SCALANCE LPE9403 (6GK5998-3GS00-2AC2) (All versions < V4.0). Affected devices do not properly limit tEPSS 0.6%CVE-2022-20677MEDIUMCisco IOx Application Hosting Environment VulnerabilitiesEPSS 0.6%CVE-2026-54760CRITICALLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callsEPSS 0.6%CVE-2024-28171HIGHDelta Electronics DIAEnergie Path traversalEPSS 0.6%CVE-2025-45238CRITICALfoxcms v1.2.5 was discovered to contain an arbitrary file deletion vulnerability via the delRestoreSerie method.EPSS 0.6%