Skip to content

Upgrade protobuf-java to 4.32.1 to fix CVE-2024-7254#5194

Open
Senthil455 wants to merge 1 commit into
google:masterfrom
Senthil455:protobuf-cve-fix
Open

Upgrade protobuf-java to 4.32.1 to fix CVE-2024-7254#5194
Senthil455 wants to merge 1 commit into
google:masterfrom
Senthil455:protobuf-cve-fix

Conversation

@Senthil455

Copy link
Copy Markdown

This upgrades com.google.protobuf:protobuf-java from 4.29.3 to 4.32.1 to fix CVE-2024-7254.

CVE Details

CVE-2024-7254 is a Denial of Service (DoS) vulnerability that affects protobuf-java. Parsing input with DiscardUnknownFieldsParser or the Java Protobuf Lite parser, or parsing Protobuf map fields, creates unbounded recursions that can be exploited in a StackOverflow attack.

Fix Version

The patched versions are:

  • 3.25.5
  • 4.27.5
  • 4.28.2

Version 4.32.1 (which is >= 4.28.2) is no longer affected.

Changes

  • MODULE.bazel: Updated protobuf-java Maven artifact version from 4.29.3 to 4.32.1
  • gradle/libs.versions.toml: Updated protobuf-java Gradle catalog version from 4.29.3 to 4.32.1
  • maven_install.json: Updated resolved version and SHA checksum for protobuf-java

Fixes #4662

This upgrades com.google.protobuf:protobuf-java from 4.29.3 to 4.32.1,
which is patched against CVE-2024-7254 (Denial of Service via infinite
recursion when parsing nested group tags with DiscardUnknownFieldsParser
or Java Protobuf Lite parser).

The affected versions are < 3.25.5, >= 4.0.0-rc1 < 4.27.5, and
>= 4.28.0-RC1 < 4.28.2. Version 4.32.1 is >= 4.28.2, so it is patched.

Fixes google#4662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade protobuf-java to fix CVE-2024-7254

1 participant