CVE-2024-7254Stack overflow in Protocol Buffers Java Lite
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.
What to do
Fixed builds are available from Debian, Maven, RubyGems, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | protobuf | Fixed | 3.21.12-8.2ubuntu0.1 | UBUNTU-CVE-2024-7254 |
| Ubuntu 22.04 | protobuf | Fixed | 3.12.4-1ubuntu7.22.04.2 | UBUNTU-CVE-2024-7254 |
| Ubuntu 20.04 | protobuf | Fix pending | 3.6.1.3-2ubuntu5.2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-7254 |
| Ubuntu 18.04 | protobuf | Fix pending | 3.0.0-9.1ubuntu1.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2024-7254 |
| Ubuntu 16.04 | protobuf | Fix pending | 2.6.1-1.3ubuntu0.1~esm4 (Ubuntu Pro) | UBUNTU-CVE-2024-7254 |
| Ubuntu 14.04 | protobuf | Fix pending | UBUNTU-CVE-2024-7254 | |
| Debian 14 | protobuf | Fixed | 3.21.12-12 | DEBIAN-CVE-2024-7254 |
| Debian 13 | protobuf | Fixed | 3.21.12-11+deb13u1 | DEBIAN-CVE-2024-7254 |
| Debian 12 | protobuf | Fixed | 3.21.12-3+deb12u1 | DEBIAN-CVE-2024-7254 |
| Red Hat Enterprise Linux 10 | mysql8.4 | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-common | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-errmsg | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-server | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-test | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-test-data | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-protobuf | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-common | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-errmsg | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-server | Not affected | ||
| Red Hat Enterprise Linux 9 | mysql-test | Not affected | ||
| Red Hat Enterprise Linux 9 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 9 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 9 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 9 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-protobuf | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab-ipadic | Not affected | ||
| Red Hat Enterprise Linux 8 | mecab-ipadic-EUCJP | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-common | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-errmsg | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-test | Not affected | ||
| Red Hat Enterprise Linux 8 | mysql-test-data | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-protobuf | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-emacs | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-emacs-el | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-java | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-lite-static | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-python | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-static | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-vim | Not affected | ||
| Red Hat Enterprise Linux 6 | mysql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-bench | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-embedded | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-embedded-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | mysql-test | Will not fix Out of support scope | ||
| Maven library | com.google.protobuf:protobuf-java | Fixed | 3.25.5 | GHSA-735f-pc8j-v9w8 |
| Maven library | com.google.protobuf:protobuf-javalite | Fixed | 3.25.5 | GHSA-735f-pc8j-v9w8 |
| Maven library | com.google.protobuf:protobuf-kotlin | Fixed | 4.28.2 | GHSA-735f-pc8j-v9w8 |
| Maven library | com.google.protobuf:protobuf-kotlin-lite | Fixed | 4.27.5 | GHSA-735f-pc8j-v9w8 |
| RubyGems library | google-protobuf | Fixed | 4.28.2 | GHSA-735f-pc8j-v9w8 |
What the vendor says
As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Google Protocol Buffers: affected: before 28.2; fixed in
28.2 - Google protobuf-java: affected: before 3.25.5, before 4.27.5, before 4.28.2; fixed in
3.25.5,4.27.5,4.28.2 - Google protobuf-javalite: affected: before 3.25.5, before 4.27.5, before 4.28.2; fixed in
3.25.5,4.27.5,4.28.2 - Google protobuf-kotlin: affected: before 3.25.5, before 4.27.5, before 4.28.2; fixed in
3.25.5,4.27.5,4.28.2 - Google protobuf-kotllin-lite: affected: before 3.25.5, before 4.27.5, before 4.28.2; fixed in
3.25.5,4.27.5,4.28.2 - google-protobuf [JRuby Gem]: affected: before 3.25.5, before 4.27.5, before 4.28.2; fixed in
3.25.5,4.27.5,4.28.2
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.