{"id":"ALPINE-CVE-2024-1931","details":"NLnet Labs Unbound version 1.18.0 up to and including version 1.19.1 contain a vulnerability that can cause denial of service by a certain code path that can lead to an infinite loop. Unbound 1.18.0 introduced a feature that removes EDE records from responses with size higher than the client's advertised buffer size. Before removing all the EDE records however, it would try to see if trimming the extra text fields on those records would result in an acceptable size while still retaining the EDE codes. Due to an unchecked condition, the code that trims the text of the EDE records could loop indefinitely. This happens when Unbound would reply with attached EDE information on a positive reply and the client's buffer size is smaller than the needed space to include EDE records. The vulnerability can only be triggered when the 'ede: yes' option is used; non default configuration. From version 1.19.2 on, the code is fixed to avoid looping indefinitely.","modified":"2026-03-09T01:23:39.863415Z","published":"2024-03-07T10:15:07.037Z","upstream":["CVE-2024-1931"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2024-1931"}],"affected":[{"package":{"name":"unbound","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.1-r0","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}},{"package":{"name":"unbound","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.0-r1","1.17.1-r0","1.17.1-r1","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}},{"package":{"name":"unbound","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.0-r1","1.17.1-r0","1.17.1-r1","1.17.1-r2","1.17.1-r3","1.17.1-r4","1.18.0-r0","1.19.0-r0","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}},{"package":{"name":"unbound","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.0-r1","1.17.1-r0","1.17.1-r1","1.17.1-r2","1.17.1-r3","1.17.1-r4","1.18.0-r0","1.19.0-r0","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}},{"package":{"name":"unbound","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.0-r1","1.17.1-r0","1.17.1-r1","1.17.1-r2","1.17.1-r3","1.17.1-r4","1.18.0-r0","1.19.0-r0","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}},{"package":{"name":"unbound","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.0-r1","1.17.1-r0","1.17.1-r1","1.17.1-r2","1.17.1-r3","1.17.1-r4","1.18.0-r0","1.19.0-r0","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}},{"package":{"name":"unbound","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/unbound?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.2-r0"}]}],"versions":["1.10.0-r0","1.10.1-r0","1.10.1-r1","1.11.0-r0","1.12.0-r0","1.13.0-r0","1.13.0-r1","1.13.0-r2","1.13.0-r3","1.13.1-r0","1.13.1-r1","1.13.1-r2","1.13.2-r0","1.13.2-r1","1.13.2-r2","1.14.0-r0","1.14.0-r1","1.15.0-r0","1.16.0-r0","1.16.0-r1","1.16.1-r0","1.16.2-r0","1.16.2-r1","1.16.3-r0","1.17.0-r0","1.17.0-r1","1.17.1-r0","1.17.1-r1","1.17.1-r2","1.17.1-r3","1.17.1-r4","1.18.0-r0","1.19.0-r0","1.19.1-r0","1.4.10-r0","1.4.10-r1","1.4.10-r2","1.4.10-r3","1.4.13-r0","1.4.13-r1","1.4.13-r2","1.4.13-r3","1.4.14-r0","1.4.15-r0","1.4.16-r0","1.4.17-r0","1.4.18-r0","1.4.19-r0","1.4.19-r1","1.4.19-r2","1.4.20-r0","1.4.20-r1","1.4.20-r2","1.4.21-r0","1.4.21-r1","1.4.21-r2","1.4.22-r0","1.4.22-r1","1.5.1-r0","1.5.10-r0","1.5.10-r1","1.5.10-r2","1.5.2-r0","1.5.2-r1","1.5.3-r0","1.5.4-r0","1.5.6-r0","1.5.6-r1","1.5.6-r2","1.5.6-r3","1.5.6-r4","1.5.7-r0","1.5.7-r1","1.5.8-r0","1.5.8-r1","1.5.9-r0","1.5.9-r1","1.6.0-r0","1.6.0-r1","1.6.1-r0","1.6.1-r1","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.6.7-r1","1.6.7-r2","1.6.8-r0","1.7.0-r0","1.7.0-r1","1.7.0-r2","1.7.1-r0","1.7.3-r0","1.8.0-r0","1.8.1-r0","1.8.1-r1","1.8.3-r0","1.9.0-r0","1.9.1-r0","1.9.1-r1","1.9.1-r2","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.4-r0","1.9.4-r1","1.9.5-r0","1.9.5-r1","1.9.5-r2","1.9.5-r3","1.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-1931.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}