URI fragment handling vulnerability in HAProxy
HAProxy before 2.8.2 accepts the '#' character within the URI component without trimming URI fragments. This can cause path_end routing rules to interpret a request differently from the backend server, potentially routing requests to an unintended static server and exposing confidential data. Other impacts are unspecified.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Remote attackers may obtain confidential data from backend static servers by exploiting inconsistent interpretation of URI fragments and path_end routing rules. Additional impacts are possible but are not characterized.
If you can’t patch tonight, do this now.
Until updates are deployed, reject or normalize requests containing URI fragment delimiter characters at the HAProxy frontend, and review path_end-based ACLs and backend routing rules for parsing discrepancies. Avoid relying solely on suffix matching to enforce access separation between static content or backends.
Patch, then assume compromise.
Upgrade HAProxy to 2.8.2 or later, or install a vendor-supported package containing the backported fix. For Red Hat OpenShift Container Platform 4.15, apply the 4.15.24 package and container-image updates through the appropriate release channel using the OpenShift CLI or web console. RHSA-2024:4853 includes the corrected RHEL 8 HAProxy package haproxy26-2.6.13-4.rhaos4.15.el8.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.