Live threats

All CVEs / Rswag Project

CVE-2023-38337Rswag Project Rswag

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
Jul 14, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

rswag before 2.10.1 allows remote attackers to read arbitrary JSON and YAML files via directory traversal, because rswag-api can expose a file that is not the OpenAPI (or Swagger) specification file of a project.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rswag.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rswag < 2.10.1 2.10.1 gem "rswag", ">= 2.10.1"

Per OSV / GitHub Advisories (GHSA-vc79-65pr-q82v). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rswag_projectrswag< 2.10.1

Official sources

References

Links published by the sources. Open them with care.