Bug 2546196 (CVE-2026-105843) - CVE-2026-105843 openshift/router: openshift/router: newline injection via the HSTS route annotation causes cluster-wide HAProxy reload failure
Summary: CVE-2026-105843 openshift/router: openshift/router: newline injection via the...
Keywords:
Status: NEW
Alias: CVE-2026-105843
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-05 23:06 UTC by OSIDB Bzimport
Modified: 2026-12-01 01:41 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.