Vulnerability Details : 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 file that is not the OpenAPI (or Swagger) specification file of a project.
Vulnerability category: Directory traversal
Products affected by CVE-2023-38337
- cpe:2.3:a:rswag_project:rswag:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-38337
0.19%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 41 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-38337
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2023-38337
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2023-38337
-
https://github.com/rswag/rswag/compare/2.9.0...2.10.1
Comparing 2.9.0...2.10.1 · rswag/rswag · GitHubPatch
-
https://github.com/rswag/rswag/issues/653
[SECURITY] Path traversal exposing arbitrary yml and json files in the application · Issue #653 · rswag/rswag · GitHubIssue Tracking;Patch
Jump to