{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-39305",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-06-21T18:15:22.259Z",
        "datePublished": "2024-07-01T21:10:23.566Z",
        "dateUpdated": "2024-08-02T04:19:20.740Z"
    },
    "containers": {
        "cna": {
            "title": "Envoy Proxy use after free when route hash policy is configured with cookie attributes",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-416",
                            "lang": "en",
                            "description": "CWE-416: Use After Free",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 6.5,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f"
                },
                {
                    "name": "https://github.com/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518"
                },
                {
                    "name": "https://github.com/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45"
                },
                {
                    "name": "https://github.com/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5"
                },
                {
                    "name": "https://github.com/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb"
                }
            ],
            "affected": [
                {
                    "vendor": "envoyproxy",
                    "product": "envoy",
                    "versions": [
                        {
                            "version": ">= 1.30.0, < 1.30.4",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.29.0, < 1.29.7",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.28.0, < 1.28.5",
                            "status": "affected"
                        },
                        {
                            "version": "< 1.27.7",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-07-01T21:10:23.566Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Envoy is a cloud-native, open source edge and service proxy. Prior to versions 1.30.4, 1.29.7, 1.28.5, and 1.27.7. Envoy references already freed memory when route hash policy is configured with cookie attributes. Note that this vulnerability has been fixed in the open as the effect would be immediately apparent if it was configured. Memory allocated for holding attribute values is freed after configuration was parsed. During request processing Envoy will attempt to copy content of de-allocated memory into request cookie header. This can lead to arbitrary content of Envoy's memory to be sent to the upstream service or abnormal process termination. This vulnerability is fixed in Envoy versions v1.30.4, v1.29.7, v1.28.5, and v1.27.7. As a workaround, do not use cookie attributes in route action hash policy."
                }
            ],
            "source": {
                "advisory": "GHSA-fp35-g349-h66f",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "envoyproxy",
                        "product": "envoy",
                        "cpes": [
                            "cpe:2.3:a:envoyproxy:envoy:1.28.0:*:*:*:*:*:*:*",
                            "cpe:2.3:a:envoyproxy:envoy:1.29.0:*:*:*:*:*:*:*",
                            "cpe:2.3:a:envoyproxy:envoy:1.30.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "1.28.0",
                                "status": "affected",
                                "lessThan": "1.28.5",
                                "versionType": "custom"
                            },
                            {
                                "version": "1.29.0",
                                "status": "affected",
                                "lessThan": "1.29.7",
                                "versionType": "custom"
                            },
                            {
                                "version": "1.30.0",
                                "status": "affected",
                                "lessThan": "1.30.4",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "envoyproxy",
                        "product": "envoy",
                        "cpes": [
                            "cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "1.27.7",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-07-31T20:29:30.709681Z",
                                "id": "CVE-2024-39305",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-31T20:34:09.900Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T04:19:20.740Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f"
                    },
                    {
                        "name": "https://github.com/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518"
                    },
                    {
                        "name": "https://github.com/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45"
                    },
                    {
                        "name": "https://github.com/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5"
                    },
                    {
                        "name": "https://github.com/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb"
                    }
                ]
            }
        ]
    }
}