Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2020-27347 EUVD-2020-19860GHSA-xp5q-c655-9565

tmux stack buffer overflow in function input_csi_dispatch_sgr_colon

Published Nov 6, 2020 · Updated Sep 17, 2024 · Assigned by canonical

Description

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.

Affected products

VendorProductAffectedFixed
tmux tmux unspecified – < 3.1c 3.1c
Ubuntu tmux 3.1b – < 3.1b-1ubuntu0.1, 3.0a – < 3.0a-2ubuntu0.2 3.1b-1ubuntu0.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tmux 3.1c-1 —
Debian 13 tmux 3.1c-1 —
Debian 12 tmux 3.1c-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS tmux 3.0a-2ubuntu0.2 USN-4618-1
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP2 tmux 3.1c-bp152.2.3.1 openSUSE-SU-2020:1834-1
SUSE Package Hub 15 SP1 tmux 3.1c-bp152.2.3.1 openSUSE-SU-2020:1834-1
SUSE Package Hub 12 tmux 3.1c-bp152.2.3.1 openSUSE-SU-2020:1834-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tmux 3.2a-1.2 openSUSE-SU-2024:11466-1
openSUSE Leap 15.2 tmux 3.1c-bp152.2.3.1 openSUSE-SU-2020:1834-1
openSUSE Leap 15.1 tmux 3.1c-bp152.2.3.1 openSUSE-SU-2020:1834-1
ReleasePackageFixed inAdvisory
Alpine v3.24 tmux 3.1c-r0 —
Alpine v3.23 tmux 3.1c-r0 —
Alpine v3.22 tmux 3.1c-r0 —
Alpine v3.21 tmux 3.1c-r0 —
Alpine v3.20 tmux 3.1c-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 tmux 3.1c-r0 —
Alpine v3.18 tmux 3.1c-r0 —
Alpine v3.17 tmux 3.1c-r0 —
Alpine v3.16 tmux 3.1c-r0 —
Alpine v3.15 tmux 3.1c-r0 —
Alpine v3.14 tmux 3.1c-r0 —
Alpine v3.13 tmux 3.1c-r0 —
Alpine v3.12 tmux 3.1c-r0 —
Alpine v3.11 tmux 3.0a-r2 —
Alpine v3.10 tmux 2.9a-r2 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • lucadibello/tmux-fuzzing ★ 1 · May 16, 2025

    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`

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References