RCE in Fastify Fastify-Swagger-Ui
CVE-2024-22207
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS: 0.023 (83.2th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 83rd percentile — 83.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.023 · newest: 0.023 · change: 0.000
Affected products
- Fastify Fastify-Swagger-Ui — versions < 2.1.0
- Smartbear Swagger Ui
Weakness classification (CWE)
Public proof-of-concept exploits
References
Frequently asked questions
- What is CVE-2024-22207?
- CVE-2024-22207 is a medium-severity vulnerability in Fastify Fastify-Swagger-Ui, classified under Initialization of a Resource with an Insecure Default. CVSS score: 5.3/10. Published 2024-01-15.
- How severe is CVE-2024-22207?
- Medium severity. CVSS v3 base score is 5.3 out of 10.
- Is CVE-2024-22207 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.