Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/kubernetes/ingress-nginx
  4. ›
  5. CVE-2021-25748

CVE-2021-25748: Improper Input Validation

May 24, 2023 (updated June 1, 2023)

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

  • github.com/kubernetes/ingress-nginx/issues/8686
  • groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8
  • nvd.nist.gov/vuln/detail/CVE-2021-25748

Code Behaviors & Features

Detect and mitigate CVE-2021-25748 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.1

Fixed versions

  • v1.2.1

Solution

Upgrade to version 1.2.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/kubernetes/ingress-nginx/CVE-2021-25748.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.