Skip to main content

Out-of-bounds Write in com.google.protobuf:protobuf-java

CVE-2024-7254

  • com.google.protobuf:protobuf-java
  • com.google.protobuf:protobuf-javalite
  • com.google.protobuf:protobuf-kotlin
  • com.google.protobuf:protobuf-kotlin-lite
  • google:protobuf
  • protobuf
  • protocolbuffers:protobuf
  • sailfishos-mirror:protobuf
Severity High
Score 8.7/10

Summary

Any project that parses untrusted Protocol Buffers data containing an arbitrary number of nested groups/series of SGROUP tags can corrupted by exceeding the stack limit i.e. StackOverflow. Parsing nested groups as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields, creates unbounded recursions that an attacker can abuse. This issue affects version prior to 3.25.5, 4.0.x prior to 4.27.5, 4.28.x prior to 4.28.2.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-787 - Out-of-Bounds Write

Out-of-bounds write vulnerability is a memory access bug that allows software to write data past the end or before the beginning of the intended buffer. This may result in the corruption of data, a crash, or arbitrary code execution.

Advisory Timeline

  • Published