Infinite loop Affecting google.golang.org/protobuf/encoding/protojson package, versions <1.33.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOOGLEGOLANGORGPROTOBUFENCODINGPROTOJSON-6393703
  • published6 Mar 2024
  • disclosed5 Mar 2024
  • creditAndrea Cosentino, Chance Zibolski

Introduced: 5 Mar 2024

CVE-2024-24786  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade google.golang.org/protobuf/encoding/protojson to version 1.33.0 or higher.

Overview

Affected versions of this package are vulnerable to Infinite loop via the protojson.Unmarshal function, by unmarshaling certain forms of invalid JSON.

Note:

This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.

CVSS Scores

version 4.0
version 3.1