CVE-2023-30618: Kitchen terraform Sensitive Terraform Output Values Printed Vulnerability

LOW
Advisory Identifier: GHSA-65g2-x53q-cmf6
CVSS 3.2
CWE-532
Published
Advisory Summary

CVE-2023-30618 is a LOW (CVSS 3.2) sensitive terraform output values printed vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Kitchen terraform libraries in the RubyGems ecosystem. The issue involves sensitive terraform output values printed at info logging level in kitchen-terraform. Remediation is available by upgrading affected packages to version 7.0.1.

CVE-2023-30618 at a Glance

CVE Identifier CVE-2023-30618
GHSA Identifier GHSA-65g2-x53q-cmf6
Severity LOW
CVSS v3.1 Base Score 3.2
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Kitchen terraform
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 3.2

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

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

How to Fix CVE-2023-30618

To remediate this vulnerability, upgrade all affected Kitchen terraform dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

kitchen-terraform fixed: 7.0.1
Upgrade kitchen-terraform to 7.0.1
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 kitchen-terraform

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-30618, inspect your project dependencies for Kitchen terraform:

inspect dependencies for kitchen-terraform

Analyze the terminal output to locate any version of Kitchen terraform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.1), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Kitchen terraform, 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

### Summary Kitchen-Terraform v7.0.0 introduced a regression which caused all Terraform output values, including sensitive values, to be printed at the `info` logging level during the `kitchen converge` action. Prior to v7.0.0, the output values were printed at the `debug` level to avoid writing sensitive values to the terminal by default. ### Original Report @brettcurtis: > Hopefully, I'm not doing something stupid here, but I'm seeing sensitive outputs printed in the kitchen output. You can check this action for an example: https://github.com/osinfra-io/terraform-google-project/actions/runs/4700065515/jobs/8334277309#step:5:215 > > It's not really a sensitive value just used it as an example.

CVE-2023-30618 Affected Kitchen terraform Versions

1 component(s)
Fixed Versions:
7.0.1
Product / Package Ecosystem Affected Versions Fixed Version
kitchen-terraform
RubyGems
≥ 7.0.0
< 7.0.1
7.0.1

References

Frequently Asked Questions

What is CVE-2023-30618?
CVE-2023-30618 is a security vulnerability in Kitchen terraform involving Sensitive Terraform Output Values Printed At Info Logging Level In Kitchen-Terraform under CWE-532: Insertion of Sensitive Information into Log File.
Which Kitchen terraform versions are affected?
Affected versions include releases prior to 7.0.1 across affected packages: kitchen-terraform.
What version fixes CVE-2023-30618?
Upgrading to 7.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kitchen-terraform affected?
Yes, kitchen-terraform is affected in releases prior to 7.0.1. Upgrade your dependency to 7.0.1 or later.
What is the CVSS score of CVE-2023-30618?
CVE-2023-30618 has a CVSS v3.1 base score of 3.2 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2023-30618?
CVE-2023-30618 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check RubyGems dependencies for CVE-2023-30618?
Run the dependency tree command: 'inspect dependencies for kitchen-terraform'. 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-65g2-x53q-cmf6",
  "modified" : "2023-04-24T22:44:38Z",
  "published" : "2023-04-24T22:44:38Z",
  "aliases" : [ "CVE-2023-30618" ],
  "summary" : "Sensitive Terraform Output Values Printed At Info Logging Level In Kitchen-Terraform",
  "details" : "### Summary\n\nKitchen-Terraform v7.0.0 introduced a regression which caused all Terraform output values, including sensitive values, to be printed at the `info` logging level during the `kitchen converge` action. Prior to v7.0.0, the output values were printed at the `debug` level to avoid writing sensitive values to the terminal by default.\n\n### Original Report\n\n@brettcurtis:\n> Hopefully, I'm not doing something stupid here, but I'm seeing sensitive outputs printed in the kitchen output. You can check this action for an example: https://github.com/osinfra-io/terraform-google-project/actions/runs/4700065515/jobs/8334277309#step:5:215\n>\n> It's not really a sensitive value just used it as an example.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "kitchen-terraform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/newcontext-oss/kitchen-terraform/security/advisories/GHSA-65g2-x53q-cmf6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30618"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/newcontext-oss/kitchen-terraform/commit/3d20d60e7a891e2dd747df995a31226fa0b4ac48"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/newcontext-oss/kitchen-terraform"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kitchen-terraform/CVE-2023-30618.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-24T22:44:38Z",
    "nvd_published_at" : "2023-04-21T20:15:07Z"
  }
}