In tmux before version 3.1c the function input_csi_dispatch_sgr_colon() in file input.c contained a stack-based buffer-overflow that can be exploited by terminal output.
https://www.openwall.com/lists/oss-security/2020/11/05/3
https://security.gentoo.org/glsa/202011-10
https://raw.githubusercontent.com/tmux/tmux/3.1c/CHANGES
https://github.com/tmux/tmux/commit/a868bacb46e3c900530bed47a1c6f85b0fbe701c