CVE-2022-3171Memory handling vulnerability in ProtocolBuffers Java core and lite
A parsing issue with binary data in protobuf-java core and lite versions prior to 3.21.7, 3.20.3, 3.19.6 and 3.16.3 can lead to a denial of service attack. Inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields causes objects to be converted back-n-forth between mutable and immutable forms, resulting in potentially long garbage collection pauses. We recommend updating to the versions mentioned above.
What to do
Fixed builds are available from Debian, Maven, RubyGems: 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 22.04 | protobuf | Will not fix patch is possibly a3888f5 The changes required to fix this issue in Ubuntu stable releases are too intrusive to be backported. We will not be releasing… | UBUNTU-CVE-2022-3171 | |
| Ubuntu 20.04 | protobuf | Fix pending | UBUNTU-CVE-2022-3171 | |
| Ubuntu 18.04 | protobuf | Fix pending | UBUNTU-CVE-2022-3171 | |
| Ubuntu 16.04 | protobuf | Will not fix patch is possibly a3888f5 The changes required to fix this issue in Ubuntu stable releases are too intrusive to be backported. We will not be releasing… | UBUNTU-CVE-2022-3171 | |
| Ubuntu 14.04 | protobuf | Fix pending | UBUNTU-CVE-2022-3171 | |
| Debian 14 | protobuf | Fixed | 3.21.9-3 | DEBIAN-CVE-2022-3171 |
| Debian 13 | protobuf | Fixed | 3.21.9-3 | DEBIAN-CVE-2022-3171 |
| Debian 12 | protobuf | Fixed | 3.21.9-3 | DEBIAN-CVE-2022-3171 |
| Maven library | com.google.protobuf:protobuf-java | Fixed | 3.16.3 | GHSA-h4h5-3hr4-j3g2 |
| Maven library | com.google.protobuf:protobuf-javalite | Fixed | 3.20.3 | GHSA-h4h5-3hr4-j3g2 |
| Maven library | com.google.protobuf:protobuf-kotlin | Fixed | 3.19.6 | GHSA-h4h5-3hr4-j3g2 |
| Maven library | com.google.protobuf:protobuf-kotlin-lite | Fixed | 3.20.3 | GHSA-h4h5-3hr4-j3g2 |
| RubyGems library | google-protobuf | Fixed | 3.19.6 | GHSA-h4h5-3hr4-j3g2 |
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 LLC Protocolbuffers: affected: 3.21.7 to before 3.21.7, 3.20.3 to before 3.20.3, 3.19.6 to before 3.19.6, 3.16.3 to before 3.16.3; fixed in
3.21.7,3.20.3,3.19.6,3.16.3
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202301-09 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-h4h5-3hr4-j3g2
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/
- https://security.gentoo.org/glsa/202301-09
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/
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.