Skip to content
Heist/ feed
Back to feed
Medium

gradle — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-42445

Gradle is a build tool with a focus on build automation and support for multi-language development. In some cases, when Gradle parses XML files, resolving XML external entities is not disabled. Combined with an Out Of Band XXE attack (OOB-XXE), just parsing XML can lead to exfiltration of local text files to a remote server. Gradle parses XML files for several purposes. Most of the time, Gradle parses XML files it generated or were already present locally. Only Ivy XML descriptors and Maven POM files can be fetched from remote repositories and parsed by Gradle. In Gradle 7.6.3 and 8.4, resolving XML external entities has been disabled for all use cases to protect against this vulnerability. Gradle will now refuse to parse XML files that have XML external entities.

Products
gradle
Affected versions
2.10-1, 2.5-3, 2.7-1, 2.7-2, 2.7-3, 3.2.1-3build2, 3.2.1-4, 3.2.1-5, 3.4.1-4, 3.4.1-6, 3.4.1-7ubuntu1, 4.4.1-10, 4.4.1-13, 4.4.1-18, 4.4.1-20, 4.4.1-22, 4.4.1-22build1, 4.4.1-22ubuntu1, 4.4.1-23, 4.4.1-5ubuntu2~18.04, 4.4.1-5ubuntu2~18.04+esm1, 4.4.1-8, 4.4.1-9
Fixed versions
Not specified
CVEs
CVE-2023-42445
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:11 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-42445

core-osv · Original source

Published 6 Oct 2023, 14:15 UTC

Gradle is a build tool with a focus on build automation and support for multi-language development. In some cases, when Gradle parses XML files, resolving XML external entities is not disabled. Combined with an Out Of Band XXE attack (OOB-XXE), just parsing XML can lead to exfiltration of local text files to a remote server. Gradle parses XML files for several purposes. Most of the time, Gradle parses XML files it generated or were already present locally. Only Ivy XML descriptors and Maven POM files can be fetched from remote repositories and parsed by Gradle. In Gradle 7.6.3 and 8.4, resolving XML external entities has been disabled for all use cases to protect against this vulnerability. Gradle will now refuse to parse XML files that have XML external entities.

osv:UBUNTU-CVE-2023-42445

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

gradle

Fixed versions: Not specified

Complete source record
{
  "id": "31e16c11f3109d145fc31ead2875fb86c10ac326f1659e5621960b9268b85b2f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-42445",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-42445",
    "summary": "Gradle is a build tool with a focus on build automation and support for multi-language development. In some cases, when Gradle parses XML files, resolving XML external entities is not disabled. Combined with an Out Of Band XXE attack (OOB-XXE), just parsing XML can lead to exfiltration of local text files to a remote server. Gradle parses XML files for several purposes. Most of the time, Gradle parses XML files it generated or were already present locally. Only Ivy XML descriptors and Maven POM files can be fetched from remote repositories and parsed by Gradle. In Gradle 7.6.3 and 8.4, resolving XML external entities has been disabled for all use cases to protect against this vulnerability. Gradle will now refuse to parse XML files that have XML external entities.",
    "evidence": "osv:UBUNTU-CVE-2023-42445",
    "products": [
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.1-3build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2.1-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2.1-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.1-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.1-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.1-7ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.1-5ubuntu2~18.04",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.1-5ubuntu2~18.04+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-8",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.1-9",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.1-10",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-13",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-18",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.4.1-20",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-22",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-22ubuntu1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.4.1-23",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gradle",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.1-22",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.4.1-22build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.4.1-22ubuntu1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2023-42445",
      "aliases": [
        "UBUNTU-CVE-2023-42445"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.5-3",
            "2.7-1",
            "2.7-2",
            "2.7-3",
            "2.10-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "2.10-1"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "2.10-1"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "2.10-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "3.2.1-3build2",
            "3.2.1-4",
            "3.2.1-5",
            "3.4.1-4",
            "3.4.1-6",
            "3.4.1-7ubuntu1",
            "4.4.1-5ubuntu2~18.04",
            "4.4.1-5ubuntu2~18.04+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-5ubuntu2~18.04+esm1"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-5ubuntu2~18.04+esm1"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-5ubuntu2~18.04+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.4.1-8",
            "4.4.1-9",
            "4.4.1-10"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-10"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-10"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-10"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.4.1-13"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-13"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-13"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-13"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.4.1-18",
            "4.4.1-20"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-20"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-20"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-20"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.4.1-22"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-22"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-22"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-22"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.4.1-22ubuntu1",
            "4.4.1-23"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-23"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-23"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-23"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gradle",
            "purl": "pkg:deb/ubuntu/gradle?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.4.1-22",
            "4.4.1-22build1",
            "4.4.1-22ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-42445.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gradle",
                "binary_version": "4.4.1-22ubuntu1"
              },
              {
                "binary_name": "libgradle-core-java",
                "binary_version": "4.4.1-22ubuntu1"
              },
              {
                "binary_name": "libgradle-plugins-java",
                "binary_version": "4.4.1-22ubuntu1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:42.432944426Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-42445"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-42445",
        "https://github.com/gradle/gradle/security/advisories/GHSA-mrff-q8qj-xvg8",
        "https://github.com/gradle/gradle/releases/tag/v7.6.3",
        "https://github.com/gradle/gradle/releases/tag/v8.4.0",
        "https://www.cve.org/CVERecord?id=CVE-2023-42445"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-42445",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355999,
  "published_at": "2023-10-06T14:15:00+00:00"
}