GHSA-j2pc-v64r-mv4f: Protobuf Maven Plugin protocDigest is ignored when using protoc from PATH
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 PATH the protocDigest is not actually checked because the code returns here already…
Published Nov 4, 2025
Affected packages
io.github.ascopes:protobuf-maven-plugin
- Ecosystem
- Maven
- Affected
- >= 4.0.0, <= 4.0.1
- Fixed in
- 4.0.2
- Check
mvn dependency:tree -Dincludes=io.github.ascopes:protobuf-maven-plugin
io.github.ascopes:protobuf-maven-plugin
- Ecosystem
- Maven
- Affected
- < 3.10.2
- Fixed in
- 3.10.2
- Check
mvn dependency:tree -Dincludes=io.github.ascopes:protobuf-maven-plugin
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
<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.
Credited to Marcono1234.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
