{"id":"CVE-2024-35219","state":"PUBLISHED","title":"OpenAPI Generator Online - Arbitrary File Read/Delete","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.","publishedAt":"2024-05-27T16:11:22.875Z","updatedAt":"2024-08-02T03:07:46.738Z","severity":{"score":8.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["OpenAPITools openapi-generator"],"affected":[{"vendor":"OpenAPITools","product":"openapi-generator","versions":[{"version":"< 7.6.0","status":"affected"}]}],"references":["https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h","https://github.com/OpenAPITools/openapi-generator/pull/18652","https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35219.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-35219","state":"PUBLISHED","datePublished":"2024-05-27T16:11:22.875Z","dateUpdated":"2024-08-02T03:07:46.738Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-05-14T15:39:41.783Z"},"containers":{"cna":{"title":"OpenAPI Generator Online - Arbitrary File Read/Delete","descriptions":[{"lang":"en","value":"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":[{"vendor":"OpenAPITools","product":"openapi-generator","versions":[{"version":"< 7.6.0","status":"affected"}]}],"references":[{"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h","name":"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","name":"https://github.com/OpenAPITools/openapi-generator/pull/18652","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d","name":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-05-27T16:11:22.875Z"},"source":{"advisory":"GHSA-g3hr-p86p-593h","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"openapitools","product":"openapi-generator","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"7.6.0","versionType":"custom"}],"cpes":["cpe:2.3:a:openapitools:openapi-generator:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-05-28T16:27:13.509710Z","id":"CVE-2024-35219","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-24T17:47:32.952Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h","name":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/OpenAPITools/openapi-generator/pull/18652","name":"https://github.com/OpenAPITools/openapi-generator/pull/18652","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d","name":"https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:07:46.738Z"}}]}}}