Advisory

GHSA-vc79-65pr-q82v

Also known as: CVE-2023-38337

Summary

rswag vulnerable to arbitrary JSON and YAML file read via directory traversal

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-07-15 00:30 UTC
Modified
2024-02-16 08:14 UTC

Affected packages and fixes

rswag

RubyGems · All systems

Affected

  • introduced 0, fixed 2.10.1 (ecosystem)

Fixed versions

2.10.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences