{"answers":{"affected":"7 open source packages ship an affected version, including github.com/cilium/cilium.","exploited":"There is no known exploitation of GHSA-c66w-hq56-4q97 in the wild and no public exploit code.","fix":"Upgrade github.com/cilium/cilium to a fixed version for your release line: 1.7.15, 1.8.8 or 1.9.5.","what":"GHSA-c66w-hq56-4q97 is a vulnerability in github.com/cilium/cilium, published on 21 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-c66w-hq56-4q97 and fix it if it is affected.\n\nWhat it is: GHSA-c66w-hq56-4q97 is a vulnerability in github.com/cilium/cilium, published on 21 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-c66w-hq56-4q97 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cilium/cilium (Go): affected from 1.7.8; fixed in 1.7.15, 1.8.8, 1.9.5\n- github.com/cilium/cilium (Go): affected from 1.7.8; fixed in 1.7.15\n- github.com/cilium/cilium (Go): affected from 1.7.8; fixed in 1.7.15\n- github.com/cilium/cilium (Go): affected from 1.8.3; fixed in 1.8.8\n- github.com/cilium/cilium (Go): affected from 1.8.3; fixed in 1.8.8\n- github.com/cilium/cilium (Go): affected from 1.9.0; fixed in 1.9.5\n- github.com/cilium/cilium (Go): affected from 1.9.0; fixed in 1.9.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-c66w-hq56-4q97/ (Markdown: https://insights.sbomify.com/GHSA-c66w-hq56-4q97/index.md)","id":"GHSA-c66w-hq56-4q97","markdown":"https://insights.sbomify.com/GHSA-c66w-hq56-4q97/index.md","name":"GHSA-c66w-hq56-4q97","record":{"aliases":["GO-2022-0393"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Cilium network policy","requires_auth":"none","summary":"Attackers can bypass network policies via ICMP Echo Requests under specific conditions, allowing unauthorized access to protected endpoints.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## 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 \u003c\u003cEOF | kubectl apply -f\napiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\nmetadata:\n  name: server-netpol # allow client-\u003eserver\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-\u003eclient\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   \u003c--- \"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   \u003c--- \"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   \u003c--- \"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","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Network policy may be bypassed by some ICMP Echo Requests","id":"GHSA-c66w-hq56-4q97","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2021"},"n_packages":7,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.7.15","1.8.8","1.9.5"],"introduced":["1.7.8","1.8.3","1.9.0"],"last_affected":[],"package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"GO-2022-0393"},{"ecosystem":"Go","fixed":["1.7.15"],"introduced":["1.7.8"],"last_affected":[],"package":"github.com/cilium/cilium","purl":null,"source":"GHSA-c66w-hq56-4q97"},{"ecosystem":"Go","fixed":["1.7.15"],"introduced":["1.7.8"],"last_affected":[],"package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"GHSA-c66w-hq56-4q97"},{"ecosystem":"Go","fixed":["1.8.8"],"introduced":["1.8.3"],"last_affected":[],"package":"github.com/cilium/cilium","purl":null,"source":"GHSA-c66w-hq56-4q97"},{"ecosystem":"Go","fixed":["1.8.8"],"introduced":["1.8.3"],"last_affected":[],"package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"GHSA-c66w-hq56-4q97"},{"ecosystem":"Go","fixed":["1.9.5"],"introduced":["1.9.0"],"last_affected":[],"package":"github.com/cilium/cilium","purl":null,"source":"GHSA-c66w-hq56-4q97"},{"ecosystem":"Go","fixed":["1.9.5"],"introduced":["1.9.0"],"last_affected":[],"package":"github.com/cilium/cilium","purl":"pkg:golang/github.com/cilium/cilium","source":"GHSA-c66w-hq56-4q97"}],"products":null,"published":"2021-05-21","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can bypass network policies via ICMP Echo Requests under specific conditions, allowing unauthorized access to protected endpoints.","url":"https://insights.sbomify.com/GHSA-c66w-hq56-4q97/"}