{"answers":{"affected":"2 open source packages ship an affected version, including com.diffplug.gradle:goomph. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-26049 in the wild and no public exploit code.","fix":"Upgrade com.diffplug.gradle:goomph to 3.37.2 or later.","what":"CVE-2022-26049 is a medium-severity path traversal vulnerability in com.diffplug.gradle:goomph, published on 11 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-26049 and fix it if it is affected.\n\nWhat it is: CVE-2022-26049 is a medium-severity path traversal vulnerability in com.diffplug.gradle:goomph, published on 11 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-26049 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.diffplug.gradle:goomph (Maven): affected all versions; fixed in 3.37.2\n- com.diffplug.gradle:goomph (Maven): affected all versions; fixed in 3.37.2\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-2022-26049/ (Markdown: https://insights.sbomify.com/CVE-2022-26049/index.md)","id":"CVE-2022-26049","markdown":"https://insights.sbomify.com/CVE-2022-26049/index.md","name":"CVE-2022-26049","record":{"aliases":["GHSA-p2f7-9cv7-jjf6"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Gradle plugin","requires_auth":"low_privilege","summary":"A malicious zip file could write to arbitrary locations, potentially enabling remote code execution if a custom bootstrap zip was configured.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"goomph","vendor":"diffplug"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"This affects the package com.diffplug.gradle:goomph before 3.37.2. It allows a malicious zip file to potentially break out of the expected destination directory, writing contents into arbitrary locations on the file system. Overwriting certain files/directories could allow an attacker to achieve remote code execution on a target system by exploiting this vulnerability. **Note:** This could have allowed a malicious zip file to extract itself into an arbitrary directory. The only file that Goomph extracts is the p2 bootstrapper and eclipse metadata files hosted at eclipse.org, which are not malicious, so the only way this vulnerability could have affected you is if you had set a custom bootstrap zip, and that zip was malicious.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-17T11:41:37Z","kind":"github_poc","ref":"https://github.com/shoucheng3/diffplug__goomph_CVE-2022-26049_3-37-1","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Arbitrary File Write via Archive Extraction (Zip Slip)","id":"CVE-2022-26049","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":2,"n_references":3,"next":{"headline":"Missing authorization in Cybozu Garoon","id":"CVE-2022-26051"},"packages":[{"ecosystem":"Maven","fixed":["3.37.2"],"introduced":["0"],"last_affected":[],"package":"com.diffplug.gradle:goomph","purl":null,"source":"GHSA-p2f7-9cv7-jjf6"},{"ecosystem":"Maven","fixed":["3.37.2"],"introduced":["0"],"last_affected":[],"package":"com.diffplug.gradle:goomph","purl":"pkg:maven/com.diffplug.gradle/goomph","source":"GHSA-p2f7-9cv7-jjf6"}],"prev":{"headline":"Denial of service in Intel(R) PROSet/Wireless WiFi, Intel vPro(R) CSME WiFi and Killer(TM) WiFi products","id":"CVE-2022-26047"},"products":["com.diffplug.gradle:goomph"],"published":"2022-09-11","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"A malicious zip file could write to arbitrary locations, potentially enabling remote code execution if a custom bootstrap zip was configured.","url":"https://insights.sbomify.com/CVE-2022-26049/"}