Vulnerabilities in pkg:maven/net.sourceforge.pmd/pmd-ui

PACKAGE
Advisory Identifier: GHSA-88m4-h43f-wx84
Advisory Summary

CVE-2025-23215 is a CRITICAL pmd designer's release key passphrase vulnerability (CWE-540: Inclusion of Sensitive Information in Source Code) affecting Pmd designer libraries in the Maven ecosystem. The issue involves pmd designer's release key passphrase (gpg) available on maven central in cleartext. Remediation is available by upgrading affected packages to version 7.10.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/net.sourceforge.pmd/pmd-ui

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/net.sourceforge.pmd/pmd-ui. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-88m4-h43f-wx84 CVE-2025-23215 CRITICAL PMD Designer's release key passphrase (GPG) available on Maven Central in cleartext

CVE-2025-23215 at a Glance

CVE Identifier CVE-2025-23215
GHSA Identifier GHSA-88m4-h43f-wx84
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-540: Inclusion of Sensitive Information in Source Code
Affected Product Pmd designer
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-23215

To remediate this vulnerability, upgrade all affected Pmd designer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

net.sourceforge.pmd:pmd-designer fixed: 7.10.0
<dependency>
    <groupId>net.sourceforge.pmd</groupId>
    <artifactId>pmd-designer</artifactId>
    <version>7.10.0</version>
</dependency>
net.sourceforge.pmd:pmd-ui fixed: Latest secure release
<dependency>
    <groupId>net.sourceforge.pmd</groupId>
    <artifactId>pmd-ui</artifactId>
    <version>Latest secure release</version>
</dependency>
net.sourceforge.pmd:pmd-core fixed: 7.10.0
<dependency>
    <groupId>net.sourceforge.pmd</groupId>
    <artifactId>pmd-core</artifactId>
    <version>7.10.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=net.sourceforge.pmd

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-23215, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=net.sourceforge.pmd

Analyze the terminal output to locate any version of Pmd designer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.10.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=net.sourceforge.pmd command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-540: Inclusion of Sensitive Information in Source Code, where source code on a web server or repository often contains sensitive information and should generally not be accessible to users. In Pmd designer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary While rebuilding [PMD Designer](https://github.com/pmd/pmd-designer) for Reproducible Builds and digging into issues, I found out that passphrase for `gpg.keyname=0xD0BF1D737C9A1C22` is included in jar published to Maven Central. ### Details See https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/net/sourceforge/pmd/pmd-designer/README.md I removed 2 lines from https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/net/sourceforge/pmd/pmd-designer/pmd-designer-7.0.0.diffoscope but real content is: ``` ├── net/sourceforge/pmd/util/fxdesigner/designer.properties │ @@ -1,14 +1,12 @@ │ #Properties │ checkstyle.plugin.version=3.3.1 │ checkstyle.version=10.14.0 │ -gpg.keyname=0xD0BF1D737C9A1C22 │ -gpg.passphrase=evicx0nuPfvSVhVyeXpw │ jar.plugin.version=3.3.0 │ -java.version=11.0.22 │ +java.version=11.0.25 │ javadoc.plugin.version=3.6.3 │ jflex-output=/home/runner/work/pmd-designer/pmd-designer/target/generated-sources/jflex │ junit5.version=5.8.2 │ kotest.version=5.5.5 │ kotlin.version=1.7.20 │ local.lib.repo=/home/runner/work/pmd-designer/pmd-designer/lib/mvn-repo │ openjfx.scope=provided ``` ### PoC ``` ./rebuild.sh content/net/sourceforge/pmd/pmd-designer/pmd-designer-7.0.0.buildspec ``` ### Impact After further analysis, the passphrase of the following two keys have been compromised: 1. `94A5 2756 9CAF 7A47 AFCA BDE4 86D3 7ECA 8C2E 4C5B`: PMD Designer (Release Signing Key) <releases@pmd-code.org> This key has been used since 2019 with the release of [net.sourceforge.pmd:pmd-ui:6.14.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-ui/6.14.0/). The following versions are signed with the same key: 6.16.0, 6.17.0, 6.19.0. 2. `EBB2 41A5 45CB 17C8 7FAC B2EB D0BF 1D73 7C9A 1C22`: PMD Release Signing Key <releases@pmd-code.org> This key has been used since 2020 with the release of [net.sourceforge.pmd:pmd-ui:6.21.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-ui/6.21.0/) and all the other modules of PMD such as [net.sourceforge.pmd:pmd-core:6.21.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-core/6.21.0/). This key has also been used for PMD 7, for the designer, e.g. [net.sourceforge.pmd:pmd-designer:7.0.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-designer/7.0.0/) and [net.sourceforge.pmd:pmd-core:7.0.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-core/7.0.0/). The versions between 6.21.0 and 7.9.0 are signed with this key. Additionally the key has been used to sign the last release of [PMD Eclipse Plugin 7.9.0.v20241227-1626-r](https://github.com/pmd/pmd-eclipse-plugin/releases/tag/7.9.0.v20241227-1626-r). The keys have been used exclusively for signing artifacts that we published to Maven Central under group id `net.sourceforge.pmd` and once for our pmd-eclipse-plugin. The private key itself is not known to have been compromised itself, but given its passphrase is, it must also be considered potentially compromised. As a mitigation, both compromised keys have been revoked so that no future use of the keys are possible. For future releases of PMD, PMD Designer and PMD Eclipse Plugin we use a new release signing key: `2EFA 55D0 785C 31F9 56F2 F87E A0B5 CA1A 4E08 6838` (PMD Release Signing Key <releases@pmd-code.org>). Note, that the published artifacts in Maven Central under the group id `net.sourceforge.pmd` are **not** compromised and the signatures are valid. No other past usages of the private key is known to the project and no future use is possible due to the revocation. If anybody finds a past abuse of the private key, please share with us. Note, the module `net.sourceforge.pmd:pmd-ui` has been renamed to `net.sourceforge.pmd:pmd-designer` since PMD 7, so there won't be a fixed version for `pmd-ui`. ### Fixes * Reworked build script in PMD Designer to not include all system properties * https://github.com/pmd/pmd-designer/commit/1548f5f27ba2981b890827fecbd0612fa70a0362 * https://github.com/pmd/pmd-designer/commit/e87a45312753ec46b3e5576c6f6ac1f7de2f5891 ### References * [GHSA-88m4-h43f-wx84](https://github.com/pmd/pmd/security/advisories/GHSA-88m4-h43f-wx84) * [CVE-2025-23215](https://www.cve.org/CVERecord?id=CVE-2025-23215) * [reproducible-central](https://github.com/jvm-repo-rebuild/reproducible-central?tab=readme-ov-file#reproducible-builds-for-maven-central-repository)

CVE-2025-23215 Affected Pmd designer Versions

3 component(s)
Fixed Versions:
7.10.0
Product / Package Ecosystem Affected Versions Fixed Version
net.sourceforge.pmd:pmd-designer
Maven
≥ 7.0.0
< 7.10.0
7.10.0
net.sourceforge.pmd:pmd-ui
Maven
≥ 6.14.0
≤ 6.19.0
net.sourceforge.pmd:pmd-core
Maven
≥ 6.21.0
< 7.10.0
7.10.0

References

Frequently Asked Questions

What is CVE-2025-23215?
CVE-2025-23215 is a security vulnerability in Pmd designer involving PMD Designer's release key passphrase (GPG) available on Maven Central in cleartext under CWE-540: Inclusion of Sensitive Information in Source Code.
Which Pmd designer versions are affected?
Affected versions include releases prior to 7.10.0 across affected packages: net.sourceforge.pmd:pmd-designer, net.sourceforge.pmd:pmd-ui, net.sourceforge.pmd:pmd-core.
What version fixes CVE-2025-23215?
Upgrading to 7.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pmd-designer affected?
Yes, net.sourceforge.pmd:pmd-designer is affected in releases prior to 7.10.0. Upgrade your dependency to 7.10.0 or later.
Is pmd-ui affected?
Yes, net.sourceforge.pmd:pmd-ui is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-23215?
CVE-2025-23215 is classified under CWE-540: Inclusion of Sensitive Information in Source Code (Source code on a web server or repository often contains sensitive information and should generally not be accessible to users.).
How can I check Maven dependencies for CVE-2025-23215?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=net.sourceforge.pmd'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-88m4-h43f-wx84",
  "modified" : "2025-04-04T21:10:06Z",
  "published" : "2025-01-31T17:34:09Z",
  "aliases" : [ "CVE-2025-23215" ],
  "summary" : "PMD Designer's release key passphrase (GPG) available on Maven Central in cleartext",
  "details" : "### Summary\nWhile rebuilding [PMD Designer](https://github.com/pmd/pmd-designer) for Reproducible Builds and digging into issues, I found out that passphrase for `gpg.keyname=0xD0BF1D737C9A1C22` is included in jar published to Maven Central.\n\n### Details\nSee https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/net/sourceforge/pmd/pmd-designer/README.md\n\nI removed 2 lines from https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/net/sourceforge/pmd/pmd-designer/pmd-designer-7.0.0.diffoscope but real content is:\n\n```\n├── net/sourceforge/pmd/util/fxdesigner/designer.properties\n│ @@ -1,14 +1,12 @@\n│  #Properties\n│  checkstyle.plugin.version=3.3.1\n│  checkstyle.version=10.14.0\n│ -gpg.keyname=0xD0BF1D737C9A1C22\n│ -gpg.passphrase=evicx0nuPfvSVhVyeXpw\n│  jar.plugin.version=3.3.0\n│ -java.version=11.0.22\n│ +java.version=11.0.25\n│  javadoc.plugin.version=3.6.3\n│  jflex-output=/home/runner/work/pmd-designer/pmd-designer/target/generated-sources/jflex\n│  junit5.version=5.8.2\n│  kotest.version=5.5.5\n│  kotlin.version=1.7.20\n│  local.lib.repo=/home/runner/work/pmd-designer/pmd-designer/lib/mvn-repo\n│  openjfx.scope=provided\n```\n\n### PoC\n```\n./rebuild.sh content/net/sourceforge/pmd/pmd-designer/pmd-designer-7.0.0.buildspec\n```\n\n### Impact\nAfter further analysis, the passphrase of the following two keys have been compromised:\n\n1. `94A5 2756 9CAF 7A47 AFCA  BDE4 86D3 7ECA 8C2E 4C5B`: PMD Designer (Release Signing Key) <releases@pmd-code.org>\n   This key has been used since 2019 with the release of [net.sourceforge.pmd:pmd-ui:6.14.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-ui/6.14.0/).\n   The following versions are signed with the same key: 6.16.0, 6.17.0, 6.19.0.\n2. `EBB2 41A5 45CB 17C8 7FAC  B2EB D0BF 1D73 7C9A 1C22`: PMD Release Signing Key <releases@pmd-code.org>\n   This key has been used since 2020 with the release of [net.sourceforge.pmd:pmd-ui:6.21.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-ui/6.21.0/)\n   and all the other modules of PMD such as [net.sourceforge.pmd:pmd-core:6.21.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-core/6.21.0/).  \n   This key has also been used for PMD 7, for the designer, e.g. [net.sourceforge.pmd:pmd-designer:7.0.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-designer/7.0.0/)\n   and [net.sourceforge.pmd:pmd-core:7.0.0](https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-core/7.0.0/).\n   The versions between 6.21.0 and 7.9.0 are signed with this key.  \n   Additionally the key has been used to sign the last release of [PMD Eclipse Plugin 7.9.0.v20241227-1626-r](https://github.com/pmd/pmd-eclipse-plugin/releases/tag/7.9.0.v20241227-1626-r).\n\nThe keys have been used exclusively for signing artifacts that we published to Maven Central under group id `net.sourceforge.pmd` and once for our pmd-eclipse-plugin. The private key itself is not known to have been compromised itself, but given its passphrase is, it must also be considered potentially compromised.\n\nAs a mitigation, both compromised keys have been revoked so that no future use of the keys are possible.\nFor future releases of PMD, PMD Designer and PMD Eclipse Plugin we use a new release signing key:\n`2EFA 55D0 785C 31F9 56F2  F87E A0B5 CA1A 4E08 6838` (PMD Release Signing Key <releases@pmd-code.org>).\n\nNote, that the published artifacts in Maven Central under the group id `net.sourceforge.pmd` are **not**\ncompromised and the signatures are valid. No other past usages of the private key is known to the project\nand no future use is possible due to the revocation. If anybody finds a past abuse of the private key,\nplease share with us.\n\nNote, the module `net.sourceforge.pmd:pmd-ui` has been renamed to `net.sourceforge.pmd:pmd-designer` since PMD 7, so there won't be a fixed version for `pmd-ui`.\n\n### Fixes\n* Reworked build script in PMD Designer to not include all system properties\n  * https://github.com/pmd/pmd-designer/commit/1548f5f27ba2981b890827fecbd0612fa70a0362\n  * https://github.com/pmd/pmd-designer/commit/e87a45312753ec46b3e5576c6f6ac1f7de2f5891\n\n### References\n\n* [GHSA-88m4-h43f-wx84](https://github.com/pmd/pmd/security/advisories/GHSA-88m4-h43f-wx84)\n* [CVE-2025-23215](https://www.cve.org/CVERecord?id=CVE-2025-23215)\n* [reproducible-central](https://github.com/jvm-repo-rebuild/reproducible-central?tab=readme-ov-file#reproducible-builds-for-maven-central-repository)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Clear"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.sourceforge.pmd:pmd-designer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.sourceforge.pmd:pmd-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.14.0"
      }, {
        "last_affected" : "6.19.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.sourceforge.pmd:pmd-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.21.0"
      }, {
        "fixed" : "7.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pmd/pmd/security/advisories/GHSA-88m4-h43f-wx84"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-23215"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pmd/pmd-designer/commit/1548f5f27ba2981b890827fecbd0612fa70a0362"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pmd/pmd-designer/commit/e87a45312753ec46b3e5576c6f6ac1f7de2f5891"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/net/sourceforge/pmd/pmd-designer/README.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/net/sourceforge/pmd/pmd-designer/pmd-designer-7.0.0.diffoscope"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jvm-repo-rebuild/reproducible-central?tab=readme-ov-file#reproducible-builds-for-maven-central-repository"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pmd/pmd"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-540" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-31T17:34:09Z",
    "nvd_published_at" : "2025-01-31T16:15:35Z"
  }
}