Advisory

GHSA-863x-868h-968x

Also known as: CVE-2021-25748

Summary

Ingress-nginx path sanitization can be bypassed with newline character

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-05-24 18:30 UTC
Modified
2026-08-07 08:12 UTC

Affected packages and fixes

k8s.io/ingress-nginx

Go · All systems

Affected

  • introduced 0, fixed 1.2.1 (semver)

Fixed versions

1.2.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences