Unrated
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-38337
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 03:35 UTC · Revision 1
Source evidence
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.
osv:CVE-2023-38337
Complete source record
{
"id": "6ff19392937a15ee0b9f63492145ec7b91dfc5ebbaf1fd43dc29e7ae04210d5c",
"url": "https://osv.dev/vulnerability/CVE-2023-38337",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2023-38337",
"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.",
"evidence": "osv:CVE-2023-38337",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2023-38337",
"aliases": [
"CVE-2023-38337",
"GHSA-vc79-65pr-q82v"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rswag/rswag",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5b34ec9bed830336b227983fa5bfd06f86266c6d"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.10.1"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:rswag_project:rswag:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.10.1"
}
],
"source": "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"
}
}
],
"modified": "2026-10-28T02:30:42.456278709Z",
"provider": "osv",
"references": [
"https://github.com/rswag/rswag/compare/2.9.0...2.10.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38337.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-38337",
"https://github.com/rswag/rswag/issues/653"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38337.json"
}
},
"related_cves": [
{
"value": "CVE-2023-38337",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 509888,
"published_at": "2023-07-14T00:00:00+00:00"
}