CVE-2023-38337
HIGH 7.5CVSS 3.1rswag 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rswag_project | rswagcpe:2.3:a:rswag_project:rswag:*:*:*:*:*:*:*:* |
< 2.10.1 | 2.10.1 |
| OSV | RubyGems | rswag | < 2.10.1 | 2.10.1 |
References
- https://github.com/rswag/rswag/compare/2.9.0...2.10.1 · Patch, WEB
- https://github.com/rswag/rswag/issues/653 · Issue Tracking, Patch, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-38337 · ADVISORY
- https://github.com/rswag/rswag · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rswag/CVE-2023-38337.yml · WEB
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)