PT-2023-26371 · Rswag · Rswag

Carlobeltrame

·

Published

2023-07-14

·

Updated

2023-08-15

·

CVE-2023-38337

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions rswag versions prior to 2.10.1
Description The issue allows remote attackers to read arbitrary JSON and YAML files via directory traversal. This occurs because rswag-api can expose a file that is not the OpenAPI (or Swagger) specification file of a project.
Recommendations For versions prior to 2.10.1, update to version 2.10.1 or later to resolve the issue. As a temporary workaround, consider restricting access to the rswag-api to minimize the risk of exploitation.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2023-38337
GHSA-VC79-65PR-Q82V

Affected Products

Rswag