CVE-2018-5745
Medium · 4.9CVSS
4.9
EPSS
2.3%
Published
Oct 9, 2019
CISA due date
—
Cloudanix analysis
DNS software can unexpectedly stop working when it tries to update its security keys during a routine change.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
An assertion failure in the managed-keys implementation causes the DNS resolver process to terminate when a trust anchor's keys are replaced during rollover with an algorithm the server does not support.
Why it matters to the business
Unexpected outage of DNS resolution services that rely on automatic key management, resulting in loss of name service availability until the server is restarted or upgraded.
How an attack unfolds
An attacker with the ability to influence or observe a trust-anchor key rollover supplies or triggers replacement keys that use an unsupported algorithm; the server hits the assertion and exits, producing a denial-of-service condition.
How to fix it
Upgrade affected BIND installations to a version that correctly handles unsupported algorithms during managed-key rollover; the listed packages are reported fixed at version 0 and should be replaced with non-vulnerable releases.
How to confirm the fix worked
Confirm the running BIND version is newer than 9.11.5-P1 / 9.12.3-P1 / 9.13.6 (or equivalent supported preview) and that no assertion failures referencing managed-keys appear in logs after a simulated or real key rollover.
Typical attack path
- Identify a resolver using managed-keys for DNSSEC trust anchors
- Trigger or wait for a key-rollover event that introduces an unsupported algorithm
- Observe or cause the server to hit the assertion failure and terminate
How to detect it
Search DNS server logs for assertion failures mentioning managed-keys or trust anchors around the time of key-rollover events; correlate with process restarts or service outages.
What your security team should do
- Apply the fixed BIND version or disable managed-keys if automatic rollover is not required
- Monitor for unexpected named process terminations and assertion messages
- Review trust-anchor configurations to ensure only supported algorithms are configured
The record
"managed-keys" is a feature which allows a BIND resolver to automatically maintain the keys used by trust anchors which operators configure for use in DNSSEC validation. Due to an error in the managed-keys feature it is possible for a BIND server which uses managed-keys to exit due to an assertion failure if, during key rollover, a trust anchor's keys are replaced with keys which use an unsupported algorithm. Versions affected: BIND 9.9.0 -> 9.10.8-P1, 9.11.0 -> 9.11.5-P1, 9.12.0 -> 9.12.3-P1, and versions 9.9.3-S1 -> 9.11.5-S3 of BIND 9 Supported Preview Edition. Versions 9.13.0 -> 9.13.6 of the 9.13 development branch are also affected. Versions prior to BIND 9.9.0 have not been evaluated for vulnerability to CVE-2018-5745.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.11 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.12 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.13 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.14 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.15 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.16 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.17 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.18 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.19 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.20 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.21 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.22 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.6 | bind | 0 | 9.11.5_p4-r0 |
| Alpine:v3.7 | bind | 0 | 9.11.5_p4-r0 |
| Alpine:v3.8 | bind | 0 | 9.12.3_p4-r0 |
| Alpine:v3.9 | bind | 0 | 9.12.3_p4-r0 |
| Chainguard | bind | 0 | 0 |
| Chainguard | bind-dev | 0 | 0 |
| Chainguard | bind-dnssec-root | 0 | 0 |
| Chainguard | bind-dnssec-tools | 0 | 0 |
| Chainguard | bind-doc | 0 | 0 |
| Chainguard | bind-libs | 0 | 0 |
| Chainguard | bind-plugins | 0 | 0 |
| Chainguard | bind-tools | 0 | 0 |
| Debian:10 | bind9 | 0 | 1:9.11.5.P4+dfsg-1 |
| Debian:11 | bind9 | 0 | 1:9.11.5.P4+dfsg-1 |
| Debian:12 | bind9 | 0 | 1:9.11.5.P4+dfsg-1 |
| Debian:13 | bind9 | 0 | 1:9.11.5.P4+dfsg-1 |
| Debian:14 | bind9 | 0 | 1:9.11.5.P4+dfsg-1 |
| Debian:8 | bind9 | 0 | 1:9.9.5.dfsg-9+deb8u17 |
| Debian:9 | bind9 | 0 | 1:9.10.3.dfsg.P4-12.3+deb9u5 |
| Red Hat:enterprise_linux:7::client | bind | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-debuginfo | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-export-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-export-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-libs-lite | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-license | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-lite-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-pkcs11 | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-pkcs11-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-pkcs11-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-pkcs11-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-sdb | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-sdb-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::client | bind-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-debuginfo | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-export-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-export-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-libs-lite | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-license | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-lite-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-pkcs11 | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-pkcs11-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-pkcs11-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-pkcs11-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-sdb | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-sdb-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::computenode | bind-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-debuginfo | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-export-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-export-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-libs-lite | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-license | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-lite-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-pkcs11 | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-pkcs11-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-pkcs11-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-pkcs11-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-sdb | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-sdb-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::server | bind-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-debuginfo | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-export-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-export-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-libs-lite | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-license | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-lite-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-pkcs11 | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-pkcs11-devel | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-pkcs11-libs | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-pkcs11-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-sdb | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-sdb-chroot | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:7::workstation | bind-utils | 0 | 32:9.11.4-16.P2.el7 |
| Red Hat:enterprise_linux:8::appstream | bind | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-chroot | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-debugsource | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-export-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-export-libs | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-export-libs-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-libs | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-libs-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-libs-lite | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-libs-lite-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-license | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-lite-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11 | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11-libs | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11-libs-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11-utils | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-pkcs11-utils-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-sdb | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-sdb-chroot | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-sdb-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-utils | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | bind-utils-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::appstream | python3-bind | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-chroot | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-debugsource | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-export-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-export-libs | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-export-libs-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-libs | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-libs-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-libs-lite | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-libs-lite-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-license | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-lite-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11 | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11-devel | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11-libs | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11-libs-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11-utils | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-pkcs11-utils-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-sdb | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-sdb-chroot | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-sdb-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-utils | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | bind-utils-debuginfo | 0 | 32:9.11.4-26.P2.el8 |
| Red Hat:enterprise_linux:8::baseos | python3-bind | 0 | 32:9.11.4-26.P2.el8 |
| SUSE:Linux Enterprise Desktop 12 SP4 | bind | 0 | 9.11.2-3.10.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 | bind | 0 | 9.11.2-12.11.2 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | bind | 0 | 9.11.2-12.11.2 |
| SUSE:Linux Enterprise Module for Server Applications 15 | bind | 0 | 9.11.2-12.11.2 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP1 | bind | 0 | 9.11.2-12.11.2 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | bind | 0 | 9.9.6P1-0.51.15.4 |
| SUSE:Linux Enterprise Server 11 SP4-LTSS | bind | 0 | 9.9.6P1-0.51.15.4 |
| SUSE:Linux Enterprise Server 12 SP4 | bind | 0 | 9.11.2-3.10.1 |
| SUSE:Linux Enterprise Server 12-LTSS | bind | 0 | 9.9.9P1-28.42.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | bind | 0 | 9.11.2-3.10.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP4 | bind | 0 | 9.11.2-3.10.1 |
| Ubuntu:14.04:LTS | bind9 | 0 | 1:9.9.5.dfsg-3ubuntu0.19 |
| Ubuntu:16.04:LTS | bind9 | 0 | 1:9.10.3.dfsg.P4-8ubuntu1.12 |
| Ubuntu:18.04:LTS | bind9 | 0 | 1:9.11.3+dfsg-1ubuntu1.5 |
| Wolfi | bind | 0 | 0 |
| Wolfi | bind-dev | 0 | 0 |
| Wolfi | bind-dnssec-root | 0 | 0 |
| Wolfi | bind-dnssec-tools | 0 | 0 |
| Wolfi | bind-doc | 0 | 0 |
| Wolfi | bind-libs | 0 | 0 |
| Wolfi | bind-plugins | 0 | 0 |
| Wolfi | bind-tools | 0 | 0 |
| openSUSE:Leap 15.0 | bind | 0 | 9.11.2-lp151.11.3.1 |
| openSUSE:Leap 15.1 | bind | 0 | 9.11.2-lp151.11.3.1 |
| openSUSE:Tumbleweed | bind | 0 | 9.16.20-1.4 |
Related vulnerabilities
- CVE-2016-9131 named in ISC BIND 9.x before 9.9.9-P5, 9.10.x before 9.10.4-P5, and 9.11.x before… Also affects bind
- CVE-2016-9147 named in ISC BIND 9.9.9-P4, 9.9.9-S6, 9.10.4-P4, and 9.11.0-P1 allows remote attackers to… Also affects bind
- CVE-2016-9444 named in ISC BIND 9.x before 9.9.9-P5, 9.10.x before 9.10.4-P5, and 9.11.x before… Also affects bind
- CVE-2022-2795 By flooding the target resolver with queries exploiting this flaw an attacker can… Also affects bind
- CVE-2022-38178 By spoofing the target resolver with responses that have a malformed EdDSA signature, an… Also affects bind
- CVE-2022-38177 By spoofing the target resolver with responses that have a malformed ECDSA signature, an… Also affects bind
- CVE-2023-2911 If the `recursive-clients` quota is reached on a BIND 9 resolver configured with both… Also affects bind
- CVE-2023-50868 The Closest Encloser Proof aspect of the DNS protocol (in RFC 5155 when RFC 9276 guidance… Also affects bind