Path Traversal in Openapitools Openapi-Generator

CVE-2024-35219

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec. Prior to version 7.6.0, attackers can exploit a path traversal vulnerability to read and delete files and folders from an arbitrary, writable directory as anyone can set the output folder when submitting the request via the `outputFolder` option. The issue was fixed in version 7.6.0 by removing the usage of the `outputFolder` option. No known workarounds are available.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.036 (88.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-35219?
CVE-2024-35219 is a high-severity vulnerability in Openapitools Openapi-Generator, classified under Path Traversal. CVSS score: 8.3/10. Published 2024-05-27.
How severe is CVE-2024-35219?
High severity. CVSS v3 base score is 8.3 out of 10.
Is CVE-2024-35219 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.