Security mailing lists by PureSourceCode

CVE-2023-38337

HIGH 7.5CVSS 3.1

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

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.

Published
14 Jul 2023
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-vc79-65pr-q82v
Sources
NVDJSONOSV GHSA-vc79-65pr-q82vJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD rswag_project rswag
cpe:2.3:a:rswag_project:rswag:*:*:*:*:*:*:*:*
< 2.10.1 2.10.1
OSV RubyGems rswag < 2.10.1 2.10.1

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 14 Jul 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.