{"id":"ALPINE-CVE-2021-33913","details":"libspf2 before 1.2.11 has a heap-based buffer overflow that might allow remote attackers to execute arbitrary code (via an unauthenticated e-mail message from anywhere on the Internet) with a crafted SPF DNS record, because of SPF_record_expand_data in spf_expand.c. The amount of overflowed data depends on the relationship between the length of an entire domain name and the length of its leftmost label. The vulnerable code may be part of the supply chain of a site's e-mail infrastructure (e.g., with additional configuration, Exim can use libspf2; the Postfix web site links to unofficial patches for use of libspf2 with Postfix; older versions of spfquery relied on libspf2) but most often is not.","modified":"2026-03-09T01:22:06.349498Z","published":"2022-01-19T18:15:07.830Z","upstream":["CVE-2021-33913"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-33913"}],"affected":[{"package":{"name":"libspf2","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.json"}},{"package":{"name":"libspf2","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libspf2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.11-r0"}]}],"versions":["1.2.10-r0","1.2.10-r1","1.2.10-r2","1.2.10-r3","1.2.10-r4","1.2.10-r5","1.2.10-r6","1.2.10-r7","1.2.9-r0","1.2.9-r1","1.2.9-r2","1.2.9-r3","1.2.9-r4","1.2.9-r5","1.2.9-r6","1.2.9-r7","1.2.9-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-33913.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:H/I:H/A:H"}]}