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

CVE-2021-3121: Improper Validation of Array Index

March 28, 2022 (updated February 9, 2023)

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.

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
  • pkg.go.dev/vuln/GO-2021-0053
  • 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. Learn more about Dependency Scanning →

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/vanity/test/CVE-2021-3121.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:42 +0000.