Skip to content
Heist/ feed
Back to feed
Medium

gradle — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-29429

In Gradle before version 7.0, files created with open permissions in the system temporary directory can allow an attacker to access information downloaded by Gradle. Some builds could be vulnerable to a local information disclosure. Remote files accessed through TextResourceFactory are downloaded into the system temporary directory first. Sensitive information contained in these files can be exposed to other local users on the same system. If you do not use the `TextResourceFactory` API, you are not vulnerable. As of Gradle 7.0, uses of the system temporary directory have been moved to the Gradle User Home directory. By default, this directory is restricted to the user running the build. As a workaround, set a more restrictive umask that removes read access to other users. When files are created in the system temporary directory, they will not be accessible to other users. If you are unable to change your system's umask, 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.

Products
gradle
Affected versions
4.4.1-18, 4.4.1-19, 4.4.1-20, 4.4.1-21, 4.4.1-22, 4.4.1-23, 4.5.1-1, 4.6-1, 4.6-2, 4.6-3
Fixed versions
Not specified
CVEs
CVE-2021-29429
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 11:09 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-29429

core-osv · Original source

Published 12 Apr 2021, 22:15 UTC

In Gradle before version 7.0, files created with open permissions in the system temporary directory can allow an attacker to access information downloaded by Gradle. Some builds could be vulnerable to a local information disclosure. Remote files accessed through TextResourceFactory are downloaded into the system temporary directory first. Sensitive information contained in these files can be exposed to other local users on the same system. If you do not use the `TextResourceFactory` API, you are not vulnerable. As of Gradle 7.0, uses of the system temporary directory have been moved to the Gradle User Home directory. By default, this directory is restricted to the user running the build. As a workaround, set a more restrictive umask that removes read access to other users. When files are created in the system temporary directory, they will not be accessible to other users. If you are unable to change your system's umask, 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.

osv:DEBIAN-CVE-2021-29429

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

Complete source record
{
  "id": "8daf81d17fdc9a6213a3e186186673a6eff04e3157eef21a1a5d6cbe295d2b97",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-29429",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-29429",
    "summary": "In Gradle before version 7.0, files created with open permissions in the system temporary directory can allow an attacker to access information downloaded by Gradle. Some builds could be vulnerable to a local information disclosure. Remote files accessed through TextResourceFactory are downloaded into the system temporary directory first. Sensitive information contained in these files can be exposed to other local users on the same system. If you do not use the `TextResourceFactory` API, you are not vulnerable. As of Gradle 7.0, uses of the system temporary directory have been moved to the Gradle User Home directory. By default, this directory is restricted to the user running the build. As a workaround, set a more restrictive umask that removes read access to other users. When files are created in the system temporary directory, they will not be accessible to other users. If you are unable to change your system's umask, 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.",
    "evidence": "osv:DEBIAN-CVE-2021-29429",
    "products": [
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-18",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.4.1-19",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.4.1-20",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.4.1-21",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.4.1-22",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.4.1-23",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.5.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.6-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.6-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.6-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-22",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.1-23",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.5.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.6-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.6-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-22",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.1-23",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.5.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.6-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.6-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.6-3",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-29429",
      "aliases": [
        "DEBIAN-CVE-2021-29429"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/debian/gradle?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "4.4.1-18",
            "4.4.1-19",
            "4.4.1-20",
            "4.4.1-21",
            "4.4.1-22",
            "4.4.1-23",
            "4.5.1-1",
            "4.6-1",
            "4.6-2",
            "4.6-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-29429.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/debian/gradle?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "4.4.1-22",
            "4.4.1-23",
            "4.5.1-1",
            "4.6-1",
            "4.6-2",
            "4.6-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-29429.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/debian/gradle?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "4.4.1-22",
            "4.4.1-23",
            "4.5.1-1",
            "4.6-1",
            "4.6-2",
            "4.6-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-29429.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-09T10:01:05.829665671Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-29429"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-29429"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-29429",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 111742,
  "published_at": "2021-04-12T22:15:13.32+00:00"
}