{"id":"CVE-2024-35219","aliases":["CVE-2024-35219","GHSA-g3hr-p86p-593h"],"related":[],"kind":"vulnerability","state":"published","title":"OpenAPI Generator Online - Arbitrary File Read/Delete","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAttackers 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.\n\n### Patches\nThe 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.\n\n### Workarounds\nNo workaround available.\n\n### References\nNo other reference available.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenAPI Generator permite la generación de librerías de cliente API (generación de SDK), códigos auxiliares de servidor, documentación y configuración automáticamente dada una especificación OpenAPI. Antes de la versión 7.6.0, los atacantes podían aprovechar una vulnerabilidad de path traversal para leer y eliminar archivos y carpetas de un directorio grabable arbitrario, ya que cualquiera podía configurar la carpeta de salida al enviar la solicitud a través de la opción `outputFolder`. El problema se solucionó en la versión 7.6.0 eliminando el uso de la opción `outputFolder`. No hay workarounds disponibles.","source":"nvd"}],"published":"2024-05-27T16:11:22.875Z","modified":"2026-09-10T03:50:00.426Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","score":8.3,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 7.6.0","status":"affected"}],"vendor":"OpenAPITools","product":"openapi-generator","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"7.6.0","status":"affected"}],"vendor":"openapitools","product":"openapi-generator","cpe":"cpe:2.3:a:openapitools:openapi-generator:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.6.0"}],"ecosystem":"Maven","package":"org.openapitools:openapi-generator-online","purl":"pkg:maven/org.openapitools/openapi-generator-online","source":"ghsa"}],"references":[{"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenAPITools/openapi-generator/pull/18652","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35219","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenAPITools/openapi-generator","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-05-28T16:27:13.509Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35219","url":"https://www.cve.org/CVERecord?id=CVE-2024-35219","licence":"CVE Terms of Use","modified":"2024-08-02T03:07:46.738Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g3hr-p86p-593h","url":"https://github.com/advisories/GHSA-g3hr-p86p-593h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.426Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35219","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35219","licence":"Public domain","modified":"2026-06-17T07:34:34.040Z"}],"updatedAt":"2026-11-25T22:58:40.945Z","epss":{"score":0.03592,"percentile":0.89734,"date":"2026-12-01T12:00:22.000Z"}}