Improper Input Validation Affecting github.com/kubernetes/ingress-nginx/internal/ingress/inspector package, versions <1.2.1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.05% (25th 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 Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMKUBERNETESINGRESSNGINXINTERNALINGRESSINSPECTOR-8492065
  • published8 Dec 2024
  • disclosed24 May 2023
  • creditUnknown

Introduced: 24 May 2023

CVE-2021-25748  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade github.com/kubernetes/ingress-nginx/internal/ingress/inspector to version 1.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation such that path sanitization can be bypassed with a newline character. A user that can create or update ingress objects can use a newline character to bypass the sanitization of the spec.rules[].http.paths[].path field of an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller.

Note:

In the default configuration, that credential has access to all secrets in the cluster.

CVSS Scores

version 3.1