GitHub Advisoryadvisory · RubyGems

GHSA-vc79-65pr-q82v rswag vulnerable to arbitrary JSON and YAML file read via directory traversal

HIGH Published 2023-07-15 Modified 2023-07-27 Official page ↗
Aliases
CVE-2023-38337
Ecosystem
RubyGems
Packages
rswag
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2023-07-17

Affected packages

• RubyGems rswag: < 2.10.1 → fixed in 2.10.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2023-38337 rswag before 2.10.1 allows remote attackers to read arbitrary JSON and YAML files via directory traversal, because rswag-api can expose a… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References