CVE-2024-35219
OpenAPI Generator allows generation of API client libraries (SDK …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d
- github.com/OpenAPITools/openapi-generator/pull/18652
- github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h
- nvd.nist.gov/vuln/detail/CVE-2024-35219
- github.com/advisories/GHSA-g3hr-p86p-593h
- nvd.nist.gov/vuln/detail/CVE-2024-35219
- cve.org/CVERecord?id=CVE-2024-35219
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.