cve.bz

CVE-2021-3121 (skippy peanut butter) Improper Validation of Array Index

8.6 highEPSS 3.5%Fix available

Known as skippy peanut butter

High (8.6). EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/gogo/protobuf 1.3.2.

On this page
An issue was discovered in GoGo Protobuf before 1.3.2. plugin/unmarshal/unmarshal.go lacks certain index validation, aka the "skippy peanut butter" issue.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
EPSS
3.5% (unchanged from 3.4% a week ago; 3.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-129 Improper Validation of Array Index
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3121 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3121?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3121?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3121 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
golang:protobufbefore 1.3.2
hashicorp:consulbefore 1.8.15
hashicorp:consulfrom 1.9.0 before 1.9.9
hashicorp:consulfrom 1.10.0 before 1.10.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c3h9-896r-86jmGogithub.com/gogo/protobuf<1.3.21.3.2
GO-2021-0053Gogithub.com/gogo/protobuf<1.3.21.3.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-gogoprotobuf1.3.2-1DEBIAN-CVE-2021-3121
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTSgolang-gogoprotobufno fix listedUBUNTU-CVE-2021-3121
Ubuntu22.04:LTSgolang-gogoprotobuf1.3.2-1UBUNTU-CVE-2021-3121
Red Hatopenshift:4.7::el7cri-o, cri-o-debuginfo0:1.20.0-0.rhaos4.7.git8921e00.el7.51RHSA-2020:5634
Red Hatopenshift:4.7::el7cri-o, cri-o-debuginfo0:1.20.2-4.rhaos4.7.gitd5a999a.el7RHSA-2021:1006
Red Hatopenshift:4.7::el7cri-tools, cri-tools-debuginfo0:1.18.0-3.el7RHSA-2020:5634
Red Hatopenshift:4.7::el7openshift, openshift-hyperkube0:4.7.0-202102060108.p0.git.97095.7271b90.el7RHSA-2020:5634
Red Hatopenshift:4.7::el7openshift-clients, openshift-clients-redistributable0:4.7.0-202103251046.p0.git.3957.c4da68b.el7RHSA-2021:1006
Red Hatopenshift:4.7::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.20.0-0.rhaos4.7.git8921e00.el8.51RHSA-2020:5634
Red Hatopenshift:4.7::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.20.2-4.rhaos4.7.gitd5a999a.el8RHSA-2021:1006
Red Hatopenshift:4.7::el8cri-tools, cri-tools-debuginfo, cri-tools-debugsource0:1.20.0-1.el8RHSA-2020:5634
Red Hatopenshift:4.7::el8ignition, ignition-validate, ignition-debuginfo and 2 more0:2.9.0-2.rhaos4.7.git1d56dc8.el8RHSA-2020:5634
Red Hatopenshift:4.7::el8jenkins-2-plugins0:4.7.1616671397-1.el8RHSA-2021:1006
Red Hatopenshift:4.7::el8openshift, openshift-hyperkube0:4.7.0-202102060108.p0.git.97095.7271b90.el8RHSA-2020:5634
Red Hatopenshift:4.7::el8openshift-clients, openshift-clients-redistributable0:4.7.0-202103251046.p0.git.3957.c4da68b.el8RHSA-2021:1006
65 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 5 morekubernetes1.181.18.20-150200.5.25.1SUSE-SU-2025:02977-1
openSUSELeap 15.6kubernetes1.181.18.20-150200.5.25.1SUSE-SU-2025:02977-1
openSUSETumbleweedkubernetes1.181.18.20-1.2openSUSE-SU-2024:10902-1
openSUSETumbleweedkubernetes1.191.19.15-1.1openSUSE-SU-2024:10903-1
openSUSETumbleweedkubernetes1.201.20.11-1.1openSUSE-SU-2024:10904-1
openSUSETumbleweedkubernetes1.211.21.5-1.1openSUSE-SU-2024:10905-1
openSUSETumbleweedvelero1.7.0-1.1openSUSE-SU-2024:11553-1
openSUSETumbleweedvelero-plugin-for-aws1.3.0-1.1openSUSE-SU-2024:11554-1
Alpinev3.14, v3.15, v3.16 and 8 moreprotobuf-c1.3.2-r0ALPINE-CVE-2021-3121

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

OpenShift Container Platform (OCP), OpenShift ServiceMesh (OSSM) and Red Hat OpenShift Jaeger (RHOSJ) all include code generated by github.com/gogo/protobuf to parse protobuf messages. However, no component is known to accept protobuf messages from unauthenticated sources, hence this vulnerability is rated Moderate for OCP, OSSM and RHOSJ.

OpenShift Virtualization includes code generated by github.com/gogo/protobuf to parse protobuf messages. However, no component of OpenShift Virtualization is known to accept protobuf messages from unauthenticated sources, hence this vulnerability is rated Moderate.

Red Hat Advanced Cluster Management for Kubernetes (RHACM) includes code generated by github.com/gogo/protobuf to parse protobuf messages. However, no RHACM component is accepting protobuf messages from unauthenticated sources and are used with a limited scope, hence this vulnerability is rated Moderate for RHACM.

Red Hat Cluster Application Migration (CAM) includes code generated by github.com/gogo/protobuf to parse protobuf messages. However, no CAM component is known to accept protobuf messages from unauthenticated sources, hence this vulnerability is rated Moderate for CAM.

Cryostat-2 is affected as it does ship gogo/protobuf library with it's distribution but the only use for Protobuf would be the Kubernetes/OpenShift API server the operator communicates with and it should be authenticated hence it is affected with Moderate impact.

ProductPackageStateAdvisory
AMQ Broker 7.10.1amq-broker-operator-containerFixed 2022-10-12RHSA-2022:6916
Cryostat 2 on RHEL 8cryostat-20-tech-preview/cryostat-grafana-dashboard-rhel8:2.1.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-20-tech-preview/cryostat-operator-bundle:2.1.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-20-tech-preview/cryostat-rhel8:2.1.0-2Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-20-tech-preview/cryostat-rhel8-operator:2.1.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-20-tech-preview/jfr-datasource-rhel8:2.1.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-grafana-dashboard-rhel8:2.1.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-operator-bundle:2.1.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-reports-rhel8:1.0.0-1Fixed 2022-05-10RHSA-2022:1679
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-rhel8:2.1.0-2Fixed 2022-05-10RHSA-2022:1679
Distributed Tracing Jaeger 1distributed-tracing/jaeger-agent-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-all-in-one-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-collector-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-ingester-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-query-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-rhel8-operatorNot affected
OpenShift Service Mesh 2.0servicemeshAffected
OpenShift Service Mesh 2.0servicemesh-cniAffected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-operatorAffected
225 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3121.

Attack patterns (CAPEC)

  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON