{"id":"GHSA-vc79-65pr-q82v","summary":"rswag vulnerable to arbitrary JSON and YAML file read via directory traversal","details":"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.","aliases":["CVE-2023-38337"],"modified":"2024-02-16T08:14:13.686927Z","published":"2023-07-15T00:30:34Z","database_specific":{"cwe_ids":["CWE-22"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-07-17T10:44:29Z","nvd_published_at":"2023-07-14T22:15:09Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337"},{"type":"WEB","url":"https://github.com/rswag/rswag/issues/653"},{"type":"PACKAGE","url":"https://github.com/rswag/rswag"},{"type":"WEB","url":"https://github.com/rswag/rswag/compare/2.9.0...2.10.1"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rswag/CVE-2023-38337.yml"}],"affected":[{"package":{"name":"rswag","ecosystem":"RubyGems","purl":"pkg:gem/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-vc79-65pr-q82v/GHSA-vc79-65pr-q82v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}