{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-29428.json"
      }
    ],
    "title": "gradle: local privilege escalation through system temporary directory",
    "tracking": {
      "current_release_date": "2026-11-07T13:35:37+00:00",
      "generator": {
        "date": "2026-11-07T13:35:37+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.5"
        }
      },
      "id": "CVE-2021-29428",
      "initial_release_date": "2021-04-09T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2021-04-09T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-10-08T22:20:21+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-11-07T13:35:37+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat build of Quarkus",
                "product": {
                  "name": "Red Hat build of Quarkus",
                  "product_id": "red_hat_build_of_quarkus",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:openshift_application_runtimes:1.0"
                  }
                }
              },
              {
                "category": "product_name",
                "name": "Red Hat build of Quarkus 2.7.5",
                "product": {
                  "name": "Red Hat build of Quarkus 2.7.5",
                  "product_id": "Red Hat build of Quarkus 2.7.5",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:quarkus:2.7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat build of Quarkus"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Fuse 7",
                "product": {
                  "name": "Red Hat Fuse 7",
                  "product_id": "red_hat_fuse_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:jboss_fuse:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Fuse 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Integration Camel K 1",
                "product": {
                  "name": "Red Hat Integration Camel K 1",
                  "product_id": "red_hat_integration_camel_k_1",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:camel_k:1"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Integration Camel K 1"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Integration Camel Quarkus 1",
                "product": {
                  "name": "Red Hat Integration Camel Quarkus 1",
                  "product_id": "red_hat_integration_camel_quarkus_1",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:camel_quarkus:2"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Integration Camel Quarkus 1"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat JBoss Enterprise Application Platform 7",
                "product": {
                  "name": "Red Hat JBoss Enterprise Application Platform 7",
                  "product_id": "red_hat_jboss_enterprise_application_platform_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:jboss_enterprise_application_platform:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat JBoss Enterprise Application Platform 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat JBoss Enterprise Application Platform Expansion Pack",
                "product": {
                  "name": "Red Hat JBoss Enterprise Application Platform Expansion Pack",
                  "product_id": "red_hat_jboss_enterprise_application_platform_expansion_pack",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:jbosseapxp"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat JBoss Enterprise Application Platform Expansion Pack"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "streams for Apache Kafka",
                "product": {
                  "name": "streams for Apache Kafka",
                  "product_id": "streams_for_apache_kafka",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:amq_streams:1"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "streams for Apache Kafka"
          },
          {
            "category": "product_version",
            "name": "gradle",
            "product": {
              "name": "gradle",
              "product_id": "gradle"
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of Red Hat build of Quarkus",
          "product_id": "red_hat_build_of_quarkus:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "red_hat_build_of_quarkus"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of Red Hat Fuse 7",
          "product_id": "red_hat_fuse_7:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "red_hat_fuse_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of Red Hat Integration Camel K 1",
          "product_id": "red_hat_integration_camel_k_1:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "red_hat_integration_camel_k_1"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of Red Hat Integration Camel Quarkus 1",
          "product_id": "red_hat_integration_camel_quarkus_1:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "red_hat_integration_camel_quarkus_1"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of Red Hat JBoss Enterprise Application Platform 7",
          "product_id": "red_hat_jboss_enterprise_application_platform_7:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "red_hat_jboss_enterprise_application_platform_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of Red Hat JBoss Enterprise Application Platform Expansion Pack",
          "product_id": "red_hat_jboss_enterprise_application_platform_expansion_pack:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "red_hat_jboss_enterprise_application_platform_expansion_pack"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gradle as a component of streams for Apache Kafka",
          "product_id": "streams_for_apache_kafka:gradle"
        },
        "product_reference": "gradle",
        "relates_to_product_reference": "streams_for_apache_kafka"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2021-29428",
      "cwe": {
        "id": "CWE-276",
        "name": "Incorrect Default Permissions"
      },
      "discovery_date": "2021-04-13T00:00:00+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_fuse_7:gradle",
            "red_hat_jboss_enterprise_application_platform_7:gradle",
            "red_hat_jboss_enterprise_application_platform_expansion_pack:gradle",
            "streams_for_apache_kafka:gradle"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1949643"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "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.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "gradle: local privilege escalation through system temporary directory",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "Red Hat CodeReady Studio 12 is not affected by this vulnerability because it does not ship the vulnerable code.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Red Hat build of Quarkus 2.7.5"
        ],
        "known_affected": [
          "red_hat_build_of_quarkus:gradle",
          "red_hat_integration_camel_k_1:gradle",
          "red_hat_integration_camel_quarkus_1:gradle"
        ],
        "known_not_affected": [
          "red_hat_fuse_7:gradle",
          "red_hat_jboss_enterprise_application_platform_7:gradle",
          "red_hat_jboss_enterprise_application_platform_expansion_pack:gradle",
          "streams_for_apache_kafka:gradle"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2021-29428"
        },
        {
          "category": "external",
          "summary": "RHBZ#1949643",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1949643"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2021-29428",
          "url": "https://www.cve.org/CVERecord?id=CVE-2021-29428"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2021-29428",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-29428"
        }
      ],
      "release_date": "2021-04-09T00:00:00+00:00",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2022-05-18T10:56:05+00:00",
          "details": "Before applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on.\n\nThe References section of this erratum contains a download link for the update. You must be logged in to download the update.",
          "product_ids": [
            "Red Hat build of Quarkus 2.7.5"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2022:4623"
        },
        {
          "category": "none_available",
          "details": "Fix deferred",
          "product_ids": [
            "red_hat_integration_camel_k_1:gradle"
          ]
        },
        {
          "category": "none_available",
          "details": "Affected",
          "product_ids": [
            "red_hat_build_of_quarkus:gradle",
            "red_hat_integration_camel_quarkus_1:gradle"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "Red Hat build of Quarkus 2.7.5",
            "red_hat_build_of_quarkus:gradle",
            "red_hat_fuse_7:gradle",
            "red_hat_integration_camel_k_1:gradle",
            "red_hat_integration_camel_quarkus_1:gradle",
            "red_hat_jboss_enterprise_application_platform_7:gradle",
            "red_hat_jboss_enterprise_application_platform_expansion_pack:gradle",
            "streams_for_apache_kafka:gradle"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "Red Hat build of Quarkus 2.7.5",
            "red_hat_build_of_quarkus:gradle",
            "red_hat_fuse_7:gradle",
            "red_hat_jboss_enterprise_application_platform_7:gradle",
            "red_hat_jboss_enterprise_application_platform_expansion_pack:gradle",
            "streams_for_apache_kafka:gradle"
          ]
        },
        {
          "category": "impact",
          "details": "Low",
          "product_ids": [
            "red_hat_integration_camel_k_1:gradle",
            "red_hat_integration_camel_quarkus_1:gradle"
          ]
        }
      ],
      "title": "gradle: local privilege escalation through system temporary directory"
    }
  ]
}