Buffer overflow in Tmux
CVE-2020-27347
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.007, 53.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Tmux — versions unspecified
- Tmux Project
- Ubuntu Tmux — versions 3.1b, 3.0a
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- lucadibello/tmux-fuzzing (1 star, last pushed 2025-05-16): Enhanced fuzzing for tmux using OSS-Fuzz. Includes custom `cmd-fuzzer` and `argument-fuzzer` harnesses for improved code coverage and a PoC for `CVE-2020-27347`
Also mentioned in 3 other repositories (federicovilla55/fuzzing-lab, Live-Hack-CVE/CVE-2020-27347, plzheheplztrying/cve_monitor). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/tmux/tmux/commit/a868bacb46e3c900530bed47a1c6f85b0fbe701c (Patch, Third Party Advisory)
- www.openwall.com/lists/oss-security/2020/11/05/3 (Exploit, Mailing List, Third Party Advisory)
- GLSA-202011-10 (vendor-advisory, Third Party Advisory)
- raw.githubusercontent.com/tmux/tmux/3.1c/CHANGES (Third Party Advisory, Release Notes)
This CVE has public exploit evidence. See the latest CVEs with public exploits.