Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

tmate-io/tmate
master @ 985ab61
18
Fixes
0
CVEs
HIGH
Peak severity
13.3%
Coverage
Highlights
Use-After-Free: 3 prior fixes. Scrutinize any change in this area.
tmux: most-fixed (5 issues). Treat as high-risk during review.
11 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Use-After-Free: Multiple fixes address command-context lifetime, indicating a fragile reference-counting scheme where pointers can dangle before refcounts are set.
Use-After-Free: Callbacks that use session pointers without holding references or checking liveness have been patched twice, suggesting a systemic issue in async command handling.
Buffer Overflow: Variable-length message handling with unchecked sizes led to heap overflows; the fix enforces fixed-size structs, but similar parsing paths may exist elsewhere.