An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_captoinfo.c?rev=1.1&content-type=text/x-cvsweb-markup
seclists.org/fulldisclosure/2022/Oct/28
seclists.org/fulldisclosure/2022/Oct/41
seclists.org/fulldisclosure/2022/Oct/43
seclists.org/fulldisclosure/2022/Oct/45
lists.debian.org/debian-lts-announce/2023/12/msg00004.html
lists.gnu.org/archive/html/bug-ncurses/2020-08/msg00006.html
lists.gnu.org/archive/html/bug-ncurses/2021-10/msg00023.html
security.netapp.com/advisory/ntap-20230427-0012/
support.apple.com/kb/HT213443
support.apple.com/kb/HT213444
support.apple.com/kb/HT213488