# GHSA-72JH-722P-RQR3: memtomem-stm: Concurrent LTM recovery can duplicate reconnects or reuse a cancelled transport session

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-11-20
- Modified: 2026-11-20

## Tracked as

- [CVE-2026-77331](https://cve.now/CVE-2026-77331.md): memtomem-stm race condition in LTM recovery enables session reuse

## Affected versions

- memtomem-stm (PyPI): from 0.1.2, fixed in 0.1.34

## Description

Concurrent surfacing RPC failures can trigger more than one reconnect for the same dirty session, and cancellation during a post-reconnect retry can leave the replacement session reusable despite an interrupted protocol exchange. The private fix introduces monotonic session generations, one shielded shared reconnect flight per dirty generation, and generation-aware cancellation handling across search, access-count, and scratch RPCs. The duplicate-reconnect subcase was introduced in 0.1.24; cancellation recovery affects the broader listed range.

## References

- https://github.com/memtomem/memtomem-stm/security/advisories/GHSA-72jh-722p-rqr3
- https://nvd.nist.gov/vuln/detail/CVE-2026-77331
- https://github.com/memtomem/memtomem-stm/commit/761db1802df7ce4881ff4c3acee6d674925da498
- https://github.com/memtomem/memtomem-stm
- https://github.com/memtomem/memtomem-stm/releases/tag/v0.1.34

Page: https://cve.now/GHSA-72JH-722P-RQR3

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
