CVE-2021-25746 Ingress-nginx directive injection via annotations

High 7.6 Published Updated

Users with ingress creation rights can inject annotations to steal controller credentials, granting access to all cluster secrets.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-25746?

CVE-2021-25746 is a high-severity missing authorization vulnerability in Kubernetes ingress-nginx, published on 6 May 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use .metadata.annotations in an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.

Weakness: CWE-20

Which versions are affected by CVE-2021-25746?

It affects 1 product.

Products include Kubernetes Ingress-Nginx.

How do I fix CVE-2021-25746?

No fix has been published for CVE-2021-25746 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2021-25746 being exploited?

There is no known exploitation of CVE-2021-25746 in the wild and no public exploit code.

Sources

Also known as GHSA-79xv-4hmm-pw72.

Is CVE-2021-25746 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free