{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40778 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-40778 is a high-severity vulnerability in ISC BIND 9, published on 22 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40778 and fix it if it is affected.\n\nWhat it is: CVE-2025-40778 is a high-severity vulnerability in ISC BIND 9, published on 22 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40778 exists.\n\nAffected product: ISC BIND 9. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-40778/ (Markdown: https://insights.sbomify.com/CVE-2025-40778/index.md)","id":"CVE-2025-40778","markdown":"https://insights.sbomify.com/CVE-2025-40778/index.md","name":"CVE-2025-40778","record":{"aliases":["ALPINE-CVE-2025-40778","ALSA-2025:19835","AZL-68727","AZL-68736","BELL-CVE-2025-40778","CLSA-2025-1764321323","CLSA-2025-1764321653","CLSA-2025-1764584370","CLSA-2026-1776935009","CLSA-2026-1777287060","CLSA-2026-1777479919","CLSA-2026-1781169600","DEBIAN-CVE-2025-40778","GHSA-xmqp-6cj2-2hh3","MINI-p2qp-c3w4-xr34","OESA-2025-2759","OESA-2025-2842","OESA-2025-2843","OESA-2025-2875","OESA-2026-1601","OESA-2026-1602","RHSA-2025:19835","RHSA-2025:21735","RHSA-2025:21736","RHSA-2025:22205","RLSA-2025:19835","SUSE-SU-2025:3976-1","UBUNTU-CVE-2025-40778"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"BIND DNS server","requires_auth":"none","summary":"Attackers can poison the DNS cache by injecting forged records due to lenient validation of unsolicited answers in BIND.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"isc","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-349","name":"Acceptance of Extraneous Untrusted Data With Trusted Data"}],"description":"Under certain circumstances, BIND is too lenient when accepting records from answers, allowing an attacker to inject forged data into the cache.\nThis issue affects BIND 9 versions 9.11.0 through 9.16.50, 9.18.0 through 9.18.39, 9.20.0 through 9.20.13, 9.21.0 through 9.21.12, 9.11.3-S1 through 9.16.50-S1, 9.18.11-S1 through 9.18.39-S1, and 9.20.9-S1 through 9.20.13-S1.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_els:7","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.6::baseos","Red Hat:rhel_tus:8.8::appstream","Red Hat:rhel_tus:8.8::baseos","Rocky Linux:8","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5"],"exploits":{"exploitdb":0,"first_seen":"2025-10-29","github_poc":3,"max_poc_stars":6,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-10-29T16:05:25Z","kind":"github_poc","ref":"https://github.com/nehkark/CVE-2025-40778","stars":6,"title":"POC CVE-2025-40778: Cache Poisoning BIND 9 👾"},{"date":"2026-02-04T23:13:27Z","kind":"github_poc","ref":"https://github.com/nicholasC03/DNS-Poisoning-Triage-Lab","stars":1,"title":"Forensic triage of DNS cache poisoning in legacy hardware. Includes PCAP analysis of 839-byte unsolicited record injections, CVE-2025-40778 mapping, and remediation via hardened Unbound (DoT) on Arch Linux."},{"date":"2026-01-09T19:27:07Z","kind":"github_poc","ref":"https://github.com/sirbuvladste/BIND-9-Cache-Poisoning-PoC---CVE-2025-40778","stars":0,"title":"Proof of Concept for CVE-2025-40778: BIND 9 DNS Cache Poisoning via unsolicited Additional Section records."}],"tier":"weaponised"},"has_fix":true,"headline":"Cache poisoning attacks with unsolicited RRs","id":"CVE-2025-40778","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"other","year":"2025"},"n_packages":117,"n_references":1,"next":{"headline":"Kea crash upon interaction between specific client options and subnet selection","id":"CVE-2025-40779"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind","purl":"pkg:rpm/almalinux/bind","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-chroot","purl":"pkg:rpm/almalinux/bind-chroot","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-devel","purl":"pkg:rpm/almalinux/bind-devel","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-export-devel","purl":"pkg:rpm/almalinux/bind-export-devel","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-export-libs","purl":"pkg:rpm/almalinux/bind-export-libs","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-libs","purl":"pkg:rpm/almalinux/bind-libs","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-libs-lite","purl":"pkg:rpm/almalinux/bind-libs-lite","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-license","purl":"pkg:rpm/almalinux/bind-license","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-lite-devel","purl":"pkg:rpm/almalinux/bind-lite-devel","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11","purl":"pkg:rpm/almalinux/bind-pkcs11","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-devel","purl":"pkg:rpm/almalinux/bind-pkcs11-devel","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-libs","purl":"pkg:rpm/almalinux/bind-pkcs11-libs","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-utils","purl":"pkg:rpm/almalinux/bind-pkcs11-utils","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-sdb","purl":"pkg:rpm/almalinux/bind-sdb","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-sdb-chroot","purl":"pkg:rpm/almalinux/bind-sdb-chroot","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-utils","purl":"pkg:rpm/almalinux/bind-utils","source":"ALSA-2025:19835"},{"ecosystem":"AlmaLinux:8","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"python3-bind","purl":"pkg:rpm/almalinux/python3-bind","source":"ALSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind","purl":"pkg:rpm/redhat/bind","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-chroot","purl":"pkg:rpm/redhat/bind-chroot","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-debuginfo","purl":"pkg:rpm/redhat/bind-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-debugsource","purl":"pkg:rpm/redhat/bind-debugsource","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-devel","purl":"pkg:rpm/redhat/bind-devel","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-export-libs-debuginfo","purl":"pkg:rpm/redhat/bind-export-libs-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-libs","purl":"pkg:rpm/redhat/bind-libs","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-libs-debuginfo","purl":"pkg:rpm/redhat/bind-libs-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-libs-lite","purl":"pkg:rpm/redhat/bind-libs-lite","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-libs-lite-debuginfo","purl":"pkg:rpm/redhat/bind-libs-lite-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-license","purl":"pkg:rpm/redhat/bind-license","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-lite-devel","purl":"pkg:rpm/redhat/bind-lite-devel","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11","purl":"pkg:rpm/redhat/bind-pkcs11","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-debuginfo","purl":"pkg:rpm/redhat/bind-pkcs11-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-devel","purl":"pkg:rpm/redhat/bind-pkcs11-devel","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-libs","purl":"pkg:rpm/redhat/bind-pkcs11-libs","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-libs-debuginfo","purl":"pkg:rpm/redhat/bind-pkcs11-libs-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-utils","purl":"pkg:rpm/redhat/bind-pkcs11-utils","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-pkcs11-utils-debuginfo","purl":"pkg:rpm/redhat/bind-pkcs11-utils-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-sdb","purl":"pkg:rpm/redhat/bind-sdb","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-sdb-chroot","purl":"pkg:rpm/redhat/bind-sdb-chroot","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-sdb-debuginfo","purl":"pkg:rpm/redhat/bind-sdb-debuginfo","source":"RHSA-2025:19835"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["32:9.11.36-16.el8_10.6"],"introduced":["0"],"last_affected":[],"package":"bind-utils","purl":"pkg:rpm/redhat/bind-utils","source":"RHSA-2025:19835"}],"prev":{"headline":"A possible assertion failure when 'stale-answer-client-timeout' is set to '0'","id":"CVE-2025-40777"},"products":["BIND 9"],"published":"2025-10-22","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["ISC"]},"summary":"Attackers can poison the DNS cache by injecting forged records due to lenient validation of unsolicited answers in BIND.","url":"https://insights.sbomify.com/CVE-2025-40778/"}