{"id":"CVE-2018-5738","details":"Change #4777 (introduced in October 2017) introduced an unforeseen issue in releases which were issued after that date, affecting which clients are permitted to make recursive queries to a BIND nameserver. The intended (and documented) behavior is that if an operator has not specified a value for the \"allow-recursion\" setting, it SHOULD default to one of the following: none, if \"recursion no;\" is set in named.conf; a value inherited from the \"allow-query-cache\" or \"allow-query\" settings IF \"recursion yes;\" (the default for that setting) AND match lists are explicitly set for \"allow-query-cache\" or \"allow-query\" (see the BIND9 Administrative Reference Manual section 6.2 for more details); or the intended default of \"allow-recursion {localhost; localnets;};\" if \"recursion yes;\" is in effect and no values are explicitly set for \"allow-query-cache\" or \"allow-query\". However, because of the regression introduced by change #4777, it is possible when \"recursion yes;\" is in effect and no match list values are provided for \"allow-query-cache\" or \"allow-query\" for the setting of \"allow-recursion\" to inherit a setting of all hosts from the \"allow-query\" setting default, improperly permitting recursion to all clients. Affects BIND 9.9.12, 9.10.7, 9.11.3, 9.12.0-\u003e9.12.1-P2, the development release 9.13.0, and also releases 9.9.12-S1, 9.10.7-S1, 9.11.3-S1, and 9.11.3-S2 from BIND 9 Supported Preview Edition.","modified":"2026-10-24T10:30:24.816104299Z","published":"2019-01-16T20:29:00.907Z","database_specific":{"unresolved_ranges":[{"vendor_product":"canonical:ubuntu_linux","cpes":["cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"],"extracted_events":[{"range":[{"introduced":"18.04"},{"last_affected":"18.04"}],"source":"CPE_STRING"}]},{"extracted_events":[{"source":"CPE_STRING","range":[{"introduced":"9.11.3-s2"},{"last_affected":"9.11.3-s2"},{"introduced":"9.11.3-s2"},{"last_affected":"9.11.3-s2"}]}],"vendor_product":"isc:bind","cpes":["cpe:2.3:a:isc:bind:9.11.3:s2:*:*:*:*:*:*"]}]},"references":[{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1041115"},{"type":"ADVISORY","url":"https://kb.isc.org/docs/aa-01616"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201903-13"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20190830-0002/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3683-1/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/isc-projects/bind9","events":[{"introduced":"4eb49c48823a2abbe0b3784305906cce5f520a4c"},{"last_affected":"29b3a7d84240a51099490c0f39ae537f4e0d6a7a"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"9.9.12"},{"last_affected":"9.9.12"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.9.12:*:*:*:*:*:*:*"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.9.12:s1:*:*:*:*:*:*","range":[{"introduced":"9.9.12-s1"},{"last_affected":"9.9.12-s1"}]},{"range":[{"introduced":"9.10.7"},{"last_affected":"9.10.7"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.10.7:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:isc:bind:9.10.7:s1:*:*:*:*:*:*","range":[{"introduced":"9.10.7-s1"},{"last_affected":"9.10.7-s1"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.11.3:*:*:*:*:*:*:*","range":[{"introduced":"9.11.3"},{"last_affected":"9.11.3"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.11.3:s1:*:*:*:*:*:*","range":[{"introduced":"9.11.3-s1"},{"last_affected":"9.11.3-s1"}]},{"cpe":"cpe:2.3:a:isc:bind:9.12.0:*:*:*:*:*:*:*","range":[{"introduced":"9.12.0"},{"last_affected":"9.12.0"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:a1:*:*:*:*:*:*","range":[{"introduced":"9.12.0-a1"},{"last_affected":"9.12.0-a1"}]},{"range":[{"introduced":"9.12.0-b1"},{"last_affected":"9.12.0-b1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:b1:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:isc:bind:9.12.0:b2:*:*:*:*:*:*","range":[{"introduced":"9.12.0-b2"},{"last_affected":"9.12.0-b2"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:rc1:*:*:*:*:*:*","range":[{"introduced":"9.12.0-rc1"},{"last_affected":"9.12.0-rc1"}]},{"range":[{"introduced":"9.12.0-rc3"},{"last_affected":"9.12.0-rc3"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:rc3:*:*:*:*:*:*"},{"range":[{"introduced":"9.12.1"},{"last_affected":"9.12.1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.1:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:isc:bind:9.12.1:p1:*:*:*:*:*:*","range":[{"introduced":"9.12.1-p1"},{"last_affected":"9.12.1-p1"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.12.1:p2:*:*:*:*:*:*","range":[{"introduced":"9.12.1-p2"},{"last_affected":"9.12.1-p2"}],"source":"CPE_STRING"},{"range":[{"introduced":"9.13.0"},{"last_affected":"9.13.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.13.0:*:*:*:*:*:*:*"}]}}],"versions":["9.10.7","9.10.7-s1","9.11.3","9.11.3-s1","9.12.0","9.12.0-a1","9.12.0-b2","9.12.0-rc1","9.12.0-rc3","9.12.1","9.12.1-p1","9.12.1-p2","9.13.0","9.9.12","9.9.12-s1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5738.json"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.isc.org/isc-projects/bind9","events":[{"introduced":"4eb49c48823a2abbe0b3784305906cce5f520a4c"},{"last_affected":"29b3a7d84240a51099490c0f39ae537f4e0d6a7a"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:isc:bind:9.9.12:*:*:*:*:*:*:*","range":[{"introduced":"9.9.12"},{"last_affected":"9.9.12"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.9.12:s1:*:*:*:*:*:*","range":[{"introduced":"9.9.12-s1"},{"last_affected":"9.9.12-s1"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.10.7:*:*:*:*:*:*:*","range":[{"introduced":"9.10.7"},{"last_affected":"9.10.7"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.10.7:s1:*:*:*:*:*:*","range":[{"introduced":"9.10.7-s1"},{"last_affected":"9.10.7-s1"}],"source":"CPE_STRING"},{"range":[{"introduced":"9.11.3"},{"last_affected":"9.11.3"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.11.3:*:*:*:*:*:*:*"},{"range":[{"introduced":"9.11.3-s1"},{"last_affected":"9.11.3-s1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.11.3:s1:*:*:*:*:*:*"},{"range":[{"introduced":"9.12.0"},{"last_affected":"9.12.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:*:*:*:*:*:*:*"},{"range":[{"introduced":"9.12.0-a1"},{"last_affected":"9.12.0-a1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:a1:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:isc:bind:9.12.0:b1:*:*:*:*:*:*","range":[{"introduced":"9.12.0-b1"},{"last_affected":"9.12.0-b1"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:b2:*:*:*:*:*:*","range":[{"introduced":"9.12.0-b2"},{"last_affected":"9.12.0-b2"}]},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:rc1:*:*:*:*:*:*","range":[{"introduced":"9.12.0-rc1"},{"last_affected":"9.12.0-rc1"}]},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.12.0:rc3:*:*:*:*:*:*","range":[{"introduced":"9.12.0-rc3"},{"last_affected":"9.12.0-rc3"}]},{"cpe":"cpe:2.3:a:isc:bind:9.12.1:*:*:*:*:*:*:*","range":[{"introduced":"9.12.1"},{"last_affected":"9.12.1"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.12.1:p1:*:*:*:*:*:*","range":[{"introduced":"9.12.1-p1"},{"last_affected":"9.12.1-p1"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:isc:bind:9.12.1:p2:*:*:*:*:*:*","range":[{"introduced":"9.12.1-p2"},{"last_affected":"9.12.1-p2"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:isc:bind:9.13.0:*:*:*:*:*:*:*","range":[{"introduced":"9.13.0"},{"last_affected":"9.13.0"}]}]}}],"versions":["9.10.7","9.10.7-s1","9.11.3","9.11.3-s1","9.12.0","9.12.0-a1","9.12.0-b2","9.12.0-rc1","9.12.0-rc3","9.12.1","9.12.1-p1","9.12.1-p2","9.13.0","9.9.12","9.9.12-s1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5738.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}