Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gogo/protobuf
  4. ›
  5. CVE-2021-3121

CVE-2021-3121: Improper Validation of Array Index

March 28, 2022 (updated March 29, 2022)

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

References

  • discuss.hashicorp.com/t/hcsec-2021-23-consul-exposed-to-denial-of-service-in-gogo-protobuf-dependency/29025
  • github.com/advisories/GHSA-c3h9-896r-86jm
  • github.com/gogo/protobuf/commit/b03c65ea87cdc3521ede29f62fe3ce239267c1bc
  • github.com/gogo/protobuf/compare/v1.3.1...v1.3.2
  • lists.apache.org/thread.html/r68032132c0399c29d6cdc7bd44918535da54060a10a12b1591328bff@%3Cnotifications.skywalking.apache.org%3E
  • lists.apache.org/thread.html/r88d69555cb74a129a7bf84838073b61259b4a3830190e05a3b87994e@%3Ccommits.pulsar.apache.org%3E
  • lists.apache.org/thread.html/rc1e9ff22c5641d73701ba56362fb867d40ed287cca000b131dcf4a44@%3Ccommits.pulsar.apache.org%3E
  • nvd.nist.gov/vuln/detail/CVE-2021-3121
  • security.netapp.com/advisory/ntap-20210219-0006/

Code Behaviors & Features

Detect and mitigate CVE-2021-3121 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.3.2

Fixed versions

  • v1.3.2

Solution

Upgrade to version 1.3.2 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index

Source file

go/github.com/gogo/protobuf/CVE-2021-3121.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:54 +0000.