{"id":"CVE-2023-38337","aliases":["CVE-2023-38337","GHSA-vc79-65pr-q82v"],"related":[],"kind":"vulnerability","state":"published","title":"rswag vulnerable to arbitrary JSON and YAML file read via directory traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-07-14T00:00:00.000Z","modified":"2026-06-17T06:09:56.760Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.10.1"}],"ecosystem":"RubyGems","package":"rswag","purl":"pkg:gem/rswag","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.10.1"}],"vendor":"rswag_project","product":"rswag","cpe":"cpe:2.3:a:rswag_project:rswag:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rswag/rswag/issues/653","tags":["issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rswag/rswag/compare/2.9.0...2.10.1","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rswag/rswag","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rswag/CVE-2023-38337.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-31T16:04:49.932Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38337","url":"https://www.cve.org/CVERecord?id=CVE-2023-38337","licence":"CVE Terms of Use","modified":"2024-10-31T16:04:57.846Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vc79-65pr-q82v","url":"https://github.com/advisories/GHSA-vc79-65pr-q82v","licence":"CC-BY-4.0","modified":"2024-02-16T08:14:13.686Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38337","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337","licence":"Public domain","modified":"2026-06-17T06:09:56.760Z"}],"updatedAt":"2026-11-25T22:58:25.812Z","epss":{"score":0.01271,"percentile":0.7066,"date":"2026-12-01T12:00:22.000Z"}}