GHSA-c66w-hq56-4q97: Github.com/cilium/cilium Network Policy May Be Bypassed Vulnerability
LOWGHSA-c66w-hq56-4q97 is a LOW network policy may be bypassed vulnerability (General Security Weakness) affecting Github.com/cilium/cilium libraries in the Go ecosystem. The issue involves network policy may be bypassed by some icmp echo requests. Remediation is available by upgrading affected packages to version 1.7.15, 1.8.8, 1.9.5.
GHSA-c66w-hq56-4q97 at a Glance
How to Fix GHSA-c66w-hq56-4q97
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.7.15
Upgrade github.com/cilium/cilium to 1.8.8
Upgrade github.com/cilium/cilium to 1.9.5
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 GHSA-c66w-hq56-4q97, 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.7.15), 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 General Security Weakness. 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
GHSA-c66w-hq56-4q97 Affected Github.com/cilium/cilium Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/cilium/cilium
|
Go |
≥ 1.7.8
< 1.7.15
|
1.7.15
|
|
github.com/cilium/cilium
|
Go |
≥ 1.8.3
< 1.8.8
|
1.8.8
|
|
github.com/cilium/cilium
|
Go |
≥ 1.9.0
< 1.9.5
|
1.9.5
|
References
Frequently Asked Questions
What is GHSA-c66w-hq56-4q97?
Which Github.com/cilium/cilium versions are affected?
What version fixes GHSA-c66w-hq56-4q97?
Is github.com/cilium/cilium affected?
What CWE is associated with GHSA-c66w-hq56-4q97?
How can I check Go dependencies for GHSA-c66w-hq56-4q97?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c66w-hq56-4q97",
"modified" : "2021-05-21T14:09:14Z",
"published" : "2021-05-21T14:32:37Z",
"aliases" : [ ],
"summary" : "Network policy may be bypassed by some ICMP Echo Requests",
"details" : "## Impact\n\nUnder certain conditions, ICMP Echo Request sent to a Cilium endpoint from an actor may bypass a network policy which _disallows_ access from the actor to the endpoint, but _allows_ from the endpoint to the actor. This does _NOT_ apply to UDP and TCP traffic.\n\nThe actor is either a pod or a cluster host or a remote host.\n\nThe following conditions must be met:\n1. Network policies have been created which:\n a) do not allow access from the actor to the endpoint;\n b) allow access from the endpoint to the actor and does not specify neither protocol nor port. \n2. The endpoint has sent ICMP Echo Request to the actor with the ICMP identifier X.\n3. The actor sends ICMP Echo Request to the endpoint with the same ICMP identifier X.\n4. The request from the actor (3.) is sent before the Cilium's conntrack GC has removed the previously created conntrack entry (2.).\n\n## Detailed description\n\nSee https://github.com/cilium/cilium/commit/dfb008a9099c4da1e0fd964c899c43ee13280b0e (v1.9.x), https://github.com/cilium/cilium/commit/ff6ebae6efca1bd991302b464dea428512823e79 (v1.8.x), https://github.com/cilium/cilium/commit/472bbeff75161979c317ab21d563f826291b5f37 (v1.7.x).\n\n## Example\n\n```\n$ kubectl run server --image=quay.io/cilium/net-test:v1.0.0 --restart=Never -- sleep 3600\n$ kubectl run client --image=quay.io/cilium/net-test:v1.0.0 --restart=Never -- sleep 3600\n$ cat <<EOF | kubectl apply -f\napiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\nmetadata:\n name: server-netpol # allow client->server\nspec:\n podSelector:\n matchLabels:\n run: server\n ingress:\n - from:\n - podSelector:\n matchLabels:\n run: client\n policyTypes:\n - Ingress\n---\napiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\nmetadata:\n name: client-netpol # deny any->client\nspec:\n podSelector:\n matchLabels:\n run: client\n policyTypes:\n - Ingress\nEOF\n\n$ kubectl exec -ti server -- xping -c1 -x666 $CLIENT_POD_IP\nPING 10.154.0.50 (10.154.0.50): 56 data bytes\n^C\n--- 10.154.0.50 ping statistics ---\n1 packets transmitted, 0 packets received, 100% packet loss <--- \"client-netpol\" policy denied\ncommand terminated with exit code 1\n\n$ kubectl exec -ti client -- xping -c1 -x666 $SERVER_POD_IP\nPING 10.154.1.16 (10.154.1.16): 56 data bytes\n64 bytes from 10.154.1.16: seq=0 ttl=60 time=0.822 ms\n\n--- 10.154.1.16 ping statistics ---\n1 packets transmitted, 1 packets received, 0% packet loss <--- \"server-netpol\" policy allowed\nround-trip min/avg/max = 0.822/0.822/0.822 ms\n\n$ kubectl exec -ti server -- xping -c1 -x666 $CLIENT_POD_IP\nPING 10.154.0.50 (10.154.0.50): 56 data bytes\n64 bytes from 10.154.0.50: seq=0 ttl=60 time=0.527 ms\n\n--- 10.154.0.50 ping statistics ---\n1 packets transmitted, 1 packets received, 0% packet loss <--- \"client-netpol\" policy bypassed\nround-trip min/avg/max = 0.527/0.527/0.527 ms\n```\n\n## For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [Cilium Issues](https://github.com/cilium/cilium/issues)\n- Email us at security@cilium.io",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cilium/cilium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.8"
}, {
"fixed" : "1.7.15"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.7.14"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cilium/cilium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.3"
}, {
"fixed" : "1.8.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.8.7"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cilium/cilium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.9.0"
}, {
"fixed" : "1.9.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cilium/cilium/security/advisories/GHSA-c66w-hq56-4q97"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-21T14:09:14Z",
"nvd_published_at" : null
}
}