Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe69031
- https://github.com/OpenAPITools/openapi-generator/pull/18652
- https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-
- https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe69031
- https://github.com/OpenAPITools/openapi-generator/pull/18652
- https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-
FAQ
What is CVE-2024-35219?
CVE-2024-35219 is a vulnerability with a CVSS score of 8.3 (HIGH). 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 e...
How severe is CVE-2024-35219?
CVE-2024-35219 has been rated HIGH with a CVSS base score of 8.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-35219?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.