Heap Buffer Overflow Vulnerability in Tmux: Critical Security Flaw Detected

tmux Updated 06 Apr 2026

Summary

05/04/2026
MEDIUM
Yes i
Medium
Not published

OSV-2026-532: Heap-buffer-overflow in regsub. Affects tmux versions >= 7620c03b7278ed631efa98455c5e116538c23ed7, < 3badbc50e0d1c45ebfca2d2d1fad059a055584a5. Fixed in 3badbc50e0d1c45ebfca2d2d1fad059a055584a5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Tmux is a terminal multiplexer that allows users to manage multiple terminal sessions from a single window. It is widely used for its ability to split terminal windows, detach sessions, and maintain persistent sessions. However, like many software packages, Tmux is susceptible to vulnerabilities that can compromise its functionality and security.

Vulnerability Detail

The vulnerability identified is a heap-buffer-overflow in the 'regsub' function, which can lead to unauthorized memory access and potential crashes. This issue was reported through OSS-Fuzz, indicating that it can be exploited under certain conditions, leading to a crash state. The specific crash type is a 'Heap-buffer-overflow READ 1', which suggests that the overflow occurs when reading memory beyond the allocated buffer, potentially allowing an attacker to execute arbitrary code.

How To Fix

Minimum fixed version

3badbc50e0d1c45ebfca2d2d1fad059a055584a5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the 'regsub' function in their Tmux configurations until the patch is applied. This may limit some functionalities but can help mitigate the risk until a proper fix is implemented.

Conclusion

The heap buffer overflow vulnerability in Tmux poses a significant risk to users, potentially leading to crashes and security breaches. It is crucial to update to the patched version to mitigate these risks. Users are encouraged to utilize tools like Vulert for ongoing vulnerability monitoring.

See every vulnerability recorded for tmux →

Share this vulnerability

FAQ

A heap buffer overflow occurs when a program writes more data to a buffer located on the heap than it can hold, which can lead to memory corruption and potential security vulnerabilities.

You can check if your version of Tmux is affected by comparing your installed version with the fixed version '3badbc50e0d1c45ebfca2d2d1fad059a055584a5'.

Failing to address this vulnerability can lead to crashes, data corruption, and potential exploitation by attackers, which may compromise system security.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for tmux.

How To Fix

Minimum fixed version

3badbc50e0d1c45ebfca2d2d1fad059a055584a5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback