CVE-2023-30618: Kitchen terraform Sensitive Terraform Output Values Printed Vulnerability
LOWCVE-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
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).
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.
Upgrade kitchen-terraform to 7.0.1
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
CVE-2023-30618 Affected Kitchen terraform Versions
1 component(s)| 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?
Which Kitchen terraform versions are affected?
What version fixes CVE-2023-30618?
Is kitchen-terraform affected?
What is the CVSS score of CVE-2023-30618?
What CWE is associated with CVE-2023-30618?
How can I check RubyGems dependencies for CVE-2023-30618?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}