CVE-2020-27347 tmux stack buffer overflow in function input_csi_dispatch_sgr_colon

High 8.8 Published Updated

A stack-based buffer overflow in tmux allows attackers to execute arbitrary code via malicious terminal output.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-27347?

CVE-2020-27347 is a high-severity memory corruption vulnerability in Ubuntu tmux, published on 6 Nov 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2020-27347?

It affects 1 product.

Products include Tmux Project Tmux.

How do I fix CVE-2020-27347?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-27347 being exploited?

There is no known exploitation of CVE-2020-27347 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as ALPINE-CVE-2020-27347, DEBIAN-CVE-2020-27347, GHSA-xp5q-c655-9565, JLSEC-2026-528, UBUNTU-CVE-2020-27347, USN-4618-1.

Is CVE-2020-27347 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free