CVE-2024-47825: Github.com/cilium/cilium Cilium's CIDR Deny Policies May Vulnerability
MODERATECVE-2024-47825 is a MODERATE (CVSS 4.0) cilium's cidr deny policies may vulnerability (CWE-1038: Insecure Automated Optimizations) affecting Github.com/cilium/cilium libraries in the Go ecosystem. The issue involves cilium's cidr deny policies may not take effect when a more narrow cidr allow is present. Remediation is available by upgrading affected packages to version 1.15.10, 1.14.16.
CVE-2024-47825 at a Glance
Security Impact
CVSS: 4.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N).
How to Fix CVE-2024-47825
To remediate this vulnerability, upgrade all affected Github.com/cilium/cilium dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/cilium/cilium to 1.15.10
Upgrade github.com/cilium/cilium to 1.14.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/cilium/cilium
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-47825, inspect your project dependencies for Github.com/cilium/cilium:
inspect dependencies for github.com/cilium/cilium
Analyze the terminal output to locate any version of Github.com/cilium/cilium in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.15.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1038: Insecure Automated Optimizations, where the product uses a mechanism that automatically optimizes code, e.g. to improve a characteristic such as performance, but the optimizations can have an unintended side effect that might violate an intended security assumption. In Github.com/cilium/cilium, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-47825 Affected Github.com/cilium/cilium Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/cilium/cilium
|
Go |
≥ 1.15.0
< 1.15.10
|
1.15.10
|
|
github.com/cilium/cilium
|
Go |
≥ 1.14.0
< 1.14.16
|
1.14.16
|
References
Frequently Asked Questions
What is CVE-2024-47825?
Which Github.com/cilium/cilium versions are affected?
What version fixes CVE-2024-47825?
Is github.com/cilium/cilium affected?
What is the CVSS score of CVE-2024-47825?
What CWE is associated with CVE-2024-47825?
How can I check Go dependencies for CVE-2024-47825?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3wwx-63fv-pfq6",
"modified" : "2024-10-21T21:41:15Z",
"published" : "2024-10-21T19:03:47Z",
"aliases" : [ "CVE-2024-47825" ],
"summary" : "Cilium's CIDR deny policies may not take effect when a more narrow CIDR allow is present",
"details" : "### 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.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cilium/cilium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.15.0"
}, {
"fixed" : "1.15.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cilium/cilium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.14.0"
}, {
"fixed" : "1.14.16"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cilium/cilium/security/advisories/GHSA-3wwx-63fv-pfq6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47825"
}, {
"type" : "WEB",
"url" : "https://github.com/cilium/cilium/commit/02d28d9ac9afcaddd301fae6fb4d6cda8c2d0c45"
}, {
"type" : "WEB",
"url" : "https://github.com/cilium/cilium/commit/9c01afb5646af3f0c696421a410dc66c513b6524"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cilium/cilium"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1038", "CWE-276" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-21T19:03:47Z",
"nvd_published_at" : "2024-10-21T19:15:03Z"
}
}