Bug 2546196 (CVE-2026-105843)

Summary: CVE-2026-105843 openshift/router: openshift/router: newline injection via the HSTS route annotation causes cluster-wide HAProxy reload failure
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, dpaolell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, security-response-team, sghai, sidsharm, suppawar, vlaad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-10-05 23:06:27 UTC
A flaw was found in OpenShift Router. The regular expression that validates the haproxy.router.openshift.io/hsts_header annotation on a Route uses the whitespace character class, which in Go's regexp engine also matches carriage return and line feed. A matched annotation value is written verbatim into a single-quoted directive in the shared HAProxy configuration file that serves every namespace. A user permitted to create Route objects in a single namespace can therefore supply an annotation value containing embedded newlines, which is accepted by the API server because annotation values are not validated. HAProxy then rejects the entire generated configuration with a fatal parse error, so the router cannot reload or start. Route, endpoint and scale changes stop being applied cluster-wide and router pods cannot serve ingress until the offending Route is removed. This affects OpenShift Container Platform 4.9 and later.