The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.
CVE-2024-24786 - High Severity Vulnerability
Vulnerable Library - github.com/protocolbuffers/protobuf-go-v1.26.0
Go support for Google's protocol buffers
Library home page: https://proxy.golang.org/github.com/protocolbuffers/protobuf-go/@v/v1.26.0.zip
Path to dependency file: /portainer-develop/portainer-develop/api/go.mod
Path to vulnerable library: /portainer-develop/portainer-develop/api/go.mod
Dependency Hierarchy: - github.com/kubernetes/client-go-v0.22.2 (Root Library) - :x: **github.com/protocolbuffers/protobuf-go-v1.26.0** (Vulnerable Library)
Found in HEAD commit: ec9d972edb7fb1ea028782bd0f770272d89e0c60
Found in base branch: main
Vulnerability Details
The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.
Publish Date: 2024-03-05
URL: CVE-2024-24786
CVSS 3 Score Details (7.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://pkg.go.dev/vuln/GO-2024-2611
Release Date: 2024-03-05
Fix Resolution: v1.33.0
Step up your Open Source Security Game with Mend here