CVE-2022-29179: Github.com/cilium/cilium Improper Privilege Management Vulnerability

HIGH
Advisory Identifier: GHSA-fmrf-gvjp-5j5g
CVSS 7.5
CWE-269
Published
Advisory Summary

CVE-2022-29179 is a HIGH (CVSS 7.5) improper privilege management vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/cilium/cilium libraries in the Go ecosystem. The issue involves improper privilege management in cilium. Remediation is available by upgrading affected packages to version 1.11.5, 1.10.11, 1.9.16.

CVE-2022-29179 at a Glance

CVE Identifier CVE-2022-29179
GHSA Identifier GHSA-fmrf-gvjp-5j5g
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-269: Improper Privilege Management
Affected Product Github.com/cilium/cilium
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-29179

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.

github.com/cilium/cilium fixed: 1.11.5
Upgrade github.com/cilium/cilium to 1.11.5
github.com/cilium/cilium fixed: 1.10.11
Upgrade github.com/cilium/cilium to 1.10.11
github.com/cilium/cilium fixed: 1.9.16
Upgrade github.com/cilium/cilium to 1.9.16
Verify Direct and Transitive Dependencies

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-2022-29179, 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.11.5), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. 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

### Impact If an attacker is able to perform a container escape of a container running as root on a host where Cilium is installed, the attacker can leverage Cilium's Kubernetes service account to gain access to cluster privileges that are more permissive than what is minimally required to operate Cilium. In affected releases, this service account had access to modify and delete `Pod` and `Node` resources. ### Patches The problem has been fixed and is available on versions >=1.9.16, >=1.10.11, >=1.11.5 ### Workarounds There are no workarounds available. ### Acknowledgements The Cilium community has worked together with members of Isovalent, Amazon and Palo Alto Networks to prepare these mitigations. Special thanks to Micah Hausler (AWS), Robert Clark (AWS), Yuval Avrahami (Palo Alto Networks), and Shaul Ben Hai (Palo Alto Networks) for their cooperation. ### For more information If you have any questions or comments about this advisory: Email us at [security@cilium.io](mailto:security@cilium.io)

CVE-2022-29179 Affected Github.com/cilium/cilium Versions

3 component(s)
Fixed Versions:
1.11.51.10.111.9.16
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cilium/cilium
Go
≥ 1.11.0
< 1.11.5
1.11.5
github.com/cilium/cilium
Go
≥ 1.10.0
< 1.10.11
1.10.11
github.com/cilium/cilium
Go
< 1.9.16
1.9.16

References

Frequently Asked Questions

What is CVE-2022-29179?
CVE-2022-29179 is a security vulnerability in Github.com/cilium/cilium involving Improper Privilege Management in Cilium under CWE-269: Improper Privilege Management.
Which Github.com/cilium/cilium versions are affected?
Affected versions include releases prior to 1.11.5, 1.10.11, 1.9.16 across affected packages: github.com/cilium/cilium.
What version fixes CVE-2022-29179?
Upgrading to 1.11.5, 1.10.11, 1.9.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cilium/cilium affected?
Yes, github.com/cilium/cilium is affected in releases prior to 1.11.5, 1.10.11, 1.9.16. Upgrade your dependency to 1.11.5, 1.10.11, 1.9.16 or later.
What is the CVSS score of CVE-2022-29179?
CVE-2022-29179 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2022-29179?
CVE-2022-29179 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2022-29179?
Run the dependency tree command: 'inspect dependencies for github.com/cilium/cilium'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fmrf-gvjp-5j5g",
  "modified" : "2022-06-06T17:57:44Z",
  "published" : "2022-05-24T21:15:15Z",
  "aliases" : [ "CVE-2022-29179" ],
  "summary" : "Improper Privilege Management in Cilium",
  "details" : "### Impact\n\nIf an attacker is able to perform a container escape of a container running as root on a host where Cilium is installed, the attacker can leverage Cilium's Kubernetes service account to gain access to cluster privileges that are more permissive than what is minimally required to operate Cilium. In affected releases, this service account had access to modify and delete `Pod` and `Node` resources. \n\n### Patches\n\nThe problem has been fixed and is available on versions >=1.9.16, >=1.10.11, >=1.11.5\n\n### Workarounds\n\nThere are no workarounds available.\n\n### Acknowledgements\n\nThe Cilium community has worked together with members of Isovalent, Amazon and Palo Alto Networks to prepare these mitigations.  Special thanks to Micah Hausler (AWS), Robert Clark (AWS), Yuval Avrahami (Palo Alto Networks), and Shaul Ben Hai (Palo Alto Networks) for their cooperation.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\nEmail us at [security@cilium.io](mailto:security@cilium.io)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cilium/cilium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.11.0"
      }, {
        "fixed" : "1.11.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cilium/cilium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.10.0"
      }, {
        "fixed" : "1.10.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cilium/cilium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.16"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cilium/cilium/security/advisories/GHSA-fmrf-gvjp-5j5g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-29179"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/cilium/releases/tag/v1.10.11"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/cilium/releases/tag/v1.11.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/cilium/releases/tag/v1.9.16"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/cilium/cilium"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-24T21:15:15Z",
    "nvd_published_at" : "2022-05-20T19:15:00Z"
  }
}