{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-66786",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2026-07-27T17:51:24.885Z",
        "datePublished": "2026-09-02T17:57:19.436Z",
        "dateUpdated": "2026-09-03T04:41:49.247Z"
    },
    "containers": {
        "cna": {
            "title": "Submariner: submariner: ipsec.conf stanza injection via remote-supplied cablename and subnets",
            "metrics": [
                {
                    "other": {
                        "content": {
                            "value": "Moderate",
                            "namespace": "https://access.redhat.com/security/updates/classification/"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 9.1,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "HIGH",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A flaw was found in submariner. In cert-auth mode, the connection configuration is built using free-form strings from the Custom Resource Definition (CRD) without proper validation. A malicious cluster can exploit this by publishing a CableName that includes newlines and ipsec.conf directives. This allows an attacker to inject arbitrary configuration parameters or execute commands through leftupdown hooks, leading to remote code execution as root on the gateway node."
                }
            ],
            "affected": [
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/lighthouse-agent-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788023916",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/lighthouse-coredns-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788023940",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/subctl-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788105072",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/submariner-gateway-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788043964",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/submariner-globalnet-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788043961",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/submariner-rhel9-operator",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788073481",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2.17",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhacm2/submariner-route-agent-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "1788043970",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:acm:2.17::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "rhacm2/submariner-addon-rhel9",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:acm:2"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Advanced Cluster Management for Kubernetes 2",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "rhacm2/submariner-operator-bundle",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:acm:2"
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://access.redhat.com/errata/RHSA-2026:63016",
                    "name": "RHSA-2026:63016",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/security/cve/CVE-2026-66786",
                    "tags": [
                        "vdb-entry",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2507531",
                    "name": "RHBZ#2507531",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ]
                }
            ],
            "datePublic": "2026-08-21T16:43:00.583Z",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "description": "Improper Control of Generation of Code ('Code Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "x_redhatCweChain": "CWE-94: Improper Control of Generation of Code ('Code Injection')",
            "workarounds": [
                {
                    "lang": "en",
                    "value": "If Submariner certificate-based IPsec authentication mode is enabled (`IPSecCertAuthMode: true` in the SubmarinerConfig), administrators can mitigate this flaw by switching to the default pre-shared key (PSK) authentication mode. Set `IPSecCertAuthMode: false` (or remove the field to use its default value) in the SubmarinerConfig CR and redeploy the Submariner gateway pods. PSK mode provides equivalent inter-cluster IPsec tunnel encryption and is not affected by this vulnerability. Note that disabling cert-auth mode means Submariner will no longer integrate with OVN IPsec's certificate infrastructure and will manage its own PSK-based authentication independently."
                }
            ],
            "timeline": [
                {
                    "lang": "en",
                    "time": "2026-07-27T00:00:00.000Z",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2026-08-21T16:43:00.583Z",
                    "value": "Made public."
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2026-09-03T04:41:49.247Z"
            },
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}