{"id":"CVE-2024-35219","published":"2024-05-27T16:11:22Z","modified":"2024-08-02T03:07:46Z","title":"OpenAPI Generator Online - Arbitrary File Read/Delete","vendor":"OpenAPITools","product":"openapi-generator","tier":"core","eol":null,"affectedVersions":[{"vendor":"OpenAPITools","product":"openapi-generator","versions":["< 7.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-28T16:27:13.509710Z","from":"CISA ADP","provenance":"source"},"description":{"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The openapi-generator product from OpenAPITools contains a path traversal flaw in its online generation service, where the user-supplied outputFolder option is not restricted to a safe directory. An attacker with network access and low privileges (no user interaction needed) can submit a request that reads and deletes files and folders in any writable location on the host, with no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:23Z"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03592,"percentile":0.89637,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-12-05","exploitedFirstSeen":"2024-12-05","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-35219","date":"2024-12-05"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenAPITools/openapi-generator/pull/18652","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.openapitools:openapi-generator-online","vulnerableRanges":["<7.6.0"],"patched":["7.6.0"],"from":["GHSA-g3hr-p86p-593h"],"provenance":"source"}],"advisories":[{"id":"GHSA-g3hr-p86p-593h","url":"https://github.com/advisories/GHSA-g3hr-p86p-593h","severity":"HIGH","ecosystem":"Maven","package":"org.openapitools:openapi-generator-online","vulnerableRanges":["<7.6.0"],"patched":["7.6.0"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1610","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1610","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2024-35219","name":"OpenAPI Generator <= 7.5.0 - Arbitrary File Read/Delete","severity":"high","path":"http/cves/2024/CVE-2024-35219.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-35219.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-05-27","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-35219","provenance":"source"},{"date":"2024-12-05","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-35219","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":63.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 719 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":17.93,"detail":"percentile 0.8964"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.81,"detail":"base score 8.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}