cve.bz

CVE-2025-59303 haproxy haproxy kubernetes ingress controller: Incomplete Filtering of Special Elements

6.4 mediumEPSS 0.3%

Medium (6.4) in haproxy haproxy kubernetes ingress controller. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
HAProxy Kubernetes Ingress Controller before 3.1.13, when the config-snippets feature flag is used, accepts config snippets from users with create/update permissions. This can result in obtaining an ingress token secret as a response. The fixed versions of HAProxy Enterprise Kubernetes Ingress Controller are 3.0.16-ee1, 1.11.13-ee1, and 1.9.15-ee1.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-791 Incomplete Filtering of Special Elements
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2025-59303 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59303?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59303?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59303 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
HAProxy Kubernetes Ingress Controllerbefore 3.1.13

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is rated MODERATE primarily because successful exploitation requires the attacker to possess existing privileges allowing them to create or modify Ingress or Service objects in a cluster environment. The core flaw is a configuration injection weakness where the KIC's config-snippets feature can be misused to embed arbitrary HAProxy directives that are not properly sanitized. This malicious code allows an attacker to access environment variables, specifically the highly sensitive Kubernetes service account token secret, which is available to the ingress controller pod. Obtaining this token permits an authenticated user to perform privilege escalation and access cluster data.

So essentially, for a product to be affected, it has to both ship the base haproxy RPM and run it in the Kubernetes Ingres Controller.

Red Hat's mitigation

Disabling the config-snippets feature before starting the Ingres Controller is a useful mitigation for this vulnerability.

This can be done by starting the Ingres Controller with the following flag:

--disable-config-snippets

Upgrade to version 3.2 and above to fix this issue.

ProductPackageStateAdvisory
Red Hat Ceph Storage 5haproxyOut of support scope
Red Hat Enterprise Linux 10haproxyAffected
Red Hat Enterprise Linux 7haproxyAffected
Red Hat Enterprise Linux 8haproxyAffected
Red Hat Enterprise Linux 9haproxyAffected
Red Hat Hardened ImageshaproxyNot affected
Red Hat OpenShift Container Platform 4haproxyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-59303.

References

Check your stackJSON