High, CVSS 7.5RubyGemsPublished
rswag vulnerable to arbitrary JSON and YAML file read via directory traversal
CVE-2023-38337 · GHSA-vc79-65pr-q82v
- Affected
- RubyGems rswag < 2.10.1
- Fixed in
- 2.10.1· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 2.10.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.