Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rswag
  4. ›
  5. CVE-2023-38337

CVE-2023-38337: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

July 14, 2023 (updated July 27, 2023)

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.

References

  • github.com/rswag/rswag/compare/2.9.0...2.10.1
  • github.com/rswag/rswag/issues/653
  • nvd.nist.gov/vuln/detail/CVE-2023-38337

Code Behaviors & Features

Detect and mitigate CVE-2023-38337 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.10.1

Fixed versions

  • 2.10.1

Solution

Upgrade to version 2.10.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

gem/rswag/CVE-2023-38337.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.