CVE-2024-35219
OpenAPI Generator Online - Arbitrary File Read/Delete
Record summary
CVE-2024-35219 has a selected CVSS score of 8.3 (high); EIP currently links 1 Nuclei template.
Description
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.
Exploitation context
Known exploitation
- VulnCheck KEV
- Listed · Dec 5, 2024 · VulnCheck
- Reported exploitation
- Observed · VulnCheck
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated May 28, 2024 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
OpenAPI GeneratorBrowse OpenAPITools / OpenAPI GeneratorDefault status: unknown | VulnCheck, CVE List | < 7.6.0 | affected |
| Before 7.6.0 | affected | ||
org.openapitools:openapi-generator-onlineBrowse Maven / org.openapitools:openapi-generator-online | GitHub Advisory | Before 7.6.0 · Fixed in 7.6.0 | affected |
Nuclei templates
1ProjectDiscoveryHIGHOpenAPI Generator <= 7.5.0 - Arbitrary File Read/DeleteCVSS 8.3
OpenAPI Generator versions 7.5.0 and below are prone to an Arbitrary File Read/Delete vulnerability. Attackers can exploit this vulnerability to read and delete files and folders from an arbitrary, writable directory.
Impact
Authenticated attackers can read and delete arbitrary files and folders from writable directories.
Remediation
Update OpenAPI Generator to a version later than 7.5.0.
Source: ProjectDiscovery