---
id: CVE-2021-25745
aliases:
  - GHSA-pvmg-xgmx-9mxh
title: Improper Input Validation in k8s.io/ingress-nginx
summary: Improper Input Validation in k8s.io/ingress-nginx
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
vendor: ingress-nginx
product: k8s.io/ingress-nginx
ecosystem: go
affected:
  - k8s.io/ingress-nginx < 1.2.0
patched:
  - k8s.io/ingress-nginx 1.2.0
published: '2022-05-07'
updated: '2026-08-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-pvmg-xgmx-9mxh'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2021-25745'
  - url: 'https://github.com/kubernetes/ingress-nginx/issues/8502'
  - url: 'https://github.com/kubernetes/ingress-nginx'
  - url: 'https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc'
  - url: 'https://security.netapp.com/advisory/ntap-20220609-0006'
tags:
  - osv
  - go
epss: 0.01182
epssPercentile: 0.66429
ingestedAt: '2026-08-07T19:14:17.467Z'
---

## Overview

A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use 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.

## Affected packages

- `k8s.io/ingress-nginx < 1.2.0`

## Remediation

Upgrade to a patched release:

- `k8s.io/ingress-nginx 1.2.0`
