CVE-2024-35219 json
OpenAPI Generator Online - Arbitrary File Read/Delete
published 2024-05-27 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1610 , GHSA-g3hr-p86p-593h
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- maven org.openapitools:openapi-generator-online 7.6.0
- OpenAPITools openapi-generator 7.6.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-35219 updated cvss 8.3
openapi-generator-online: Path traversal via outputFolder option
-
Red Hat OpenShift Serverless openapi-generator-online openapi-generator-online Red Hat Fuse 7 openapi-generator-online openapi-generator-online Red Hat streams for Apache Kafka openapi-generator-online openapi-generator-onlinenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
3.59% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template OpenAPI Generator <= 7.5.0 - Arbitrary File Read/Delete nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H |
| GitHub | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.openapitools:openapi-generator-online | <7.6.0 |
7.6.0 |
Affected products
- OpenAPITools openapi-generator
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/OpenAPITools/openapi-generator/pull/18652
web
-
github.com
/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d
web
-
github.com
/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-35219
advisory
-
github.com
/OpenAPITools/openapi-generator
package
Sources
- CVE List CVE-2024-35219
- GitHub Advisory GHSA-g3hr-p86p-593h
- NVD CVE-2024-35219
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.