LiveActive security incident?Get immediate response
CVE Record

CVE-2023-38337: rswag before 2.10.1 allows remote attackers to read arbitrary JSON and YAML files via directory traversal,...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2023-38337 affects rswag before 2.10.1. A public API documentation endpoint could expose JSON or YAML files outside the intended OpenAPI or Swagger specification. Business risk depends on whether rswag-api is internet-facing and whether sensitive configuration-like files are present.

Executive priority

Prioritize remediation for internet-facing API documentation portals. The issue can expose internal data, but urgency should be calibrated because no CVSS score or active exploitation evidence is provided in the bundle.

Technical view

The CVE describes directory traversal in rswag-api before 2.10.1. Instead of limiting responses to the project’s OpenAPI or Swagger specification, the component could expose other JSON or YAML files. The provided sources do not include CVSS, CWE, exploit details, or named affected deployment patterns.

Likely exposure

Rails applications using rswag-api before 2.10.1 are the likely exposure, especially where API documentation routes are reachable by unauthenticated users. The source bundle does not identify specific vendors, CPEs, or distributions.

Exploitation context

The source bundle says KEV is false and provides no cited evidence of active exploitation. Public references include a GitHub issue and a 2.9.0-to-2.10.1 comparison, indicating public disclosure and an available fixed version.

Researcher notes

Key gaps are missing CVSS, CWE, affected CPEs, and exploit-status evidence. Validate exposure by confirming rswag-api usage, route reachability, and version. Do not assume impact beyond JSON and YAML file disclosure based on the provided description.

Mitigation direction

  • Upgrade rswag to 2.10.1 or later.
  • Restrict access to rswag-api documentation routes until upgraded.
  • Review vendor project guidance before making configuration assumptions.
  • Remove sensitive JSON or YAML files from publicly reachable application paths.

Validation and detection

  • Inventory applications using rswag or rswag-api.
  • Check dependency lockfiles for rswag versions before 2.10.1.
  • Confirm API documentation routes require appropriate access control.
  • Verify upgraded endpoints only serve intended OpenAPI or Swagger files.
  • Review logs for unusual requests targeting documentation file paths.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2023-38337 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.