{"id":"CVE-2023-38337","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":["GHSA-vc79-65pr-q82v"],"modified":"2026-08-12T03:51:35.377154277Z","published":"2023-07-14T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38337.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://github.com/rswag/rswag/compare/2.9.0...2.10.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38337.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38337"},{"type":"REPORT","url":"https://github.com/rswag/rswag/issues/653"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rswag/rswag","events":[{"introduced":"0"},{"fixed":"5b34ec9bed830336b227983fa5bfd06f86266c6d"}],"database_specific":{"cpe":"cpe:2.3:a:rswag_project:rswag:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.10.1"}],"source":["DESCRIPTION","CPE_RANGE"]}}],"versions":["2.10.0","2.9.0","2.8.0","2.7.0","2.6.0","2.5.1","2.5.0","2.5.0.rc1","2.4.0","2.3.3","2.3.2","2.3.1","2.3.0","2.2.0","2.1.0","2.0.6","2.0.5","2.0.4","2.0.3","2.0.2","2.0.1","2.0.0","1.6.0","1.5.2","1.5.1","1.5.0","1.4.1","1.4.0","v1.2.1","v1.2.0","v1.1.0","v1.0.3","v1.0.2","v1.0.1","1.0.0-beta2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-38337.json"}}],"schema_version":"1.9.0"}