Skip to content

New data source: Gradle Build Tool advisories (Maven, org.gradle:gradle-core) #6456

Backlog

Description

@ljacomet

New data source: Gradle Build Tool

Organization: Gradle, the maintainers of Gradle Build Tool (gradle/gradle)
What it is: OSV records for the security advisories we publish for Gradle itself, under the Maven coordinates Gradle is published with. We are the upstream maintainers of the affected package.
Repository: https://github.com/gradle/advisory-database

Why

We publish our advisories as GitHub repository advisories on gradle/gradle: 28 so far, 10 of them awaiting a CVE. Most are not reviewed records in the GitHub Advisory Database, so OSV.dev has little Maven data for Gradle:

  • Of our 29 records, 4 have a GHSA counterpart in OSV.dev today. The other 25 do not, including all 10 without a CVE.
  • POST /v1/query for Maven / org.gradle:gradle-core at version 8.3 returns two vulnerabilities. Our records list 14 for that version, including CVE-2023-42445 and CVE-2023-44387.
  • The converted CVE-* records carry GIT ranges only.

Scanners can identify an installed Gradle as pkg:maven/org.gradle/gradle-core:

  • org.gradle:gradle-core is on Maven Central for every public Gradle release, byte-identical to the jar in the distribution.
  • Since Gradle 9.8.0 the jar embeds META-INF/maven/org.gradle/gradle-core/pom.properties.
  • gradle/actions/dependency-submission reports the Gradle version running a build as org.gradle:gradle-core:<version>.

What is missing is complete vulnerability data under that package, from its maintainers.

Source summary

Field Value
ID prefix GRADLE-, to be reserved in ossf/osv-schema (pull request to follow)
Ecosystem Maven (existing)
Package org.gradle:gradle-core
Method Public Git repository (type 0)
Repository https://github.com/gradle/advisory-database
Records path advisories/<year>/<id>.json
License Apache 2.0
Schema version 1.9.2
Records 29, from 2019 to date

Each record:

  • aliases the CVE, where there is one, and the GHSA ID of the repository advisory;
  • has one ECOSYSTEM range per affected release line, and no GIT range;
  • lists only versions that exist on Maven Central;
  • is validated on every change against the JSON schema and with osv-linter.

Proposed source.yaml entry

- name: 'gradle'
  type: 0
  repo_url: 'https://github.com/gradle/advisory-database.git'
  db_prefix: ['GRADLE-']
  accepted_ecosystems: ['Maven']
  directory_path: 'advisories'
  extension: '.json'
  ignore_git: True
  strict_validation: True
  human_link: 'https://github.com/gradle/advisory-database/blob/main/advisories/{{ .ID | field "-" 1 }}/{{ .ID }}.json'
  link: 'https://github.com/gradle/advisory-database/blob/main/'

Sample record

GRADLE-2023-0004, for CVE-2023-44387, with details shortened here:

{
  "schema_version": "1.9.2",
  "id": "GRADLE-2023-0004",
  "published": "2023-10-04T21:58:52Z",
  "modified": "2026-11-20T09:19:49Z",
  "aliases": ["CVE-2023-44387", "GHSA-43r3-pqhv-f7h9"],
  "summary": "Incorrect permission assignment for symlinked files used in copy or archiving operations",
  "details": "...",
  "severity": [
    { "type": "CVSS_V3", "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N" }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Maven",
        "name": "org.gradle:gradle-core",
        "purl": "pkg:maven/org.gradle/gradle-core"
      },
      "ranges": [
        { "type": "ECOSYSTEM", "events": [{ "introduced": "0" }, { "fixed": "7.6.3" }] },
        { "type": "ECOSYSTEM", "events": [{ "introduced": "8.0" }, { "fixed": "8.4" }] }
      ]
    }
  ],
  "references": [
    { "type": "ADVISORY", "url": "https://github.com/gradle/gradle/security/advisories/GHSA-43r3-pqhv-f7h9" },
    { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-44387" }
  ],
  "credits": [
    { "name": "MartinHolland", "contact": ["https://github.com/MartinHolland"], "type": "FINDER" }
  ],
  "database_specific": { "cwe_ids": ["CWE-732"], "severity": "LOW" }
}

Questions

  1. Is an upstream feed for a package in the Maven ecosystem fine alongside GHSA? Drupal publishes drupal/core records under Packagist the same way.
  2. We put the GHSA ID of each repository advisory in aliases. Four of them are reviewed records in the GitHub Advisory Database today, and more may follow. Is that the right field, so that OSV.dev groups our record with the GHSA one when both exist?

Checklist status

Activity

  1. added
    datasource
    on Nov 27, 2026
  2. ljacomet commented on Nov 27, 2026

    @ljacomet
    ContributorAuthor
  3. jess-lowe commented on Nov 29, 2026

    @jess-lowe
    Contributor

    Thanks @ljacomet! ossf/osv-schema#680 is merged now. We'll follow this up with a schema release shortly.

    On your two questions:

    1. Publishing under Maven alongside GHSA is totally fine here since you're the upstream maintainers and all versions in your ranges exist on Maven Central (similar to drupal in Packagist).
    2. Yes, listing the GHSA-* ID (and CVE-* when assigned) in aliases is the right approach. Both IDs describe the same underlying vulnerability, and OSV.dev computes transitive alias groups from aliases so GRADLE-*, GHSA-*, and CVE-* records will link together automatically.

    Since Maven is already supported, you can skip the PURL/ecosystem step and open a PR adding gradle to source_test.yaml whenever you're ready (just include the usual defaults from the other git entries like versions_from_repo: False, detect_cherrypicks: False, ignore_patterns: [], and editable: False). Also, human_link is optional if you don't have a separate rendered advisory webpage per GRADLE- ID, since link already points to the JSON file on GitHub.

    Once that imports cleanly on test, we can follow up with source.yaml and the docs!

  4. ljacomet commented on Nov 30, 2026

    @ljacomet
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    datasource

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions