{"id":"CVE-2024-35219","aliases":["GHSA-g3hr-p86p-593h"],"summary":"OpenAPI Generator Online - Arbitrary File Read/Delete","published_at":"2024-05-27T00:00:00Z","modified_at":"2026-09-10T03:50:00.426665Z","products":[],"rating":{"severity":"high","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[{"source":"nuclei-templates","id":"http/cves/2024/CVE-2024-35219","name":"OpenAPI Generator <= 7.5.0 - Arbitrary File Read/Delete","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-35219.yaml","verified":false}],"epss":{"score":0.035920001566410065,"percentile":0.8967900276184082,"date":"2026-11-19T00:00:00Z"},"priority":9.8,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"OpenAPITools/openapi-generator","versions":["< 7.6.0"],"provider":"cvelistv5","source":"CVE-2024-35219","relation":"self"},{"ecosystem":"Maven","package":"org.openapitools:openapi-generator-online","purl":"pkg:maven/org.openapitools/openapi-generator-online","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.6.0"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.2.0","3.2.1","3.2.2","3.2.3","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","4.0.0","4.0.0-beta","4.0.0-beta2","4.0.0-beta3","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","4.1.2","4.1.3","4.2.0","4.2.1","4.2.2","4.2.3","4.3.0","4.3.1","5.0.0","5.0.0-beta","5.0.0-beta2","5.0.0-beta3","5.0.1","5.1.0","5.1.1","5.2.0","5.2.1","5.3.0","5.3.1","5.4.0","6.0.0","6.0.0-beta","6.0.1","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","6.5.0","6.6.0","7.0.0","7.0.0-beta","7.0.1","7.1.0","7.2.0","7.3.0","7.4.0","7.5.0"],"fixed":["7.6.0"],"provider":"osv","source":"GHSA-g3hr-p86p-593h","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openapi-generator-online"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-35219"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["openapi-generator-online"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-35219"},{"vendor":"Red Hat","product":"streams for Apache Kafka","cpe":"cpe:/a:redhat:amq_streams:1","status":"not_affected","packages":["openapi-generator-online"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-35219"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2024-35219","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-35219","license":"CC-BY-4.0","published_at":"2024-05-27T16:11:22.875Z","modified_at":"2024-08-02T03:07:46.738Z","summary":"OpenAPI Generator Online - Arbitrary File Read/Delete","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","source":"CVE-2024-35219"}],"affected":[{"ecosystem":"CVE","package":"OpenAPITools/openapi-generator","versions":["< 7.6.0"],"provider":"cvelistv5","source":"CVE-2024-35219","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h"},{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/pull/18652"},{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d"}]},{"provider":"osv","source_id":"GHSA-g3hr-p86p-593h","relation":"self","url":"https://osv.dev/vulnerability/GHSA-g3hr-p86p-593h","license":"CC-BY-4.0","published_at":"2024-05-28T15:47:57Z","modified_at":"2026-09-10T03:50:00.426665Z","summary":"OpenAPI Generator Online - Arbitrary File Read/Delete","details":"### 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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","source":"GHSA-g3hr-p86p-593h"}],"affected":[{"ecosystem":"Maven","package":"org.openapitools:openapi-generator-online","purl":"pkg:maven/org.openapitools/openapi-generator-online","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.6.0"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.2.0","3.2.1","3.2.2","3.2.3","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","4.0.0","4.0.0-beta","4.0.0-beta2","4.0.0-beta3","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","4.1.2","4.1.3","4.2.0","4.2.1","4.2.2","4.2.3","4.3.0","4.3.1","5.0.0","5.0.0-beta","5.0.0-beta2","5.0.0-beta3","5.0.1","5.1.0","5.1.1","5.2.0","5.2.1","5.3.0","5.3.1","5.4.0","6.0.0","6.0.0-beta","6.0.1","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","6.5.0","6.6.0","7.0.0","7.0.0-beta","7.0.1","7.1.0","7.2.0","7.3.0","7.4.0","7.5.0"],"fixed":["7.6.0"],"provider":"osv","source":"GHSA-g3hr-p86p-593h","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35219"},{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/pull/18652"},{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d"},{"type":"PACKAGE","url":"https://github.com/OpenAPITools/openapi-generator"}]},{"provider":"redhat-vex","source_id":"CVE-2024-35219","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-35219","license":"CC-BY-4.0","published_at":"2024-05-27T00:00:00Z","modified_at":"2024-06-03T12:01:45Z","summary":"openapi-generator-online: Path traversal via outputFolder option","details":"A flaw was found in OpenAPI generator, where it allows the generation of API client libraries, for example, SDK generation, server stubs, documentation, and configuration, automatically given an OpenAPI Spec. This flaw allows an attacker to cause 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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","source":"CVE-2024-35219"},{"type":"Red Hat","score":"Moderate","source":"CVE-2024-35219"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openapi-generator-online"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-35219"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["openapi-generator-online"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-35219"},{"vendor":"Red Hat","product":"streams for Apache Kafka","cpe":"cpe:/a:redhat:amq_streams:1","status":"not_affected","packages":["openapi-generator-online"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-35219"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-35219.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-35219"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2283564"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-35219"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35219"}]}],"references":[{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h"},{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/pull/18652"},{"type":"WEB","url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35219"},{"type":"PACKAGE","url":"https://github.com/OpenAPITools/openapi-generator"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-35219.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-35219"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2283564"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-35219"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2024-35219","url":"https://www.cve.org/CVERecord?id=CVE-2024-35219","license":"CC-BY-4.0","modified_at":"2024-08-02T03:07:46.738Z","relation":"self"},{"provider":"osv","source_id":"GHSA-g3hr-p86p-593h","url":"https://osv.dev/vulnerability/GHSA-g3hr-p86p-593h","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:00.426665Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-35219","url":"https://access.redhat.com/security/cve/CVE-2024-35219","license":"CC-BY-4.0","modified_at":"2024-06-03T12:01:45Z","relation":"self"}]}
