CVE-2026-105843 PUBLISHED

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

Assigner: redhat
Reserved: 05.10.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
CVSS Score: 7.7

Product Status

Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 5
Versions Default: affected

Workarounds

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.

Credits

  • Red Hat would like to thank Arpit Jain for reporting this issue.

References

Problem Types

  • Improper Neutralization of Special Elements in Output Used by a Downstream Component CWE