CVEfocus › CVE database › CVE-2017-3142

CVE-2017-3142An error in TSIG authentication can permit unauthorized zone transfers

CVSS 5.3 MediumEPSS 5.4% (higher than 93% of CVEs)Published 2019-01-16Updated 2024-09-16Assigner: isc

An attacker who is able to send and receive messages to an authoritative DNS server and who has knowledge of a valid TSIG key name may be able to circumvent TSIG authentication of AXFR requests via a carefully constructed request packet. A server that relies solely on TSIG keys for protection with no other ACL protection could be manipulated into: providing an AXFR of a zone to an unauthorized recipient or accepting bogus NOTIFY packets. Affects BIND 9.4.0->9.8.8, 9.9.0->9.9.10-P1, 9.10.0->9.10.5-P1, 9.11.0->9.11.1-P1, 9.9.3-S1->9.9.10-S2, 9.10.5-S1->9.10.5-S2.

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

30Fixed
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04bind9Fixed1:9.10.3.dfsg.P4-8ubuntu1.7UBUNTU-CVE-2017-3142
Ubuntu 14.04bind9Fixed1:9.9.5.dfsg-3ubuntu0.15UBUNTU-CVE-2017-3142
Debian 14bind9Fixed1:9.10.3.dfsg.P4-12.4DEBIAN-CVE-2017-3142
Debian 13bind9Fixed1:9.10.3.dfsg.P4-12.4DEBIAN-CVE-2017-3142
Debian 12bind9Fixed1:9.10.3.dfsg.P4-12.4DEBIAN-CVE-2017-3142
Red Hat Enterprise Linux 7bindFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-chrootFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-develFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-libsFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-libs-liteFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-licenseFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-lite-develFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-pkcs11Fixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-pkcs11-develFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-pkcs11-libsFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-pkcs11-utilsFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-sdbFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-sdb-chrootFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 7bind-utilsFixed32:9.9.4-50.el7_3.1RHSA-2017:1680
Red Hat Enterprise Linux 6bindFixed32:9.8.2-0.62.rc1.el6_9.4RHSA-2017:1679
Red Hat Enterprise Linux 6bind-chrootFixed32:9.8.2-0.62.rc1.el6_9.4RHSA-2017:1679
Red Hat Enterprise Linux 6bind-develFixed32:9.8.2-0.62.rc1.el6_9.4RHSA-2017:1679
Red Hat Enterprise Linux 6bind-libsFixed32:9.8.2-0.62.rc1.el6_9.4RHSA-2017:1679
Red Hat Enterprise Linux 6bind-sdbFixed32:9.8.2-0.62.rc1.el6_9.4RHSA-2017:1679
Red Hat Enterprise Linux 6bind-utilsFixed32:9.8.2-0.62.rc1.el6_9.4RHSA-2017:1679
Red Hat Enterprise Linux 5bindNot affected
Red Hat Enterprise Linux 5bind97Will not fix
Will not fix
Alpine Linux 3.7bindFixed9.11.3-r0ALPINE-CVE-2017-3142
Alpine Linux 3.6bindFixed9.11.1_p1-r1ALPINE-CVE-2017-3142
Alpine Linux 3.5bindFixed9.10.4_p8-r1ALPINE-CVE-2017-3142
Alpine Linux 3.4bindFixed9.10.4_p8-r1ALPINE-CVE-2017-3142
Alpine Linux 3.3bindFixed9.10.4_p8-r1ALPINE-CVE-2017-3142

What the vendor says

As published in the CVE record by isc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to the patched release most closely related to your current version of BIND. These can all be downloaded from http://www.isc.org/downloads. BIND 9 version 9.9.10-P2 BIND 9 version 9.10.5-P2 BIND 9 version 9.11.1-P2 BIND Supported Preview Edition is a special feature preview branch of BIND provided to eligible ISC support customers. BIND 9 version 9.9.10-S3 BIND 9 version 9.10.5-S3

Workaround: The effects of this vulnerability can be mitigated by using Access Control Lists (ACLs) that require both address range validation and use of TSIG authentication in conjunction. For information on how to configure this type of compound authentication control, please see: https://kb.isc.org/article/AA-00723/0/Using-Access-Control-Lists-ACLs-with-both-addresses-and-keys.html. (Note that this technique may not be effective against bogus NOTIFY packets if an attacker is able to reach the target DNS server whilst using a spoofed sending address).

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.