{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-38337","id":"CVE-2023-38337","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.","descriptionLong":"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":"2023-07-14T00:00:00.000Z","updated":"2026-10-28T02:30:42.456278709Z","reserved":"2023-07-14T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"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","rating":"high","source":"NVD"},"metrics":[{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"rswag","purl":"pkg:gem/rswag","ranges":["<2.10.1"],"fixed":["2.10.1"],"advisory":"GHSA-vc79-65pr-q82v"}],"cwes":["CWE-22"],"aliases":["GHSA-vc79-65pr-q82v"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38337.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337","tags":["advisory"]},{"url":"https://github.com/rswag/rswag","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rswag/CVE-2023-38337.yml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.01271,"epssPercentile":0.70451,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-38337","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-38337","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vc79-65pr-q82v","ok":true,"note":"GHSA-vc79-65pr-q82v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-38337","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}