CVE-2023-30851
JSON

2.6low

Potential HTTP policy bypass when using header rules in Cilium

Severity
2.6low CVSS:3.1 by GitHub_M
Exploit likelihood
0.66% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2h44-x2wx-49f4BIT-CILIUM-2023-30851BIT-CILIUM-OPERATOR-2023-30851BIT-CILIUM-PROXY-2023-30851BIT-HUBBLE-2023-30851BIT-HUBBLE-RELAY-2023-30851BIT-HUBBLE-UI-2023-30851BIT-HUBBLE-UI-BACKEND-2023-30851GO-2023-1785

Description

Cilium is a networking, observability, and security solution with an eBPF-based dataplane. This issue only impacts users who have a HTTP policy that applies to multiple `toEndpoints` AND have an allow-all rule in place that affects only one of those endpoints. In such cases, a wildcard rule will be appended to the set of HTTP rules, which could cause bypass of HTTP policies. This issue has been patched in Cilium 1.11.16, 1.12.9, and 1.13.2.

Affected

Product or packageVersionsReported by
cilium cilium< 1.11.16, >= 1.12.0, < 1.12.9, >= 1.13.0, < 1.13.2, before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2CVE List, NVD
github.com/cilium/cilium (Go)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2GitHub Advisory Database, Go Vulnerability Database
cilium (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database
cilium-operator (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database
cilium-proxy (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database
hubble (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database
hubble-relay (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database
hubble-ui (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database
hubble-ui-backend (Bitnami)before 1.11.16, from 1.12.0 before 1.12.9, from 1.13.0 before 1.13.2Bitnami Vulnerability Database

All scores

GitHub_M2.6low CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-693

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Cilium is a networking, observability, and security solution with an eBPF-based dataplane. This issue only impacts users who have a HTTP policy that applies to multiple `toEndpoints` AND have an allow-all rule in place that affects only one of those endpoints. In such cases, a wildcard rule will be appended to the set of HTTP rules, which could cause bypass of HTTP policies. This issue has been patched in Cilium 1.11.16, 1.12.9, and 1.13.2.

GitHub Advisory Database
Impact

This issue only impacts users who:

  • Have a HTTP policy that applies to multiple toEndpoints AND
  • Have an allow-all rule in place that affects only one of those endpoints

In such cases, a wildcard rule will be appended to the set of HTTP rules, which could cause bypass of HTTP policies.

Patches

This issue has been patched in Cilium 1.11.16, 1.12.9, and 1.13.2.

Workarounds

Rewrite HTTP rules for each endpoint separately. For example, if the initial rule looks like:

  egress:
    - toEndpoints:
        - matchLabels:
            k8s:kind: echo
        - matchLabels:
            k8s:kind: example
      toPorts:
        - ports:
            - port: "8080"
              protocol: TCP
          rules:
            http:
              - method: "GET"

It should be rewritten to:

  egress:
    - toEndpoints:
        - matchLabels:
            k8s:kind: echo
      toPorts:
        - ports:
            - port: "8080"
              protocol: TCP
          rules:
            http:
              - method: "GET"
    - toEndpoints:
        - matchLabels:
            k8s:kind: example
      toPorts:
        - ports:
            - port: "8080"
              protocol: TCP
          rules:
            http:
              - method: "GET"
Acknowledgements

The Cilium community has worked together with members of Isovalent to prepare these mitigations. Special thanks to @jrajahalme for investigating and fixing the issue.

For more information

If you have any questions or comments about this advisory, please reach out on Slack.

As usual, if you think you found a related vulnerability, we strongly encourage you to report security vulnerabilities to our private security mailing list: security@cilium.io - first, before disclosing them in any public forums. This is a private mailing list where only members of the Cilium internal security team are subscribed to, and is treated as top priority.

Go Vulnerability Database

Potential HTTP policy bypass when using header rules in Cilium in github.com/cilium/cilium

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-30851 changed 2025-01-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-2h44-x2wx-49f4 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2023-1785 changed 2026-02-04CC-BY-4.0
NVDCVE-2023-30851 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-CILIUM-2023-30851 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-CILIUM-OPERATOR-2023-30851 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-CILIUM-PROXY-2023-30851 changed 2024-08-20Apache-2.0
Bitnami Vulnerability DatabaseBIT-HUBBLE-2023-30851 changed 2024-08-20Apache-2.0
Bitnami Vulnerability DatabaseBIT-HUBBLE-RELAY-2023-30851 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-HUBBLE-UI-2023-30851 changed 2024-08-20Apache-2.0
Bitnami Vulnerability DatabaseBIT-HUBBLE-UI-BACKEND-2023-30851 changed 2024-08-20Apache-2.0