CVE-2022-28224: Github.com/projectcalico/calico Calico Vulnerable To Pod Route Vulnerability

MODERATE
Advisory Identifier: GHSA-9394-xfq9-6qrp
CVSS 5.5
CWE-20 CWE-200
Published
Advisory Summary

CVE-2022-28224 is a MODERATE (CVSS 5.5) calico vulnerable to pod route vulnerability (CWE-20: Improper Input Validation) affecting Github.com/projectcalico/calico libraries in the Go ecosystem. The issue involves calico vulnerable to pod route hijacking. Remediation is available by upgrading affected packages to version 3.22.2, 3.21.5, 3.20.5.

CVE-2022-28224 at a Glance

CVE Identifier CVE-2022-28224
GHSA Identifier GHSA-9394-xfq9-6qrp
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/projectcalico/calico
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2022-28224

To remediate this vulnerability, upgrade all affected Github.com/projectcalico/calico 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/projectcalico/calico fixed: 3.22.2
Upgrade github.com/projectcalico/calico to 3.22.2
github.com/projectcalico/calico fixed: 3.21.5
Upgrade github.com/projectcalico/calico to 3.21.5
github.com/projectcalico/calico fixed: 3.20.5
Upgrade github.com/projectcalico/calico to 3.20.5
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/projectcalico/calico

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-28224, inspect your project dependencies for Github.com/projectcalico/calico:

inspect dependencies for github.com/projectcalico/calico

Analyze the terminal output to locate any version of Github.com/projectcalico/calico in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.22.2), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/projectcalico/calico, 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

Clusters using Calico (version 3.22.1 and below), Calico Enterprise (version 3.12.0 and below), may be vulnerable to route hijacking with the floating IP feature. Due to insufficient validation, a privileged attacker may be able to set a floating IP annotation to a pod even if the feature is not enabled. This may allow the attacker to intercept and reroute traffic to their compromised pod.

CVE-2022-28224 Affected Github.com/projectcalico/calico Versions

3 component(s)
Fixed Versions:
3.22.23.21.53.20.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/projectcalico/calico
Go
≥ 3.22.0
< 3.22.2
3.22.2
github.com/projectcalico/calico
Go
≥ 3.21.0
< 3.21.5
3.21.5
github.com/projectcalico/calico
Go
< 3.20.5
3.20.5

References

Frequently Asked Questions

What is CVE-2022-28224?
CVE-2022-28224 is a security vulnerability in Github.com/projectcalico/calico involving Calico vulnerable to pod route hijacking under CWE-20: Improper Input Validation.
Which Github.com/projectcalico/calico versions are affected?
Affected versions include releases prior to 3.22.2, 3.21.5, 3.20.5 across affected packages: github.com/projectcalico/calico.
What version fixes CVE-2022-28224?
Upgrading to 3.22.2, 3.21.5, 3.20.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/projectcalico/calico affected?
Yes, github.com/projectcalico/calico is affected in releases prior to 3.22.2, 3.21.5, 3.20.5. Upgrade your dependency to 3.22.2, 3.21.5, 3.20.5 or later.
What is the CVSS score of CVE-2022-28224?
CVE-2022-28224 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2022-28224?
CVE-2022-28224 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2022-28224?
Run the dependency tree command: 'inspect dependencies for github.com/projectcalico/calico'. 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-9394-xfq9-6qrp",
  "modified" : "2025-09-30T22:09:35Z",
  "published" : "2022-06-07T00:00:33Z",
  "aliases" : [ "CVE-2022-28224" ],
  "summary" : "Calico vulnerable to pod route hijacking",
  "details" : "Clusters using Calico (version 3.22.1 and below), Calico Enterprise (version 3.12.0 and below), may be vulnerable to route hijacking with the floating IP feature. Due to insufficient validation, a privileged attacker may be able to set a floating IP annotation to a pod even if the feature is not enabled. This may allow the attacker to intercept and reroute traffic to their compromised pod.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/projectcalico/calico"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.22.0"
      }, {
        "fixed" : "3.22.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/projectcalico/calico"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.21.0"
      }, {
        "fixed" : "3.21.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/projectcalico/calico"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.20.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-28224"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/projectcalico/calico"
  }, {
    "type" : "WEB",
    "url" : "https://www.tigera.io/security-bulletins-tta-2022-001"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-02T20:16:57Z",
    "nvd_published_at" : "2022-06-06T18:15:00Z"
  }
}