Every CVE Search/ Get API key

CVE-2023-38337

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

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

1.27%Up 1.2 points since Jul 15, 2023
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2023-38337
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2023-38337
Updated
2026-11-02
EUVDEUVD-2023-2148 No score

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.

Record
EUVD-2023-2148
Updated
2026-11-03
GitHub AdvisoriesGHSA-vc79-65pr-q82v 7.5

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.

Record
GHSA-vc79-65pr-q82v
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
OSVGHSA-vc79-65pr-q82v 7.5

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.

Record
GHSA-vc79-65pr-q82v
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
OSV No score

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.

Record
CVE-2023-38337
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
rswag
RubyGems
before 2.10.1
2.10.1
rswag
RubyGems
before 2.10.1, plus listed versions
1.0.01.0.11.0.21.0.31.1.0
Show 32 moreShow less
1.2.01.2.11.3.01.4.01.5.01.5.11.5.21.6.02.0.02.0.12.0.22.0.32.0.42.0.52.0.62.1.02.1.12.10.02.2.02.3.02.3.12.3.22.3.32.4.02.5.02.5.0.rc12.5.12.5.1.rc12.6.02.7.02.8.02.9.0
2.10.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-38337 is a high vulnerability (CVSS 7.5) in Rswag Project Rswag, published July 14, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.27%, the 70th percentile. Fixed in rswag 2.10.1.

References

MoveEnter Open