7.8
CWE
22
Advisory Published
Advisory Published
Updated

CVE-2023-4782: Terraform Allows Arbitrary File Write During Init Operation

First published: Fri Sep 08 2023(Updated: )

Terraform version 1.0.8 through 1.5.6 allows arbitrary file write during the `init` operation if run on maliciously crafted Terraform configuration. This vulnerability is fixed in Terraform 1.5.7.

Credit: security@hashicorp.com security@hashicorp.com security@hashicorp.com

Affected SoftwareAffected VersionHow to fix
go/github.com/hashicorp/terraform>=1.0.8<1.5.7
1.5.7
Hashicorp Terraform>=1.0.8<1.5.7
HashiCorp Terraform>=1.0.8<1.5.7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2023-4782?

    CVE-2023-4782 is a vulnerability in Terraform version 1.0.8 through 1.5.6 that allows arbitrary file write during the `init` operation.

  • How can CVE-2023-4782 be exploited?

    CVE-2023-4782 can be exploited by running a maliciously crafted Terraform configuration during the `init` operation.

  • What is the severity of CVE-2023-4782?

    CVE-2023-4782 has a severity value of 7.8 (High).

  • How can I fix CVE-2023-4782?

    You can fix CVE-2023-4782 by updating your Terraform version to 1.5.7 or later.

  • Where can I find more information about CVE-2023-4782?

    You can find more information about CVE-2023-4782 on the HashiCorp discussion forum, the NVD website, and the GitHub repository for Terraform.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203