{"answers":{"affected":"2 open source packages ship an affected version, including org.openapitools:openapi-generator-online.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35219 exists.","fix":"Upgrade org.openapitools:openapi-generator-online to 7.6.0 or later.","what":"CVE-2024-35219 is a high-severity path traversal vulnerability in OpenAPITools openapi-generator, published on 27 May 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-35219 and fix it if it is affected.\n\nWhat it is: CVE-2024-35219 is a high-severity path traversal vulnerability in OpenAPITools openapi-generator, published on 27 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35219 exists.\n\nAffected packages and fixed versions:\n- org.openapitools:openapi-generator-online (Maven): affected all versions; fixed in 7.6.0\n- org.openapitools:openapi-generator-online (Maven): affected all versions; fixed in 7.6.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35219/ (Markdown: https://insights.sbomify.com/CVE-2024-35219/index.md)","id":"CVE-2024-35219","markdown":"https://insights.sbomify.com/CVE-2024-35219/index.md","name":"CVE-2024-35219","record":{"aliases":["GHSA-g3hr-p86p-593h"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenAPI Generator Online","requires_auth":"low_privilege","summary":"Attackers can read and delete arbitrary files via path traversal in the output folder option of OpenAPI Generator Online.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-35219.yaml","stars":null,"title":"OpenAPI Generator \u003c= 7.5.0 - Arbitrary File Read/Delete"}],"tier":"weaponised"},"has_fix":true,"headline":"OpenAPI Generator Online - Arbitrary File Read/Delete","id":"CVE-2024-35219","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"@fastify/session reuses destroyed session cookie","id":"CVE-2024-35220"},"packages":[{"ecosystem":"Maven","fixed":["7.6.0"],"introduced":["0"],"last_affected":[],"package":"org.openapitools:openapi-generator-online","purl":null,"source":"GHSA-g3hr-p86p-593h"},{"ecosystem":"Maven","fixed":["7.6.0"],"introduced":["0"],"last_affected":[],"package":"org.openapitools:openapi-generator-online","purl":"pkg:maven/org.openapitools/openapi-generator-online","source":"GHSA-g3hr-p86p-593h"}],"prev":{"headline":"Umbraco CMS Vulnerable to Stored XSS on Content Page Through Markdown Editor Preview Pane","id":"CVE-2024-35218"},"products":["openapi-generator"],"published":"2024-05-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["OpenAPITools"]},"summary":"Attackers can read and delete arbitrary files via path traversal in the output folder option of OpenAPI Generator Online.","url":"https://insights.sbomify.com/CVE-2024-35219/"}