CVE-2021-25748: A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use a newline character to bypass the sanitization of the...

Medium CVSS 6.5

CVE id
CVE-2021-25748
Published
Last modified

Affected packages

PackageAffected versionsFixed in
Ingress-NGINX Controller
Runtimes and servers
< 1.2.1 1.2.1

How to fix it

Upgrade Ingress-NGINX Controller to 1.2.1 or later.

kubectl get deploy -A -l app.kubernetes.io/name=ingress-nginx -o jsonpath='{..image}'
  • Upgrade the ingress-nginx controller (the registry.k8s.io/ingress-nginx/controller image, or the ingress-nginx Helm chart that ships it) to the patched release and roll it out to every cluster.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

A security issue was discovered in ingress-nginx where 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. In the default configuration, that credential has access to all secrets in the cluster.

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.