CVE-2024-35219
highpriority · track · 1EPSS 0.036 · 89 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
- Maven org.openapitools:openapi-generator-online< 7.6.0osvUSpkg:maven/org.openapitools/openapi-generator-online
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-g3hr-p86p-593hOpenAPI Generator Online - Arbitrary File Read/Delete2024-05-28ghsa · osvUS
### Impact Attackers can exploit the 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. ### Patches The issue was fixed via https://github.com/OpenAPITools/openapi-generator/pull/18652 (included in v7.6.0 release) by removing the usage of the `outputFolder` option. ### Workarounds No workaround available. ### References No other reference available.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2024-35219cnnvd
- https://cxsecurity.com/cveshow/CVE-2024-35219/cnnvd
- https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800dcnnvd
- https://github.com/OpenAPITools/openapi-generator/pull/18652cnnvd
- https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.6.0Patchcnnvd
- https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593hcnnvd
- https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800denisa_euvd
- https://github.com/OpenAPITools/openapi-generator/pull/18652enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan