Skip to content
Heist/ feed
Back to feed
Medium

gradle — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-35946

Gradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their dependency coordinates. It is recommended that users upgrade to a patched version. If you are unable to upgrade to Gradle 7.6.2 or 8.2, `dependency verification` will make this vulnerability more difficult to exploit.

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-2023-35946
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 11:09 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-35946

core-osv · Original source

Published 30 Jun 2023, 21:15 UTC

Gradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their dependency coordinates. It is recommended that users upgrade to a patched version. If you are unable to upgrade to Gradle 7.6.2 or 8.2, `dependency verification` will make this vulnerability more difficult to exploit.

osv:DEBIAN-CVE-2023-35946

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

Complete source record
{
  "id": "f93f86bbf40f1694668f934c28019fa63e1329a458b3124659f54bdc80999a4c",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-35946",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-35946",
    "summary": "Gradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their dependency coordinates. It is recommended that users upgrade to a patched version. If you are unable to upgrade to Gradle 7.6.2 or 8.2, `dependency verification` will make this vulnerability more difficult to exploit.",
    "evidence": "osv:DEBIAN-CVE-2023-35946",
    "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-2023-35946",
      "aliases": [
        "DEBIAN-CVE-2023-35946"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/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-2023-35946.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-2023-35946.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-2023-35946.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-09T10:00:21.855995387Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-35946"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-35946"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-35946",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 111729,
  "published_at": "2023-06-30T21:15:09.07+00:00"
}