{"id":"ALPINE-CVE-2017-16879","details":"Stack-based buffer overflow in the _nc_write_entry function in tinfo/write_entry.c in ncurses 6.0 allows attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted terminfo file, as demonstrated by tic.","modified":"2025-12-03T22:39:17.796657Z","published":"2017-11-22T22:29:00.223Z","upstream":["CVE-2017-16879"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2017-16879"}],"affected":[{"package":{"name":"ncurses","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.4","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0-r8","6.0_p20170701-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.5","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0-r8","6.0_p20170701-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.6","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0-r8","6.0_p20170930-r8"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.7","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r1","6.0_p20170701-r7","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}},{"package":{"name":"ncurses","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/ncurses?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0_p20171125-r0"}]}],"versions":["5.6-r0","5.7-r0","5.7-r1","5.7-r2","5.7-r3","5.7-r4","5.8-r0","5.8-r1","5.8-r2","5.9-r0","5.9-r1","5.9-r2","5.9-r3","5.9-r4","6.0-r0","6.0-r1","6.0-r2","6.0-r3","6.0-r4","6.0-r5","6.0-r6","6.0-r7","6.0_p20170701-r0","6.0_p20170701-r1","6.0_p20170930-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-16879.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}