SecurityContext

CVE-2021-25216: BIND - Buffer Overflow

  • Cve: CVE-2021-25216
  • Name: BIND - Buffer Overflow
  • Description: In BIND 9.5.0 -> 9.11.29, 9.12.0 -> 9.16.13, and versions BIND 9.11.3-S1 -> 9.11.29-S1 and 9.16.8-S1 -> 9.16.13-S1 of BIND Supported Preview Edition, as well as release versions 9.17.0 -> 9.17.1 of the BIND 9.17 development branch, BIND servers are vulnerable if they are running an affected version and are configured to use GSS-TSIG features. In a configuration which uses BIND's default settings the vulnerable code path is not exposed, but a server can be rendered vulnerable by explicitly setting values for the tkey-gssapi-keytab or tkey-gssapi-credential configuration options. Although the default configuration is not vulnerable, GSS-TSIG is frequently used in networks where BIND is integrated with Samba, as well as in mixed-server environments that combine BIND servers with Active Directory domain controllers. For servers that meet these conditions, the ISC SPNEGO implementation is vulnerable to various attacks, depending on the CPU architecture for which BIND was built: For named binaries compiled for 64-bit platforms, this flaw can be used to trigger a buffer over-read, leading to a server crash. For named binaries compiled for 32-bit platforms, this flaw can be used to trigger a server crash due to a buffer overflow and possibly also to achieve remote code execution. We have determined that standard SPNEGO implementations are available in the MIT and Heimdal Kerberos libraries, which support a broad range of operating systems, rendering the ISC implementation unnecessary and obsolete. Therefore, to reduce the attack surface for BIND users, we will be removing the ISC SPNEGO implementation in the April releases of BIND 9.11 and 9.16 (it had already been dropped from BIND 9.17). We would not normally remove something from a stable ESV (Extended Support Version) of BIND, but since system libraries can replace the ISC SPNEGO implementation, we have made an exception in this case for reasons of stability and security.
  • Impact: Attackers can cause server crashes or remote code execution via GSS-TSIG, impacting server availability and security.
  • Remediation: Update to the latest BIND version where ISC SPNEGO is removed, or disable GSS-TSIG features if not needed.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.82992
  • Epss percentile: 0.99677
  • Assignee: [email protected]
  • Published at: 2021-04-29T01:15:08Z
  • Age in days: 2035
  • Modified at: 2026-06-17T03:41:39Z
  • Patch available: yes
  • References total: 9
  • Products total: 14
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25216
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-125Out-of-bounds Read

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatch, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/04/29/1Mailing List, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/04/29/2Mailing List, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/04/29/3Mailing List, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/04/29/4Mailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/05/msg00001.htmlMailing List, Third Party Advisory
https://security.netapp.com/advisory/ntap-20210521-0006/Third Party Advisory
https://www.debian.org/security/2021/dsa-4909Third Party Advisory
https://www.zerodayinitiative.com/advisories/ZDI-21-657/Third Party Advisory, VDB Entry

Products

Same in every row:

  • Sources: nvd
ProductAffectedPlatform boundUrl
isc:bind>= 9.17.0, < 9.17.12; >= 9.12.0, < 9.16.15; = 9.16.13 s1; = 9.16.11 s1; = 9.16.8 s1; >= 9.0.0, < 9.11.31; = 9.11.29 s1; = 9.11.27 s1; = 9.11.21 s1; = 9.11.12 s1; = 9.11.8 s1; = 9.11.7 s1; = 9.11.6 s1; = 9.11.5 s3; = 9.11.5 s5; = 9.11.5 s6; = 9.11.3 s1; = 9.10.7 s1; = 9.10.5 s1; = 9.9.13 s1; = 9.9.12 s1; = 9.9.3 s1no/v1/products/isc/bind
debian:debian_linux= 10.0, = 9.0no/v1/products/debian/debian_linux
netapp:active_iq_unified_managerall versionsno/v1/products/netapp/active_iq_unified_manager
netapp:cloud_backupall versionsno/v1/products/netapp/cloud_backup
netapp:h700s_firmwareall versionsyes/v1/products/netapp/h700s_firmware
netapp:h300s_firmwareall versionsyes/v1/products/netapp/h300s_firmware
netapp:h410s_firmwareall versionsyes/v1/products/netapp/h410s_firmware
netapp:h500s_firmwareall versionsyes/v1/products/netapp/h500s_firmware
netapp:h700e_firmwareall versionsyes/v1/products/netapp/h700e_firmware
netapp:h300e_firmwareall versionsyes/v1/products/netapp/h300e_firmware

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since