Vulnerabilities in pkg:golang/sigs.k8s.io/aws-iam-authenticator

PACKAGE
Advisory Identifier: GHSA-pp3f-98qg-5g75
Advisory Summary

CVE-2022-2385 is a HIGH (CVSS 8.1) aws-iam-authenticator allow-listed iam identity may vulnerability (CWE-20: Improper Input Validation) affecting Sigs.k8s.io/aws iam authenticator libraries in the Go ecosystem. The issue involves aws-iam-authenticator allow-listed iam identity may be able to modify their username, escalate privileges before v0.5.9. Remediation is available by upgrading affected packages to version 0.5.9.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/sigs.k8s.io/aws-iam-authenticator

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/sigs.k8s.io/aws-iam-authenticator. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pp3f-98qg-5g75 CVE-2022-2385 HIGH aws-iam-authenticator allow-listed IAM identity may be able to modify their username, escalate privileges before v0.5.9

CVE-2022-2385 at a Glance

CVE Identifier CVE-2022-2385
GHSA Identifier GHSA-pp3f-98qg-5g75
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-20: Improper Input Validation
Affected Product Sigs.k8s.io/aws iam authenticator
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

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

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

How to Fix CVE-2022-2385

To remediate this vulnerability, upgrade all affected Sigs.k8s.io/aws iam authenticator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sigs.k8s.io/aws-iam-authenticator fixed: 0.5.9
Upgrade sigs.k8s.io/aws-iam-authenticator to 0.5.9
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 sigs.k8s.io/aws-iam-authenticator

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-2385, inspect your project dependencies for Sigs.k8s.io/aws iam authenticator:

inspect dependencies for sigs.k8s.io/aws-iam-authenticator

Analyze the terminal output to locate any version of Sigs.k8s.io/aws iam authenticator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.9), 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 Sigs.k8s.io/aws iam authenticator, 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

A security issue was discovered in aws-iam-authenticator where an allow-listed IAM identity may be able to modify their username and escalate privileges.

CVE-2022-2385 Affected Sigs.k8s.io/aws iam authenticator Versions

1 component(s)
Fixed Versions:
0.5.9
Product / Package Ecosystem Affected Versions Fixed Version
sigs.k8s.io/aws-iam-authenticator
Go
< 0.5.9
0.5.9

References

Frequently Asked Questions

What is CVE-2022-2385?
CVE-2022-2385 is a security vulnerability in Sigs.k8s.io/aws iam authenticator involving aws-iam-authenticator allow-listed IAM identity may be able to modify their username, escalate privileges before v0.5.9 under CWE-20: Improper Input Validation.
Which Sigs.k8s.io/aws iam authenticator versions are affected?
Affected versions include releases prior to 0.5.9 across affected packages: sigs.k8s.io/aws-iam-authenticator.
What version fixes CVE-2022-2385?
Upgrading to 0.5.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sigs.k8s.io/aws-iam-authenticator affected?
Yes, sigs.k8s.io/aws-iam-authenticator is affected in releases prior to 0.5.9. Upgrade your dependency to 0.5.9 or later.
What is the CVSS score of CVE-2022-2385?
CVE-2022-2385 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2022-2385?
CVE-2022-2385 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-2385?
Run the dependency tree command: 'inspect dependencies for sigs.k8s.io/aws-iam-authenticator'. 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-pp3f-98qg-5g75",
  "modified" : "2022-07-21T15:22:31Z",
  "published" : "2022-07-13T00:00:41Z",
  "aliases" : [ "CVE-2022-2385" ],
  "summary" : "aws-iam-authenticator allow-listed IAM identity may be able to modify their username, escalate privileges before v0.5.9",
  "details" : "A security issue was discovered in aws-iam-authenticator where an allow-listed IAM identity may be able to modify their username and escalate privileges.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "sigs.k8s.io/aws-iam-authenticator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2385"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/472"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes-sigs/aws-iam-authenticator/pull/469"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes-sigs/aws-iam-authenticator/commit/029d1dcf2ec8d662d9b1c21260bb197404bc8218"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubernetes-sigs/aws-iam-authenticator"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/tag/v0.5.9"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/a/kubernetes.io/g/dev/c/EMxHpU-1ZYs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-15T18:09:47Z",
    "nvd_published_at" : "2022-07-12T19:15:00Z"
  }
}