CVE-2026-105843

Openshift/router: openshift/router: newline injection via the hsts route annotation causes cluster-wide haproxy reload failure

Published Dec 1, 2026 CVSS 3.1 · 7.7 High EPSS n/a KEV · Not listed
Description
A flaw was found in OpenShift Router. The regular expression used to validate the haproxy.router.openshift.io/hsts_header route annotation matches the whitespace character class, which includes newline characters, and the matched value is written without escaping into the shared HAProxy configuration file. An authenticated user with permission to create Route objects in a single namespace can inject newline characters into the generated configuration, causing HAProxy to fail to parse it. This results in reload failures and prevents ingress updates across the cluster, leading to a denial of service.

Remediation

Vendor Workaround

Restrict permission to create Route objects to trusted users. Preventing untrusted namespaces from setting the haproxy.router.openshift.io/hsts_header annotation removes the attack vector. If a cluster is already affected, HAProxy keeps serving its previous configuration but will not apply further route or endpoint changes; identify and delete the Route whose hsts_header annotation contains embedded newline characters, then restart the router pods.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A flaw was found in OpenShift Router. The regular expression used to validate the haproxy.router.openshift.io/hsts_header route annotation matches the whitespace character class, which includes newline characters, and the matched value is written without escaping into the shared HAProxy configuration file. An authenticated user with permission to create Route objects in a single namespace can inject newline characters into the generated configuration, causing HAProxy to fail to parse it. This results in reload failures and prevents ingress updates across the cluster, leading to a denial of service.
Title Openshift/router: openshift/router: newline injection via the hsts route annotation causes cluster-wide haproxy reload failure
First Time appeared Redhat
Redhat openshift
Weaknesses CWE-74
CPEs cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift:5
Vendors & Products Redhat
Redhat openshift
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 1, 2026, 2:12 AM
Reserved
Oct 5, 2026, 11:03 PM

No data.