Vulnerabilities in pkg:maven/io.github.ascopes/protobuf-maven-plugin

PACKAGE
Advisory Summary

GHSA-j2pc-v64r-mv4f is a LOW protobuf maven plugin protocdigest is vulnerability (CWE-693: Protection Mechanism Failure) affecting Protobuf maven plugin libraries in the Maven ecosystem. The issue involves protobuf maven plugin protocdigest is ignored when using protoc from path. Remediation is available by upgrading affected packages to version 4.0.2, 3.10.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.github.ascopes/protobuf-maven-plugin

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.github.ascopes/protobuf-maven-plugin. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j2pc-v64r-mv4f - LOW Protobuf Maven Plugin protocDigest is ignored when using protoc from PATH

GHSA-j2pc-v64r-mv4f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j2pc-v64r-mv4f
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product Protobuf maven plugin
Package Ecosystem Maven
Published Date
Last Updated

How to Fix GHSA-j2pc-v64r-mv4f

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

io.github.ascopes:protobuf-maven-plugin fixed: 4.0.2
<dependency>
    <groupId>io.github.ascopes</groupId>
    <artifactId>protobuf-maven-plugin</artifactId>
    <version>4.0.2</version>
</dependency>
io.github.ascopes:protobuf-maven-plugin fixed: 3.10.2
<dependency>
    <groupId>io.github.ascopes</groupId>
    <artifactId>protobuf-maven-plugin</artifactId>
    <version>3.10.2</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=io.github.ascopes

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-j2pc-v64r-mv4f, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.github.ascopes

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

Note: The mvn dependency:tree -Dincludes=io.github.ascopes 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-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In Protobuf maven plugin, 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 The expected `protocDigest` is ignored when protoc is taken from the `PATH`. ### Details The documentation for the `protocDigest` parameter says: > ... Users may wish to specify this if using a `PATH`-based binary ... However, when specifying `<protoc>PATH</protoc>` the `protocDigest` is not actually checked because the code returns here already https://github.com/ascopes/protobuf-maven-plugin/blob/59097aae8062c461129a13dcda2f4116b90a8765/protobuf-maven-plugin/src/main/java/io/github/ascopes/protobufmavenplugin/protoc/ProtocResolver.java#L91-L93 before the digest check: https://github.com/ascopes/protobuf-maven-plugin/blob/59097aae8062c461129a13dcda2f4116b90a8765/protobuf-maven-plugin/src/main/java/io/github/ascopes/protobufmavenplugin/protoc/ProtocResolver.java#L106 ### PoC Specify: ```xml <protoc>PATH</protoc> <protocDigest>sha256:0000000000000000000000000000000000000000000000000000000000000000</protocDigest> ``` And notice how the `protoc` on the `PATH` is not rejected, despite a digest mismatch. ### Impact Users who have an untrusted `protoc` executable on their `PATH` and rely `<protocDigest>` as protection are affected.

GHSA-j2pc-v64r-mv4f Affected Protobuf maven plugin Versions

2 component(s)
Fixed Versions:
4.0.23.10.2
Product / Package Ecosystem Affected Versions Fixed Version
io.github.ascopes:protobuf-maven-plugin
Maven
≥ 4.0.0
< 4.0.2
4.0.2
io.github.ascopes:protobuf-maven-plugin
Maven
< 3.10.2
3.10.2

References

Frequently Asked Questions

What is GHSA-j2pc-v64r-mv4f?
GHSA-j2pc-v64r-mv4f is a security vulnerability in Protobuf maven plugin involving Protobuf Maven Plugin protocDigest is ignored when using protoc from PATH under CWE-693: Protection Mechanism Failure.
Which Protobuf maven plugin versions are affected?
Affected versions include releases prior to 4.0.2, 3.10.2 across affected packages: io.github.ascopes:protobuf-maven-plugin.
What version fixes GHSA-j2pc-v64r-mv4f?
Upgrading to 4.0.2, 3.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is protobuf-maven-plugin affected?
Yes, io.github.ascopes:protobuf-maven-plugin is affected in releases prior to 4.0.2, 3.10.2. Upgrade your dependency to 4.0.2, 3.10.2 or later.
What CWE is associated with GHSA-j2pc-v64r-mv4f?
GHSA-j2pc-v64r-mv4f is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check Maven dependencies for GHSA-j2pc-v64r-mv4f?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.github.ascopes'. 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-j2pc-v64r-mv4f",
  "modified" : "2025-11-15T03:16:13Z",
  "published" : "2025-11-04T15:48:09Z",
  "aliases" : [ ],
  "summary" : "Protobuf Maven Plugin protocDigest is ignored when using protoc from PATH",
  "details" : "### Summary\nThe expected `protocDigest` is ignored when protoc is taken from the `PATH`.\n\n### Details\nThe documentation for the `protocDigest` parameter says:\n> ... Users may wish to specify this if using a `PATH`-based binary ...\n\nHowever, when specifying `<protoc>PATH</protoc>` the `protocDigest` is not actually checked because the code returns here already\nhttps://github.com/ascopes/protobuf-maven-plugin/blob/59097aae8062c461129a13dcda2f4116b90a8765/protobuf-maven-plugin/src/main/java/io/github/ascopes/protobufmavenplugin/protoc/ProtocResolver.java#L91-L93\n\nbefore the digest check:\nhttps://github.com/ascopes/protobuf-maven-plugin/blob/59097aae8062c461129a13dcda2f4116b90a8765/protobuf-maven-plugin/src/main/java/io/github/ascopes/protobufmavenplugin/protoc/ProtocResolver.java#L106\n\n### PoC\nSpecify:\n```xml\n<protoc>PATH</protoc>\n<protocDigest>sha256:0000000000000000000000000000000000000000000000000000000000000000</protocDigest>\n```\n\nAnd notice how the `protoc` on the `PATH` is not rejected, despite a digest mismatch.\n\n### Impact\nUsers who have an untrusted `protoc` executable on their `PATH` and rely `<protocDigest>` as protection are affected.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.github.ascopes:protobuf-maven-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.github.ascopes:protobuf-maven-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ascopes/protobuf-maven-plugin/security/advisories/GHSA-j2pc-v64r-mv4f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ascopes/protobuf-maven-plugin/commit/d3330e7038a296fe595c5470a22019eb70e35b07"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ascopes/protobuf-maven-plugin"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-354", "CWE-693" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-04T15:48:09Z",
    "nvd_published_at" : null
  }
}