CVE-2023-30618 Sensitive Terraform Output Values Printed At Info Logging Level In Kitchen-Terraform
Sensitive Terraform output values are logged at info level, allowing local attackers to read secrets from terminal logs.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-30618?
CVE-2023-30618 is a low-severity vulnerability in newcontext-oss kitchen-terraform, published on 21 Apr 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Kitchen-Terraform provides a set of Test Kitchen plugins which enable the use of Test Kitchen to converge a Terraform configuration and verify the resulting infrastructure systems with InSpec controls. 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. An attacker would need access to the local machine in order to gain access to these logs during an operation. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-532
Which versions are affected by CVE-2023-30618?
2 open source packages ship an affected version, including kitchen-terraform. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
kitchen-terraform RubyGems | From 7.0.0 | 7.0.1 |
kitchen-terraform RubyGems | From 7.0.0 | 7.0.1 |
Products include Kitchen-Terraform Project Kitchen-Terraform.
How do I fix CVE-2023-30618?
Upgrade kitchen-terraform to 7.0.1 or later.
Is CVE-2023-30618 being exploited?
There is no known exploitation of CVE-2023-30618 in the wild and no public exploit code.
Sources
Also known as GHSA-65g2-x53q-cmf6.