Security mailing lists by PureSourceCode

CVE-2021-25748

MEDIUM 6.5CVSS 3.1

Ingress-nginx `path` sanitization can be bypassed with newline character

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.

Published
24 May 2023
Last modified
7 Aug 2026
Assigned by
jordan@liggitt.net
NVD status
Modified
Weakness
CWE-20
Also known as
GHSA-863x-868h-968x
Sources
NVDJSONOSV GHSA-863x-868h-968xJSON

Scores

SourceScored byVersionScoreVector / decision
NVD jordan@liggitt.net (Secondary) CVSS 3.1 HIGH 7.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD kubernetes ingress-nginx
cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*
< 1.2.1 1.2.1
OSV Go k8s.io/ingress-nginx < 1.2.1 1.2.1

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 24 May 2023)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.