Is com.google.protobuf:protobuf-java 3.21 vulnerable?

Maven · 13 releases from 3.21.0 to 3.21.12 · latest com.google.protobuf:protobuf-java is 4.36.2 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. com.google.protobuf:protobuf-java 3.21.12, the last 3.21 release, is affected by 1 known security advisory (1 high), including CVE-2024-7254. 3 more affect earlier 3.21.x releases. Upgrade to 3.25.5 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-java -DdepVersion=3.25.5 -DforceVersion=true

Is your project on an affected com.google.protobuf:protobuf-java?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting com.google.protobuf:protobuf-java 3.21.12

  • HighCVE-2024-7254GHSA-735f-pc8j-v9w819 Sept 2024

    protobuf-java has potential Denial of Service issue

    Affected
    <3.25.5 · >=4.0.0-RC1 <4.27.5 · >=4.28.0-RC1 <4.28.2
    Fixed in
    3.25.5, 4.27.5, 4.28.2

Fixed within 3.21.x, affecting earlier releases

  • HighCVE-2022-3510GHSA-4gg5-vx3j-xwc712 Dec 2022

    Protobuf Java vulnerable to Uncontrolled Resource Consumption

    Affected
    >=3.0.0 <3.16.3 · >=3.17.0 <3.19.6 · >=3.20.0 <3.20.3 · >=3.21.0 <3.21.7
    Fixed in
    3.16.3, 3.19.6, 3.20.3, 3.21.7
  • HighCVE-2022-3509GHSA-g5ww-5jh7-63cx12 Dec 2022

    Protobuf Java vulnerable to Uncontrolled Resource Consumption

    Affected
    >=3.0.0 <3.16.3 · >=3.17.0 <3.19.6 · >=3.20.0 <3.20.3 · >=3.21.0 <3.21.7
    Fixed in
    3.16.3, 3.19.6, 3.20.3, 3.21.7
  • MediumCVE-2022-3171GHSA-h4h5-3hr4-j3g24 Oct 2022

    protobuf-java has a potential Denial of Service issue

    Affected
    >=3.21.0-rc-1 <3.21.7 · >=3.20.0-rc-1 <3.20.3 · >=3.17.0-rc-1 <3.19.6 · <3.16.3
    Fixed in
    3.16.3, 3.19.6, 3.20.3, 3.21.7

Every com.google.protobuf:protobuf-java 3.21.x release

Affected: 3.21.0 to 3.21.12. Latest com.google.protobuf:protobuf-java: 4.36.2.

VersionKnown advisories
com.google.protobuf:protobuf-java 3.21.12CVE-2024-7254
com.google.protobuf:protobuf-java 3.21.11CVE-2024-7254
com.google.protobuf:protobuf-java 3.21.10CVE-2024-7254
com.google.protobuf:protobuf-java 3.21.9CVE-2024-7254
com.google.protobuf:protobuf-java 3.21.8CVE-2024-7254
com.google.protobuf:protobuf-java 3.21.7CVE-2024-7254
com.google.protobuf:protobuf-java 3.21.6CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171
com.google.protobuf:protobuf-java 3.21.5CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171
com.google.protobuf:protobuf-java 3.21.4CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171
com.google.protobuf:protobuf-java 3.21.3CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171
com.google.protobuf:protobuf-java 3.21.2CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171
com.google.protobuf:protobuf-java 3.21.1CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171
com.google.protobuf:protobuf-java 3.21.0CVE-2024-7254, CVE-2022-3510, CVE-2022-3509, CVE-2022-3171

Which of your client projects are still on com.google.protobuf:protobuf-java 3.21?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact com.google.protobuf:protobuf-java version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other com.google.protobuf:protobuf-java versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.