{"id":"CVE-2023-38337","aliases":["EUVD-2023-2148","GHSA-vc79-65pr-q82v"],"status":"published","title":"rswag vulnerable to arbitrary JSON and YAML file read via directory traversal","description":"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":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01271,"percentile":0.7003,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2023-07-14T00:00:00Z","modified":"2026-10-28T02:30:42Z","fixes":[{"ecosystem":"RubyGems","package":"rswag","fixed_in":["2.10.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"rswag","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"rswag","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.1"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","1.5.0","1.5.1","1.5.2","1.6.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.1.0","2.1.1","2.10.0","2.2.0","2.3.0","2.3.1","2.3.2","2.3.3","2.4.0","2.5.0","2.5.0.rc1","2.5.1","2.5.1.rc1","2.6.0","2.7.0","2.8.0","2.9.0"]}],"products":[{"vendor":"rswag_project","product":"rswag"}],"references":[{"url":"https://github.com/rswag/rswag/issues/653","tags":["x_transferred","Issue Tracking","Patch","report","web"]},{"url":"https://github.com/rswag/rswag/compare/2.9.0...2.10.1","tags":["x_transferred","Patch","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rswag/CVE-2023-38337.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vc79-65pr-q82v"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38337.json","tags":["advisory"]},{"url":"https://github.com/rswag/rswag","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-38337","description":"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.","status":"published","published":"2023-07-14T00:00:00Z","modified":"2024-10-31T16:04:57.846Z","updated_at":"2026-11-02T14:35:29.772612Z"}],"euvd":[{"id":"EUVD-2023-2148","description":"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.","status":"published","published":"2023-07-14T00:00:00Z","modified":"2024-10-31T16:04:57Z","updated_at":"2026-11-03T00:05:13.496556Z"}],"ghsa":[{"id":"GHSA-vc79-65pr-q82v","title":"rswag vulnerable to arbitrary JSON and YAML file read via directory traversal","description":"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.","status":"published","published":"2023-07-15T00:30:34Z","modified":"2023-11-06T05:03:10Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:14.234712Z"}],"nvd":[{"id":"CVE-2023-38337","description":"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.","status":"published","published":"2023-07-14T22:15:09.43Z","modified":"2026-06-17T06:09:56.76Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:08:17.044696Z"}],"osv":[{"id":"GHSA-vc79-65pr-q82v","title":"rswag vulnerable to arbitrary JSON and YAML file read via directory traversal","description":"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.","status":"published","published":"2023-07-15T00:30:34Z","modified":"2024-02-16T08:14:13.686927Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:56.981655Z"},{"id":"CVE-2023-38337","description":"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.","status":"published","published":"2023-07-14T00:00:00Z","modified":"2026-10-28T02:30:42.456278709Z","updated_at":"2026-11-02T15:44:32.922049Z"}]}}
