Skip to main content
← All vulnerabilities
CVE-2024-7254GHSA-735F-PC8J-V9W8

Stack overflow in Protocol Buffers Java Lite

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 28.2, 3.25.5, 4.27.5, 4.28.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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 can be abused by an attacker.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Google Protocol Buffers

    fixed in 28.2

  • Google protobuf-java

    fixed in 3.25.5; fixed in 4.27.5; fixed in 4.28.2

  • Google protobuf-javalite

    fixed in 3.25.5; fixed in 4.27.5; fixed in 4.28.2

  • Google protobuf-kotlin

    fixed in 3.25.5; fixed in 4.27.5; fixed in 4.28.2

  • Google protobuf-kotllin-lite

    fixed in 3.25.5; fixed in 4.27.5; fixed in 4.28.2

  • Google google-protobuf [JRuby Gem]

    fixed in 3.25.5; fixed in 4.27.5; fixed in 4.28.2

  • com.google.protobuf:protobuf-javaMaven

    fixed in 3.25.5

  • com.google.protobuf:protobuf-javaliteMaven

    fixed in 3.25.5

  • com.google.protobuf:protobuf-kotlinMaven

    fixed in 3.25.5

  • com.google.protobuf:protobuf-kotlin-liteMaven

    fixed in 3.25.5

  • google-protobufRubyGems

    fixed in 3.25.5

  • google-protobufRubyGems

    From 4.0.0.rc.1 · fixed in 4.27.5

  • google-protobufRubyGems

    From 4.28.0.rc.1 · fixed in 4.28.2

  • com.google.protobuf:protobuf-kotlin-liteMaven

    From 4.0.0-RC1 · fixed in 4.27.5

  • com.google.protobuf:protobuf-kotlin-liteMaven

    From 4.28.0-RC1 · fixed in 4.28.2

  • com.google.protobuf:protobuf-kotlinMaven

    From 4.0.0-RC1 · fixed in 4.27.5

  • com.google.protobuf:protobuf-kotlinMaven

    From 4.28.0-RC1 · fixed in 4.28.2

  • com.google.protobuf:protobuf-javaliteMaven

    From 4.0.0-RC1 · fixed in 4.27.5

  • com.google.protobuf:protobuf-javaliteMaven

    From 4.28.0-RC1 · fixed in 4.28.2

  • com.google.protobuf:protobuf-javaMaven

    From 4.0.0-RC1 · fixed in 4.27.5

  • com.google.protobuf:protobuf-javaMaven

    From 4.28.0-RC1 · fixed in 4.28.2

References 1

GitHub · protocolbuffers/protobuf