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-2023-34345MEDIUMAMI BMC contains a vulnerability in the SPX REST API, where an attacker with the required privileges can access arbitrary files, which may lEPSS 0.7%CVE-2026-34745CRITICALUnauthenticated Path Traversal Arbitrary File Write in /api/uploadChunked/publicEPSS 0.7%CVE-2026-42882CRITICALoxyno-zeta/s3-proxy: Security Issues in Resource Path MatchingEPSS 0.7%CVE-2026-6615MEDIUMTransformerOptimus SuperAGI Multipart Upload resources.py upload path traversalEPSS 0.7%CVE-2024-10830HIGHPath Traversal in eosphoros-ai/db-gptEPSS 0.7%CVE-2026-9550MEDIUMAcrel Electrical EEMS Enterprise Power Operation and Maintenance Cloud Platform upfile path traversalEPSS 0.7%CVE-2025-11630MEDIUMRainyGao DocSys File Upload uploadDoc.do updateRealDoc path traversalEPSS 0.7%CVE-2026-44522HIGHNote Mark: Arbitrary File Write via Path Traversal in Asset Names Leading to Remote Code ExecutionEPSS 0.7%CVE-2023-52289HIGHAn issue was discovered in the flaskcode package through 0.0.8 for Python. An unauthenticated directory traversal, exploitable with a POST rEPSS 0.7%CVE-2026-6568MEDIUMkodcloud KodExplorer Public Share share.class.php initShareOld path traversalEPSS 0.7%CVE-2026-8756MEDIUMfishaudio Bert-VITS2 Gradio webui_preprocess.py generate_config path traversalEPSS 0.7%CVE-2026-5258MEDIUMSanster IOPaint File Manager file_manager.py _get_file path traversalEPSS 0.7%CVE-2026-8755MEDIUMfishaudio Bert-VITS2 Model hiyoriUI.py _get_all_models path traversalEPSS 0.7%CVE-2026-95698MEDIUMMISP Path Traversal in OrgImgHelper findOrgImage via Crafted Organization NameEPSS 0.7%CVE-2022-46178HIGHPath Traversal In MeterSpere allows file upload to any pathEPSS 0.7%CVE-2022-34762MEDIUMA CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists that could cause unauthorized EPSS 0.7%CVE-2026-77914HIGHrConfig Core 8.0.0 < 8.2.13 Core Path Traversal via Export Download EndpointEPSS 0.7%CVE-2023-38256MEDIUMDover Fueling Solutions MAGLINK LX Console Path TraversalEPSS 0.7%CVE-2025-1310MEDIUMJobs for WordPress <= 2.7.11 - Authenticated (Subscriber+) Arbitrary File ReadEPSS 0.7%CVE-2025-54347CRITICALA Directory Traversal vulnerability was found in the Application Server of Desktop Alert PingAlert version 6.1.0.11 to 6.1.1.2 which allows EPSS 0.7%