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

CVE-2021-25748: Ingress-nginx `path` sanitization can be bypassed with newline character

May 24, 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/advisories/GHSA-863x-868h-968x
  • github.com/kubernetes/ingress-nginx/issues/8686
  • github.com/kubernetes/ingress-nginx/pull/8623
  • github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.2.1
  • 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.1

Fixed versions

  • 1.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

Source file

go/k8s.io/ingress-nginx/CVE-2021-25748.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:51 +0000.