# GHSA-j2pc-v64r-mv4f: Protobuf Maven Plugin protocDigest is ignored when using protoc from PATH

- Severity: Low (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-11-04T15:48:09.000Z
- Modified: 2025-11-15T04:13:12.521Z
- Weaknesses: CWE-354, CWE-693

## Description

### 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.

(As written by GitHub Advisory Database.)

## Affected

- io.github.ascopes:protobuf-maven-plugin (Maven): from 4.0.0 before 4.0.2; before 3.10.2

## References

- <https://github.com/ascopes/protobuf-maven-plugin/security/advisories/GHSA-j2pc-v64r-mv4f> (web)
- <https://github.com/ascopes/protobuf-maven-plugin/commit/d3330e7038a296fe595c5470a22019eb70e35b07> (web)
- <https://github.com/ascopes/protobuf-maven-plugin> (package)

## Sources

- GitHub Advisory Database: [GHSA-j2pc-v64r-mv4f](https://github.com/advisories/GHSA-j2pc-v64r-mv4f), CC-BY-4.0, modified 2025-11-15

---

Page: https://cve.day/GHSA-j2pc-v64r-mv4f · Whole record: https://cve.day/GHSA-j2pc-v64r-mv4f.json · Rebuilt by cve.day 2026-11-25T22:56:28.173Z
