{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-39326",
        "STATE": "PUBLIC",
        "TITLE": "kartverket/github-workflows's run-terraform allows for RCE via terraform plan"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "github-workflows",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 2.7.5"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "kartverket"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "kartverket/github-workflows are shared reusable workflows for GitHub Actions. Prior to version 2.7.5, all users of the `run-terraform` reusable workflow from the kartverket/github-workflows repo are affected by a code injection vulnerability. A malicious actor could potentially send a PR with a malicious payload leading to execution of arbitrary JavaScript code in the context of the workflow. Users should upgrade to at least version 2.7.5 to resolve the issue. As a workaround, review any pull requests from external users for malicious payloads before allowing them to trigger a build."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-94: Improper Control of Generation of Code ('Code Injection')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4",
                "refsource": "CONFIRM",
                "url": "https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4"
            },
            {
                "name": "https://github.com/kartverket/github-workflows/pull/19",
                "refsource": "MISC",
                "url": "https://github.com/kartverket/github-workflows/pull/19"
            },
            {
                "name": "https://github.com/kartverket/github-workflows/releases/tag/v2.7.5",
                "refsource": "MISC",
                "url": "https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-f9qj-7gh3-mhj4",
        "discovery": "UNKNOWN"
    }
}