7.6

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

Modified
AliasesGHSA-863x-868h-968x
Published 24-05-2023Last modified 16-01-2025

Vulnerability summary

CVE-2021-25748 is a high (CVSS 7.6) Improper Input Validation vulnerability in kubernetes ingress-nginx. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 54.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.6/10
010
High · v3.1 (CVE.org)
EPSS score
0.69%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 5

Timeline

  1. 24-05-2023
    PublishedVulnerability first disclosed.
  2. 16-01-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.69%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.69% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Kubernetes2 products
K8s.io1 product
  • ingress-nginx< 1.2.1

2 vendors · 3 products

References

6 links