VDB
Sign up
LOW3.1

GHSA-4g2f-xcph-2335

ingress-nginx has Improper Check for Unusual or Exceptional Conditions

Quick fix

GHSA-4g2f-xcph-2335 — k8s.io/ingress-nginx: upgrade to the fixed version with the command below.

go get k8s.io/ingress-nginx@v1.13.7

Details

A security issue was discovered in ingress-nginx where the protection afforded by the `auth-url` Ingress annotation may not be effective in the presence of a specific misconfiguration.

If the ingress-nginx controller is configured with a default custom-errors configuration that includes HTTP errors 401 or 403, and if the configured default custom-errors backend is defective and fails to respect the X-Code HTTP header, then an Ingress with the `auth-url` annotation may be accessed even when authentication fails.

Note that the built-in custom-errors backend works correctly. Triggering this issue requires an administrator to specifically configure ingress-nginx with a broken external component.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/k8s.io/ingress-nginx
Introduced in: 0Fixed in: 1.13.7
Fixgo get k8s.io/ingress-nginx@v1.13.7
Go/k8s.io/ingress-nginx
Introduced in: 1.14.0Fixed in: 1.14.3
Fixgo get k8s.io/ingress-nginx@v1.14.3

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/k8s.io/ingress-nginx"]}'