{"id":"CVE-2024-47825","aliases":["CVE-2024-47825","GHSA-3wwx-63fv-pfq6","BIT-CILIUM-2024-47825","BIT-CILIUM-OPERATOR-2024-47825","BIT-HUBBLE-RELAY-2024-47825","GO-2024-3208"],"related":["CGA-h87m-vw5p-j5w3"],"kind":"vulnerability","state":"published","title":"CIDR deny policies may not take effect when a more narrow CIDR allow is present","summary":"Cilium is a networking, observability, and security solution with an eBPF-based dataplane. Starting in version 1.14.0 and prior to versions 1.14.16 and 1.15.10, a policy rule denying a prefix that is broader than `/32` may be ignored if there is a policy rule referencing a more narrow prefix (`CIDRSet` or `toFQDN`) and this narrower policy rule specifies either `enableDefaultDeny: false` or `- toEntities: all`. Note that a rule specifying `toEntities: world` or `toEntities: 0.0.0.0/0` is insufficient, it must be to entity `all`.This issue has been patched in Cilium v1.14.16 and v1.15.10. As this issue only affects policies using `enableDefaultDeny: false` or that set `toEntities` to `all`, some workarounds are available. For users with policies using `enableDefaultDeny: false`, remove this configuration option and explicitly define any allow rules required. For users with egress policies that explicitly specify `toEntities: all`, use `toEntities: world`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cilium is a networking, observability, and security solution with an eBPF-based dataplane. Starting in version 1.14.0 and prior to versions 1.14.16 and 1.15.10, a policy rule denying a prefix that is broader than `/32` may be ignored if there is a policy rule referencing a more narrow prefix (`CIDRSet` or `toFQDN`) and this narrower policy rule specifies either `enableDefaultDeny: false` or `- toEntities: all`. Note that a rule specifying `toEntities: world` or `toEntities: 0.0.0.0/0` is insufficient, it must be to entity `all`.This issue has been patched in Cilium v1.14.16 and v1.15.10. As this issue only affects policies using `enableDefaultDeny: false` or that set `toEntities` to `all`, some workarounds are available. For users with policies using `enableDefaultDeny: false`, remove this configuration option and explicitly define any allow rules required. For users with egress policies that explicitly specify `toEntities: all`, use `toEntities: world`.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA policy rule denying a prefix that is broader than /32 may be ignored if there is\n\n- A policy rule referencing a more narrow prefix (`CIDRSet` or `toFQDN`) **and**\n- This narrower policy rule specifies either `enableDefaultDeny: false` or `- toEntities: all`\n\nNote that a rule specifying `toEntities: world` or `toEntities: 0.0.0.0/0` is insufficient, it must be to entity `all`.\n\nAs an example, given the below policies, traffic is allowed to 1.1.1.2, when it should be denied:\n\n```\napiVersion: cilium.io/v2\nkind: CiliumClusterwideNetworkPolicy\nmetadata:\n  name: block-scary-range\nspec:\n  endpointSelector: {}\n  egressDeny:\n  - toCIDRSet:\n    - cidr: 1.0.0.0/8\n\n---\n\napiVersion: cilium.io/v2\nkind: CiliumNetworkPolicy\nmetadata:\n  name: evade-deny\nspec:\n  endpointSelector: {}\n  egress:\n  - toCIDR:\n    - 1.1.1.2/32\n  - toEntities:\n    - all\n```\n\n### Patches\n\nThis issue affects:\n\n- Cilium v1.14 between v1.14.0 and v1.14.15 inclusive\n- Cilium v1.15 between v1.15.0 and v1.15.9 inclusive\n\nThis issue has been patched in:\n\n- Cilium v1.14.16\n- Cilium v1.15.10\n\n### Workarounds\n\nUsers with policies using `enableDefaultDeny: false` can work around this issue by removing this configuration option and explicitly defining any allow rules required.\n\nNo workaround is available to users with egress policies that explicitly specify `toEntities: all`.\n\n### Acknowledgements\n\nThe Cilium community has worked together with members of Isovalent to prepare these mitigations. Special thanks to @squeed, @christarazi, and @jrajahalme for their work in triaging and resolving this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please reach out on [Slack](https://docs.cilium.io/en/latest/community/community/#slack).\n\nIf you think you have found a vulnerability affecting Cilium, we strongly encourage you to report it to our security mailing list at [security@cilium.io](mailto:security@cilium.io). This is a private mailing list for the Cilium security team, and your report will be treated with top priority.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Cilium's CIDR deny policies may not take effect when a more narrow CIDR allow is present in github.com/cilium/cilium","format":"markdown","source":"go"},{"lang":"es","text":"Cilium es una solución de redes, observabilidad y seguridad con un plano de datos basado en eBPF. A partir de la versión 1.14.0 y antes de las versiones 1.14.16 y 1.15.10, una regla de política que deniegue un prefijo más amplio que `/32` puede ignorarse si hay una regla de política que haga referencia a un prefijo más estrecho (`CIDRSet` o `toFQDN`) y esta regla de política más estrecha especifica `enableDefaultDeny: false` o `- toEntities: all`. Tenga en cuenta que una regla que especifique `toEntities: world` o `toEntities: 0.0.0.0/0` no es suficiente, debe ser para la entidad `all`. Este problema se ha corregido en Cilium v1.14.16 y v1.15.10. Como este problema solo afecta a las políticas que utilizan `enableDefaultDeny: false` o que establecen `toEntities` en `all`, hay algunas soluciones alternativas disponibles. Para los usuarios con políticas que utilizan `enableDefaultDeny: false`, elimine esta opción de configuración y defina explícitamente las reglas de permiso requeridas. Para los usuarios con políticas de salida que especifican explícitamente `toEntities: all`, utilice `toEntities: world`.","source":"nvd"}],"published":"2024-10-21T19:03:47.000Z","modified":"2026-09-10T03:50:19.136Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-276","CWE-1038"],"affected":[{"ranges":[{"version":">= 1.15.0, < 1.15.10","status":"affected"},{"version":">= 1.14.0, < 1.14.16","status":"affected"}],"vendor":"cilium","product":"cilium","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.15.0","fixed":"1.15.10","status":"affected"},{"type":"custom","introduced":"1.14.0","fixed":"1.14.16","status":"affected"}],"vendor":"cilium","product":"cilium","cpe":"cpe:2.3:a:cilium:cilium:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.15.10"}],"ecosystem":"Go","package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.14.0","status":"affected","fixed":"1.14.16"}],"ecosystem":"Go","package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.14.0","status":"affected","fixed":"1.14.16"},{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.15.10"}],"ecosystem":"Go","package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"go"},{"ranges":[{"status":"affected","introduced":"1.14.0","fixed":"1.14.16"},{"status":"affected","introduced":"1.15.0","fixed":"1.15.10"}],"vendor":"cilium","product":"cilium","cpe":"cpe:2.3:a:cilium:cilium:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"1.15.4","status":"affected","fixed":"1.16.0"}],"ecosystem":"Bitnami","package":"cilium","purl":"pkg:bitnami/cilium","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"1.15.4","status":"affected","fixed":"1.16.0"}],"ecosystem":"Bitnami","package":"cilium-operator","purl":"pkg:bitnami/cilium-operator","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"1.14.0","status":"affected","fixed":"1.16.0"}],"ecosystem":"Bitnami","package":"hubble-relay","purl":"pkg:bitnami/hubble-relay","source":"bitnami"}],"references":[{"url":"https://github.com/cilium/cilium/security/advisories/GHSA-3wwx-63fv-pfq6","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47825","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/cilium/cilium/commit/02d28d9ac9afcaddd301fae6fb4d6cda8c2d0c45","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/cilium/cilium/commit/9c01afb5646af3f0c696421a410dc66c513b6524","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/cilium/cilium","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-10-21T19:58:00.432Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47825","url":"https://www.cve.org/CVERecord?id=CVE-2024-47825","licence":"CVE Terms of Use","modified":"2024-10-21T19:59:01.283Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3wwx-63fv-pfq6","url":"https://github.com/advisories/GHSA-3wwx-63fv-pfq6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:19.136Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3208","url":"https://pkg.go.dev/vuln/GO-2024-3208","licence":"CC-BY-4.0","modified":"2026-02-04T02:59:31.711Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47825","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47825","licence":"Public domain","modified":"2026-06-17T07:57:49.363Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-CILIUM-2024-47825","url":"https://osv.dev/vulnerability/BIT-CILIUM-2024-47825","licence":"Apache-2.0","modified":"2026-09-08T08:45:56.006Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-CILIUM-OPERATOR-2024-47825","url":"https://osv.dev/vulnerability/BIT-CILIUM-OPERATOR-2024-47825","licence":"Apache-2.0","modified":"2026-09-08T08:45:53.616Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-HUBBLE-RELAY-2024-47825","url":"https://osv.dev/vulnerability/BIT-HUBBLE-RELAY-2024-47825","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.065Z"}],"updatedAt":"2026-11-25T22:58:47.089Z","epss":{"score":0.00397,"percentile":0.35993,"date":"2026-12-01T12:00:22.000Z"}}