Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-22207— Default swagger-ui configuration exposes all files in the module

Quick assessment

Affected
fastify fastify-swagger-ui
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Swagger UI是一款支持可视化API资源并能够与之进行交互的开源工具。 Swagger UI v2.1.0 之前版本存在安全漏洞,该漏洞源于默认 swagger-ui 配置公开模块中的所有文件。

CVSS 5.3 · Medium EPSS 2.29% · P83

Public Exploits 1

Possible ATT&CK Techniques 1 AI

T1005 · Data from Local System
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-22207

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Default swagger-ui configuration exposes all files in the module
Source: CVE Program / CVE List V5
Vulnerability Description
fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, the default configuration of `@fastify/swagger-ui` without `baseDir` set will lead to all files in the module's directory being exposed via http routes served by the module. The vulnerability is fixed in v2.1.0. Setting the `baseDir` option can also work around this vulnerability.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
不安全的默认资源初始化
Source: CVE Program / CVE List V5
Vulnerability Title
Swagger UI 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Swagger UI是一款支持可视化API资源并能够与之进行交互的开源工具。 Swagger UI v2.1.0 之前版本存在安全漏洞,该漏洞源于默认 swagger-ui 配置公开模块中的所有文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
fastify fastify-swagger-ui < 2.1.0 -

II. Public POCs for CVE-2024-22207

# POC Description Source Link Shenlong Link
1 fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, the default configuration of `@fastify/swagger-ui` without `baseDir` set will lead to all files in the module's directory being exposed via http routes served by the module. The vulnerability is fixed in v2.1.0. Setting the `baseDir` option can also work around this vulnerability. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-22207.yaml POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-22207

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-22207 (1)

Vendor Advisories for CVE-2024-22207 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2024-22207

No comments yet


Leave a comment