Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:maven/com.google.protobuf/protobuf-java@3.21.7
purl pkg:maven/com.google.protobuf/protobuf-java@3.21.7
Next non-vulnerable version 3.25.5
Latest non-vulnerable version 4.28.2
Risk 4.0
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-4rvj-nz7h-m7ek
Aliases:
CVE-2024-7254
GHSA-735f-pc8j-v9w8
protobuf-java has potential Denial of Service issue ### Summary When parsing unknown fields in the Protobuf Java Lite and Full library, a maliciously crafted message can cause a StackOverflow error and lead to a program crash. Reporter: Alexis Challande, Trail of Bits Ecosystem Security Team <ecosystem@trailofbits.com> Affected versions: This issue affects all versions of both the Java full and lite Protobuf runtimes, as well as Protobuf for Kotlin and JRuby, which themselves use the Java Protobuf runtime. ### Severity [CVE-2024-7254](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-7254) **High** CVSS4.0 Score 8.7 (NOTE: there may be a delay in publication) This is a potential Denial of Service. Parsing nested groups as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields, creates unbounded recursions that can be abused by an attacker. ### Proof of Concept For reproduction details, please refer to the unit tests (Protobuf Java [LiteTest](https://github.com/protocolbuffers/protobuf/blob/a037f28ff81ee45ebe008c64ab632bf5372242ce/java/lite/src/test/java/com/google/protobuf/LiteTest.java) and [CodedInputStreamTest](https://github.com/protocolbuffers/protobuf/blob/a037f28ff81ee45ebe008c64ab632bf5372242ce/java/core/src/test/java/com/google/protobuf/CodedInputStreamTest.java)) that identify the specific inputs that exercise this parsing weakness. ### Remediation and Mitigation We have been working diligently to address this issue and have released a mitigation that is available now. Please update to the latest available versions of the following packages: * protobuf-java (3.25.5, 4.27.5, 4.28.2) * protobuf-javalite (3.25.5, 4.27.5, 4.28.2) * protobuf-kotlin (3.25.5, 4.27.5, 4.28.2) * protobuf-kotlin-lite (3.25.5, 4.27.5, 4.28.2) * com-protobuf [JRuby gem only] (3.25.5, 4.27.5, 4.28.2)
3.25.5
Affected by 0 other vulnerabilities.
4.27.5
Affected by 0 other vulnerabilities.
4.28.2
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (3)
Vulnerability Summary Aliases
VCID-bm8g-3tja-rbgg A vulnerability has been discovered in protobuf-java which could result in denial of service. CVE-2022-3171
GHSA-h4h5-3hr4-j3g2
GMS-2022-4942
GMS-2022-4943
GMS-2022-4944
GMS-2022-4945
GMS-2022-5022
VCID-f7bp-rkuk-9qfn A vulnerability has been discovered in protobuf-java which could result in denial of service. CVE-2022-3510
GHSA-4gg5-vx3j-xwc7
VCID-kkrb-cyzz-8qbn A vulnerability has been discovered in protobuf-java which could result in denial of service. CVE-2022-3509
GHSA-g5ww-5jh7-63cx

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T23:09:09.565624+00:00 GitLab Importer Affected by VCID-4rvj-nz7h-m7ek https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2024-7254.yml 38.4.0
2026-04-16T22:17:54.892499+00:00 GitLab Importer Fixing VCID-f7bp-rkuk-9qfn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3510.yml 38.4.0
2026-04-16T22:17:52.546802+00:00 GitLab Importer Fixing VCID-kkrb-cyzz-8qbn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3509.yml 38.4.0
2026-04-16T22:12:24.815136+00:00 GitLab Importer Fixing VCID-bm8g-3tja-rbgg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3171.yml 38.4.0
2026-04-12T00:27:22.854911+00:00 GitLab Importer Affected by VCID-4rvj-nz7h-m7ek https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2024-7254.yml 38.3.0
2026-04-11T23:35:25.271366+00:00 GitLab Importer Fixing VCID-f7bp-rkuk-9qfn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3510.yml 38.3.0
2026-04-11T23:35:22.458954+00:00 GitLab Importer Fixing VCID-kkrb-cyzz-8qbn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3509.yml 38.3.0
2026-04-11T23:29:17.144674+00:00 GitLab Importer Fixing VCID-bm8g-3tja-rbgg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3171.yml 38.3.0
2026-04-03T21:28:00.315114+00:00 GitLab Importer Fixing VCID-bm8g-3tja-rbgg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3171.yml 38.1.0
2026-04-03T00:35:04.419454+00:00 GitLab Importer Affected by VCID-4rvj-nz7h-m7ek https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2024-7254.yml 38.1.0
2026-04-02T23:40:03.708316+00:00 GitLab Importer Fixing VCID-f7bp-rkuk-9qfn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3510.yml 38.1.0
2026-04-02T23:40:01.095487+00:00 GitLab Importer Fixing VCID-kkrb-cyzz-8qbn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3509.yml 38.1.0
2026-04-02T16:58:35.771330+00:00 GHSA Importer Fixing VCID-kkrb-cyzz-8qbn https://github.com/advisories/GHSA-g5ww-5jh7-63cx 38.1.0
2026-04-02T16:58:35.619614+00:00 GHSA Importer Fixing VCID-f7bp-rkuk-9qfn https://github.com/advisories/GHSA-4gg5-vx3j-xwc7 38.1.0
2026-04-01T18:02:33.390198+00:00 GitLab Importer Fixing VCID-f7bp-rkuk-9qfn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3510.yml 38.0.0
2026-04-01T18:02:30.360092+00:00 GitLab Importer Fixing VCID-kkrb-cyzz-8qbn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/com.google.protobuf/protobuf-java/CVE-2022-3509.yml 38.0.0
2026-04-01T16:03:36.171616+00:00 GHSA Importer Fixing VCID-bm8g-3tja-rbgg https://github.com/advisories/GHSA-h4h5-3hr4-j3g2 38.0.0
2026-04-01T13:06:02.119977+00:00 GithubOSV Importer Fixing VCID-kkrb-cyzz-8qbn https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-g5ww-5jh7-63cx/GHSA-g5ww-5jh7-63cx.json 38.0.0
2026-04-01T13:06:01.867209+00:00 GithubOSV Importer Fixing VCID-f7bp-rkuk-9qfn https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-4gg5-vx3j-xwc7/GHSA-4gg5-vx3j-xwc7.json 38.0.0
2026-04-01T13:04:46.387985+00:00 GithubOSV Importer Fixing VCID-bm8g-3tja-rbgg https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-h4h5-3hr4-j3g2/GHSA-h4h5-3hr4-j3g2.json 38.0.0