{"answers":{"affected":"1 open source package ship an affected version, including gradle. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-29428 in the wild and no public exploit code.","fix":"Upgrade gradle to 7.0.0 or later.","what":"CVE-2021-29428 is a high-severity vulnerability in gradle, published on 13 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-29428 and fix it if it is affected.\n\nWhat it is: CVE-2021-29428 is a high-severity vulnerability in gradle, published on 13 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-29428 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- gradle (Bitnami): affected all versions; fixed in 7.0.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-2021-29428/ (Markdown: https://insights.sbomify.com/CVE-2021-29428/index.md)","id":"CVE-2021-29428","markdown":"https://insights.sbomify.com/CVE-2021-29428/index.md","name":"CVE-2021-29428","record":{"aliases":["BIT-gradle-2021-29428","DEBIAN-CVE-2021-29428","GHSA-89qm-pxvm-p336","SUSE-SU-2023:1867-1","UBUNTU-CVE-2021-29428"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Gradle build tool","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges via race conditions in Gradle's temporary directory handling on Unix systems lacking sticky bits.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gradle","vendor":"gradle"},{"product":"quarkus","vendor":"quarkus"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"},{"id":"CWE-378","name":"Creation of Temporary File With Insecure Permissions"}],"description":"In Gradle before version 7.0, on Unix-like systems, the system temporary directory can be created with open permissions that allow multiple users to create and delete files within it. Gradle builds could be vulnerable to a local privilege escalation from an attacker quickly deleting and recreating files in the system temporary directory. This vulnerability impacted builds using precompiled script plugins written in Kotlin DSL and tests for Gradle plugins written using ProjectBuilder or TestKit. If you are on Windows or modern versions of macOS, you are not vulnerable. If you are on a Unix-like operating system with the \"sticky\" bit set on your system temporary directory, you are not vulnerable. The problem has been patched and released with Gradle 7.0. As a workaround, on Unix-like operating systems, ensure that the \"sticky\" bit is set. This only allows the original user (or root) to delete a file. If you are unable to change the permissions of the system temporary directory, you can move the Java temporary directory by setting the System Property `java.io.tmpdir`. The new path needs to limit permissions to the build user only. For additional details refer to the referenced GitHub Security Advisory.","ecosystems":["Bitnami","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Development Tools 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","openSUSE:Leap 15.4"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Local privilege escalation through system temporary directory","id":"CVE-2021-29428","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"race_condition","year":"2021"},"n_packages":13,"n_references":4,"next":{"headline":"Information disclosure through temporary directory permissions","id":"CVE-2021-29429"},"packages":[{"ecosystem":"Bitnami","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:bitnami/gradle","source":"BIT-gradle-2021-29428"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP3","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/suse/gradle\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:1867-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["4.4.1-150200.3.7.1"],"introduced":["0"],"last_affected":[],"package":"gradle","purl":"pkg:rpm/opensuse/gradle\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1867-1"}],"prev":{"headline":"Repository content filters do not work in Settings pluginManagement","id":"CVE-2021-29427"},"products":["gradle"],"published":"2021-04-13","related":[{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2019-15052","kev_date_added":null,"published":"2019-08-14"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2016-6199","kev_date_added":null,"published":"2017-02-07"},{"cvss_score":8.6,"headline":"Gradle fails to disable repositories which can expose builds to malicious artifacts","id":"CVE-2026-22816","kev_date_added":null,"published":"2026-01-16"},{"cvss_score":8.6,"headline":"Gradle's failure to disable repositories failing to answer can expose builds to malicious artifacts","id":"CVE-2026-22865","kev_date_added":null,"published":"2026-01-16"},{"cvss_score":8.1,"headline":"Deserialization in n/a","id":"CVE-2021-41588","kev_date_added":null,"published":"2021-09-24"},{"cvss_score":8,"headline":"Repository content filters do not work in Settings pluginManagement","id":"CVE-2021-29427","kev_date_added":null,"published":"2021-04-13"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["gradle"]},"summary":"Local attackers can escalate privileges via race conditions in Gradle's temporary directory handling on Unix systems lacking sticky bits.","url":"https://insights.sbomify.com/CVE-2021-29428/"}