Uncontrolled Resource Consumption Affecting github.com/knative/serving/pkg/autoscaler/metrics package, versions <0.37.5>=0.38.0 <0.38.3>=1.10.0 <1.10.5>=1.11.0 <1.11.3


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.1% (42nd 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 Learn

Learn about Uncontrolled Resource Consumption vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMKNATIVESERVINGPKGAUTOSCALERMETRICS-6091905
  • published28 Nov 2023
  • disclosed27 Nov 2023
  • creditAdamKorcz

Introduced: 27 Nov 2023

CVE-2023-48713  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade github.com/knative/serving/pkg/autoscaler/metrics to version 0.37.5, 0.38.3, 1.10.5, 1.11.3 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption via the /metrics endpoint. The attacker would need to detect the request from the autoscaler to the /metrics endpoint of the pod they had compromised and send a malicious response back to the autoscaler. At this point, the autoscaler would crash.

Notes:

  1. The attacker would need to have compromised one pod in the Knative Serving deployment, and with that position they could launch the attack against the autoscaler.

2)Users that have not had any of their pods compromised are not at risk of this vulnerability.

CVSS Scores

version 3.1