CVE-2020-27347
tmux stack buffer overflow in function input_csi_dispatch_sgr_colon
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.8
tmux stack buffer overflow in function input_csi_dispatch_sgr_colon
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.
- Record
CVE-2020-27347- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-121
- Updated
- 2026-11-02
EUVDEUVD-2020-19860
8.8
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.
- Record
EUVD-2020-19860- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xp5q-c655-9565
7.8
The function input_csi_dispatch_sgr_colon() in file input.c contained a stack-based buffer...
The function input_csi_dispatch_sgr_colon() in file input.c contained a stack-based buffer-overflow that can be exploited by terminal output.
- Record
GHSA-xp5q-c655-9565- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
NVD
8.8
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.
- Record
CVE-2020-27347- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2020-27347
7.8
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.
- Record
ALPINE-CVE-2020-27347- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
7.8
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.
- Record
CVE-2020-27347- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVDEBIAN-CVE-2020-27347
7.8
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.
- Record
DEBIAN-CVE-2020-27347- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-528
7.8
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.
- Record
JLSEC-2026-528- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-27347
8.5
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.
- Record
UBUNTU-CVE-2020-27347- CVSS 3.1
- 8.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2020:1834-1 No score
Security update for tmux
This update for tmux fixes the following issues:
-
Update to version 3.1c
- Fix a stack overflow on colon-separated CSI parsing. boo#1178263 CVE-2020-27347
-
tmux 3.1b:
- Fix crash when allow-rename ison and an empty name is set
-
tmux 3.1a:
- Do not close stdout prematurely in control mode since it is needed to print exit messages. Prevents hanging when detaching with iTerm2
-
includes changes between 3.1-rc1 and 3.1:
- Only search the visible part of the history when marking (highlighting) search terms. This is much faster than searching the whole history and solves problems with large histories. The count of matches shown is now the visible matches rather than all matches
- Search using regular expressions in copy mode. search-forward and search-backward use regular expressions by default; the incremental versions do not
- Turn off mouse mode 1003 as well as the rest when exiting
- Add selection_active format for when the selection is present but not moving with the cursor
- Fix dragging with modifier keys, so binding keys such as C-MouseDrag1Pane and C-MouseDragEnd1Pane now work
- Add -a to list-keys to also list keys without notes with -N
- Do not jump to next word end if already on a word end when selecting a word; fixes select-word with single character words and vi(1) keys
- Fix top and bottom pane calculation with pane border status enabled
-
Update to v3.1-rc
- Please see the included CHANGES file
-
Fix tmux completion
-
Update to v3.0a
- A lot of changes since v2.9a, please see the included CHANGES file.
-
Update to v2.9a
- Fix bugs in select-pane and the main-horizontal and main-vertical layouts.
-
Add trailing newline to tmpfiles.d/tmux.conf. On newer systems (such as Leap 15.1), the lack of a trailing newline appears to cause the directory to not be created. This is only evident on setups where /run is an actual tmpfs (on btrfs-root installs, /run is a btrfs subvolume and thus /run/tmux is persistent across reboots).
-
Update to version 2.9
- Add format variables for the default formats in the various modes (tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
- Add a -v flag to display-message to show verbose messages as the format is parsed, this allows formats to be debugged
- Add support for HPA (\033[`).
- Add support for origin mode (\033[?6h).
- No longer clear history on RIS.
- Extend the #[] style syntax and use that together with previous format changes to allow the status line to be entirely configured with a single option.
- Add E: and T: format modifiers to expand a format twice (useful to expand the value of an option).
- The individual -fg, -bg and -attr options have been removed; they were superseded by -style options in tmux 1.9.
- Add -b to display-panes like run-shell.
- Handle UTF-8 in word-separators option.
- New 'terminal' colour allowing options to use the terminal default colour rather than inheriting the default from a parent option.
- Do not move the cursor in copy mode when the mouse wheel is used.
- Use the same working directory rules for jobs as new windows rather than always starting in the user's home.
- Allow panes to be one line or column in size.
- Go to last line when goto-line number is out of range in copy mode.
- Yank previously cut text if any with C-y in the command prompt, only use the buffer if no text has been cut.
- Add q: format modifier to quote shell special characters.
- Add -Z to find-window.
- Support for windows larger than the client. This adds two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed.
-
update to 2.8
-
move bash-completion to right place
- Make display-panes block the client…
- Record
openSUSE-SU-2020:1834-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11466-1 No score
tmux-3.2a-1.2 on GA media
These are all security issues fixed in the tmux-3.2a-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11466-1- Updated
- 2026-11-02
OSVUSN-4618-1 No score
tmux vulnerability
Sergey Nizovtsev discovered that tmux incorrectly handled some inputs. An attacker could possibly use this issue to cause a crash or execute arbitrary code.
- Record
USN-4618-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tmuxAlpine:v3.10 |
2.9 up to 2.9a-r2 | 2.9a-r2 |
tmuxAlpine:v3.11 |
2.9 up to 3.0a-r2 | 3.0a-r2 |
tmuxAlpine:v3.12 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.13 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.14 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.15 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.16 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.17 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.18 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.19 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tmuxAlpine:v3.20 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.21 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.22 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.23 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxAlpine:v3.24 |
2.9 up to 3.1c-r0 | 3.1c-r0 |
tmuxDebian:12 |
before 3.1c-1 | 3.1c-1 |
tmuxDebian:13 |
before 3.1c-1 | 3.1c-1 |
tmuxDebian:14 |
before 3.1c-1 | 3.1c-1 |
tmux_jllJulia |
before 3.3.0+0 | 3.3.0+0 |
tmuxUbuntu:20.04:LTS |
before 3.0a-2ubuntu0.2, plus listed versions 2.9a-3build12.9a-3build23.0-13.0a-13.0a-23.0a-2ubuntu0.1 |
3.0a-2ubuntu0.2 |
tmuxSUSE:Package Hub 12 |
before 3.1c-bp152.2.3.1 | 3.1c-bp152.2.3.1 |
tmuxSUSE:Package Hub 15 SP1 |
before 3.1c-bp152.2.3.1 | 3.1c-bp152.2.3.1 |
tmuxSUSE:Package Hub 15 SP2 |
before 3.1c-bp152.2.3.1 | 3.1c-bp152.2.3.1 |
tmuxopenSUSE:Leap 15.1 |
before 3.1c-bp152.2.3.1 | 3.1c-bp152.2.3.1 |
tmuxopenSUSE:Leap 15.2 |
before 3.1c-bp152.2.3.1 | 3.1c-bp152.2.3.1 |
tmuxopenSUSE:Tumbleweed |
before 3.2a-1.2 | 3.2a-1.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | lucadibello/tmux-fuzzing | 2025-05-16 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-27347 is a high vulnerability (CVSS 8.8) in Tmux, published November 4, 2020. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.69%, the 53rd percentile. Fixed in tmux 2.9a-r2.
References
github.com/tmux/tmux/commit/a868bacb46e3c900530bed47a1c6f85b0fbe701c
openwall.com/lists/oss-security/2020/11/05/3
security.gentoo.org/glsa/202011-10
raw.githubusercontent.com/tmux/tmux/3.1c/CHANGES
nvd.nist.gov/vuln/detail/CVE-2020-27347
github.com/advisories/GHSA-xp5q-c655-9565
Show 12 moreShow less
security.alpinelinux.org/vuln/CVE-2020-27347
security-tracker.debian.org/tracker/CVE-2020-27347
ubuntu.com/security/CVE-2020-27347
ubuntu.com/security/notices/USN-4618-1
cve.org/CVERecord?id=CVE-2020-27347
lists.opensuse.org/archives/list/[email protected]/thread/TARFSZEK7MJQGUKVM5RMUTKCCE3JJLUK
bugzilla.suse.com/1037468
bugzilla.suse.com/1116887
bugzilla.suse.com/1120170
bugzilla.suse.com/1178263
suse.com/security/cve/CVE-2018-19387
suse.com/security/cve/CVE-2020-27347
Left out here: the rest of 1 source description. The JSON record has them.