Skip to main content

memtomem-stm EUVDEUVD-2026-131664

| CVE-2026-77331 LOW
Race Condition (CWE-362)
2026-11-20 security-advisories@github.com GHSA-72jh-722p-rqr3
2.0
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain low-privileged local access to surfacing service
  2. Exploit
    Drive concurrent surfacing RPC failures or cancel post-reconnect retry
  3. Execution
    Race LTM recovery to duplicate reconnect or reuse cancelled transport
  4. Impact
    Session-state integrity loss or local service degradation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local access with low privileges (PR:L) to the memtomem-stm proactive memory-surfacing component and the ability to induce concurrency in its LTM recovery path: specifically, concurrent surfacing RPC failures that start more than one reconnect for the same dirty session, or cancellation during a post-reconnect retry that leaves the replacement transport reusable after an interrupted protocol exchange. Limiting factors are substantial: the vector is local (AV:L, not network-reachable), success depends on winning a narrow race window (AC:H) and on an attack precondition/timing being met (AT:P), no user interaction is involved (UI:N), and impact is confined to session-state integrity and local service availability. Version scoping also limits exposure - the duplicate-reconnect subcase affects only 0.1.24 through 0.1.33, while the cancellation-recovery subcase affects the broader 0.1.2 through 0.1.33 range; all are fixed in 0.1.34, which the advisory presents as the remediation.

Impact

This is a low-priority issue, and the signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:N) describes a local, high-complexity race condition that requires an attack precondition (AT:P) and existing low-privileged access to the service - not a remotely reachable flaw. Vuln.today assigns the 'monitor' decision label, and the aggregate CVSS score is 2.0. There is no CISA KEV listing and no EPSS value supplied, so there is no evidence of exploitation probability or active abuse; the only references are the vendor fix commit, the release tag, and the GHSA advisory, i.e. patch/disclosure artifacts rather than exploit code. Impact is limited to session-state integrity loss (VI:L) and local service degradation (VA:L/SA:L) with no confidentiality impact (VC:N), which contradicts the 'Information Disclosure' tag in the input. Bottom line: a genuine correctness/robustness defect worth patching on a normal maintenance cadence, but not an urgent security emergency - the low real-world risk is driven by the local vector, race-condition timing requirement, and limited integrity/availability-only impact, all of which agree with the low CVSS and 'monitor' label.

Exploit ScenarioDerived

A low-privileged local actor (or faulty client) that can drive concurrent proactive-surfacing RPCs provokes simultaneous RPC failures or cancels a post-reconnect retry, racing the LTM recovery path so that two reconnects start for the same dirty session or a cancelled transport is reused after an interrupted protocol exchange. The result is corrupted session state or degraded local memory-proxy service for AI agents rather than code execution or data theft. No public exploit code is identified; only the vendor fix commit and GHSA advisory exist, and exploitation depends on winning a narrow concurrency window (AC:H/AT:P).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Race conditions in memtomem-stm 0.1.2 through 0.1.33 allow concurrent surfacing RPC failures to start more than one reconnect for the same dirty session, and allow a cancellation during a post-reconnect retry to leave the replacement transport session reusable after an interrupted protocol exchange, resulting in session-state integrity loss and local service degradation. Triggering it requires local, low-privileged access to the proactive memory-surfacing component plus the ability to induce concurrency in the LTM recovery path; the race window is narrow and the flaw is not network-reachable. Version exposure is bounded - the duplicate-reconnect subcase exists only from 0.1.24 onward while the cancellation-recovery subcase spans the wider 0.1.2 to 0.1.33 range - and both are fixed in 0.1.34. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the priority signal is monitor.

RemediationAI

Vendor-released patch: 0.1.34 - upgrade memtomem-stm to 0.1.34 or later, which the advisory presents as the remediation for both subcases; the release is at https://github.com/memtomem/memtomem-stm/releases/tag/v0.1.34 and the code change at https://github.com/memtomem/memtomem-stm/commit/761db1802df7ce4881ff4c3acee6d674925da498, with details in GHSA-72jh-722p-rqr3. The supplied sources document no separate workaround or compensating control; because the prerequisite is local low-privileged access to the surfacing RPC surface, restricting which local accounts and processes can reach that T component narrows exposure at the cost of reduced functionality for those principals, but it does not remove the underlying race, so upgrading remains the only complete fix. Given the local vector, high attack complexity, attack precondition, and integrity/availability-only impact, this is a monitor-priority item best handled through routine dependency updates rather than emergency response.

Affected VersionsENISA

memtomem-stm 0.1.2, < 0.1.34

Affected Packages

pypi memtomem-stm fix: 0.1.34

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code is the asyncio-based MCP (Model Context Protocol) client used by memtomem-stm's surfacing subsystem (src/memtomem_stm/surfacing/mcp_client.py), which maintains a long-lived client session behind a single owner task reached through a request/response submit channel. The root cause class is CWE-362 (concurrent execution using shared resource with improper synchronization): the dirty-session marker and the reconnect operation were not bound to a specific session generation, so several surfacing RPC failures could each independently launch a reconnect against the same dirty state, and a task cancelled in the middle of a post-reconnect retry could return the replacement transport to the pool while an interrupted protocol exchange was still outstanding. The upstream fix restructures this around monotonic session generations: an expected_generation field on owner requests, a _dirty_generation marker written only through _mark_dirty for the currently published session, an asyncio.Lock plus a per-generation task map (_reconnect_flights) providing one shielded shared reconnect flight per dirty generation with done-callback eviction, draining of in-flight flights during stop(), and generation-aware CancelledError handling in the _rpc wrapper covering search, access-count and scratch RPCs. Note that the supplied tags include an 'Information Disclosure' and a 'Microsoft' label that do not match the described Python package or the assessed impact, which is limited to integrity and availability.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 2.0 LOW
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:L
vuln.today AI 3.6 LOW

Local concurrency race requiring low-privileged access to the service gives AV:L/PR:L and the narrow timing window gives AC:H; impact is limited session-state corruption (I:L) and local degradation (A:L) with no confidentiality loss.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
Low

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 18:04 EUVD

DescriptionCVE.org

memtomem-stm is a short-term memory proxy gateway with proactive memory surfacing for AI agents. From 0.1.2 until 0.1.34, concurrent surfacing RPC failures can start more than one reconnect for the same dirty session because concurrent LTM recovery is not uniquely owned by a session generation. Cancellation during a post-reconnect retry can also leave the replacement transport reusable after an interrupted protocol exchange, causing session-state integrity loss or local service degradation. The duplicate-reconnect subcase was introduced in 0.1.24, while the cancellation-recovery subcase affects the broader listed range. This issue is fixed in version 0.1.34.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Rare
obscure AI-agent short-term-memory proxy, negligible production footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy