Skip to content
Heist/ feed
Back to feed
High

OS command injection in the Terraform hook in AWS SAM CLI

Type: advisorySources: OSV

OS command injection in the Terraform hook in AWS SAM CLI before 1.166.2 might allow an actor who can influence the Terraform configuration or plan file consumed by a build to execute arbitrary commands as the build user on the host running the build via a crafted Terraform resource address. To remediate this issue, users should upgrade to version 1.166.2 or later.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-115414
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 13:19 UTC · Revision 1

Source evidence

OS command injection in the Terraform hook in AWS SAM CLI

core-osv · Original source

Published 22 Oct 2026, 18:34 UTC

OS command injection in the Terraform hook in AWS SAM CLI before 1.166.2 might allow an actor who can influence the Terraform configuration or plan file consumed by a build to execute arbitrary commands as the build user on the host running the build via a crafted Terraform resource address. To remediate this issue, users should upgrade to version 1.166.2 or later.

osv:CVE-2026-115414
Complete source record
{
  "id": "311ea9ff13fd26844f6e995f29cbe5f6e5c9bfa591eb3b51400c23f0308e57bc",
  "url": "https://osv.dev/vulnerability/CVE-2026-115414",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OS command injection in the Terraform hook in AWS SAM CLI",
    "summary": "OS command injection in the Terraform hook in AWS SAM CLI before 1.166.2 might allow an actor who can influence the Terraform configuration or plan file consumed by a build to execute arbitrary commands as the build user on the host running the build via a crafted Terraform resource address. To remediate this issue, users should upgrade to version 1.166.2 or later.",
    "evidence": "osv:CVE-2026-115414",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-115414",
      "aliases": [
        "CVE-2026-115414",
        "GHSA-44mq-wjrh-vpj6"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/aws/aws-sam-cli",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bfdfd3a6c64da7f1dd78db5e7e6bebce5feb09ac"
                },
                {
                  "fixed": "aa9da5562ce7ea65b01f7bfe10c53a4c85fa8840"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.63.0"
                      },
                      {
                        "fixed": "1.166.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "aa9da5562ce7ea65b01f7bfe10c53a4c85fa8840"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.166.2"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.166.2"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.166.1",
            "v1.166.0",
            "v1.165.0",
            "v1.164.0",
            "v1.163.0",
            "v1.162.1",
            "v1.162.0",
            "v1.161.1",
            "v1.161.0",
            "v1.160.1",
            "v1.160.0",
            "v1.159.1",
            "v1.158.0",
            "v1.157.1",
            "v1.157.0",
            "v1.156.0",
            "v1.155.2",
            "v1.155.1",
            "v1.155.0",
            "v1.154.0",
            "v1.153.1",
            "v1.152.0",
            "v1.151.0",
            "v1.150.1",
            "v1.150.0",
            "v1.149.0",
            "v1.148.0",
            "v1.147.1",
            "v1.146.0",
            "v1.145.2",
            "v1.145.1",
            "v1.145.0",
            "v1.144.0",
            "v1.143.0",
            "v1.142.1",
            "v1.142.0",
            "v1.141.0",
            "v1.140.0",
            "v1.139.0",
            "v1.138.0",
            "v1.137.1",
            "v1.137.0",
            "v1.136.0",
            "v1.135.0",
            "v1.134.0",
            "v1.133.0",
            "v1.132.0",
            "v1.131.0",
            "v1.130.0",
            "v1.129.0",
            "v1.128.0",
            "v1.127.0",
            "v1.126.0",
            "v1.125.0",
            "v1.124.0",
            "v1.123.0",
            "v1.122.0",
            "v1.121.0",
            "v1.120.0",
            "v1.119.0",
            "v1.118.0",
            "v1.117.0",
            "v1.116.0",
            "v1.115.0",
            "v1.114.0",
            "v1.113.0",
            "v1.112.0",
            "v1.111.0",
            "v1.110.0",
            "v1.109.0",
            "v1.108.0",
            "v1.107.0",
            "v1.106.0",
            "v1.105.0",
            "v1.104.0",
            "v1.103.0",
            "v1.102.0",
            "v1.101.0",
            "v1.100.0",
            "v1.99.0",
            "v1.98.0",
            "v1.97.0",
            "v1.96.0",
            "v1.95.0",
            "v1.94.0",
            "v1.93.0",
            "v1.92.0",
            "v1.91.0",
            "v1.90.0",
            "v1.89.0",
            "v1.88.0",
            "v1.87.0",
            "v1.86.1",
            "v1.86.0",
            "v1.85.0",
            "v1.84.0",
            "v1.83.0",
            "v1.82.0",
            "v1.81.0",
            "v1.80.0",
            "v1.79.0",
            "v1.78.0",
            "v1.77.0",
            "v1.76.0",
            "v1.75.0",
            "v1.74.0",
            "v1.73.0",
            "v1.72.0",
            "v1.71.0",
            "v1.70.1",
            "v1.70.0",
            "v1.69.0",
            "v1.68.0",
            "v1.67.0",
            "v1.66.0",
            "v1.65.0",
            "v1.64.0",
            "v1.63.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115414.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.501452819Z",
      "provider": "osv",
      "references": [
        "https://aws.amazon.com/security/security-bulletins/2026-145-aws/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115414.json",
        "https://github.com/aws/aws-sam-cli/security/advisories/GHSA-44mq-wjrh-vpj6",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-115414",
        "https://github.com/aws/aws-sam-cli/releases/tag/v1.166.2"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "AMZN",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115414.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-115414",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 502966,
  "published_at": "2026-10-22T18:34:08.488+00:00"
}