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)

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.036 (89.1th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 89th percentile — 89.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-35219: held from 0.036 to 0.036.

EPSS over last 30 days · oldest: 0.036 · newest: 0.036 · change: 0.000

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.