{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-40776",
        "assignerOrgId": "404fd4d2-a609-4245-b543-2c944a302a22",
        "state": "PUBLISHED",
        "assignerShortName": "isc",
        "dateReserved": "2025-04-16T08:44:49.856Z",
        "datePublished": "2025-07-16T13:41:01.337Z",
        "dateUpdated": "2025-07-22T14:55:04.420Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "404fd4d2-a609-4245-b543-2c944a302a22",
                "shortName": "isc",
                "dateUpdated": "2025-07-16T13:41:01.337Z"
            },
            "title": "Birthday Attack against Resolvers supporting ECS",
            "datePublic": "2025-07-16T00:00:00.000Z",
            "affected": [
                {
                    "vendor": "ISC",
                    "product": "BIND 9",
                    "versions": [
                        {
                            "version": "9.11.3-S1",
                            "lessThanOrEqual": "9.16.50-S1",
                            "status": "affected",
                            "versionType": "custom"
                        },
                        {
                            "version": "9.18.11-S1",
                            "lessThanOrEqual": "9.18.37-S1",
                            "status": "affected",
                            "versionType": "custom"
                        },
                        {
                            "version": "9.20.9-S1",
                            "lessThanOrEqual": "9.20.10-S1",
                            "status": "affected",
                            "versionType": "custom"
                        },
                        {
                            "version": "9.0.0",
                            "lessThanOrEqual": "9.20.10",
                            "status": "unaffected",
                            "versionType": "custom"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "scope": "CHANGED",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N",
                        "baseScore": 8.6,
                        "baseSeverity": "HIGH"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-349",
                            "description": "CWE-349 Acceptance of Extraneous Untrusted Data With Trusted Data"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A `named` caching resolver that is configured to send ECS (EDNS Client Subnet) options may be vulnerable to a cache-poisoning attack.\nThis issue affects BIND 9 versions 9.11.3-S1 through 9.16.50-S1, 9.18.11-S1 through 9.18.37-S1, and 9.20.9-S1 through 9.20.10-S1."
                }
            ],
            "impacts": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "A resolver configured to send ECS options to authoritative servers can be compelled to make queries that slightly increase the odds of guessing the source port and other details necessary to bypass the original birthday cache poisoning attack mitigations. As a result of this weakness, a resolver with ECS enabled is more vulnerable to successful cache poisoning via spoofed query responses than one that does not implement this feature."
                        }
                    ]
                }
            ],
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Disable ECS in BIND by removing the `ecs-zones` option from `named.conf`."
                }
            ],
            "exploits": [
                {
                    "lang": "en",
                    "value": "We are not aware of any active exploits."
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Upgrade to the patched release most closely related to your current version of BIND 9: 9.18.38-S1 or 9.20.11-S1."
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "ISC would like to thank Xiang Li from AOSP Lab of Nankai University for bringing this vulnerability to our attention."
                }
            ],
            "references": [
                {
                    "url": "https://kb.isc.org/docs/cve-2025-40776",
                    "name": "CVE-2025-40776",
                    "tags": [
                        "vendor-advisory"
                    ]
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-07-22T14:54:56.292632Z",
                                "id": "CVE-2025-40776",
                                "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": "2025-07-22T14:55:04.420Z"
                }
            }
        ]
    }
}