Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cilium/cilium
  4. ›
  5. CVE-2024-47825

CVE-2024-47825: Cilium's CIDR deny policies may not take effect when a more narrow CIDR allow is present

October 21, 2024

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.

As an example, given the below policies, traffic is allowed to 1.1.1.2, when it should be denied:

apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: block-scary-range
spec:
endpointSelector: {}
egressDeny:
- toCIDRSet:
- cidr: 1.0.0.0/8

---

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: evade-deny
spec:
endpointSelector: {}
egress:
- toCIDR:
- 1.1.1.2/32
- toEntities:
- all

References

  • github.com/advisories/GHSA-3wwx-63fv-pfq6
  • github.com/cilium/cilium
  • github.com/cilium/cilium/commit/02d28d9ac9afcaddd301fae6fb4d6cda8c2d0c45
  • github.com/cilium/cilium/commit/9c01afb5646af3f0c696421a410dc66c513b6524
  • github.com/cilium/cilium/security/advisories/GHSA-3wwx-63fv-pfq6
  • nvd.nist.gov/vuln/detail/CVE-2024-47825

Code Behaviors & Features

Detect and mitigate CVE-2024-47825 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.14.0 before 1.14.16, all versions starting from 1.15.0 before 1.15.10

Fixed versions

  • 1.15.10
  • 1.14.16

Solution

Upgrade to versions 1.14.16, 1.15.10 or above.

Impact 4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-1038: Insecure Automated Optimizations

Source file

go/github.com/cilium/cilium/CVE-2024-47825.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:15:21 +0000.