CVE-2026-29787: Mcp memory service Mcp-memory-service Vulnerable To System Information Vulnerability

MODERATE
Advisory Identifier: GHSA-73hc-m4hx-79pj
CVSS 5.3
CWE-200
Published
Advisory Summary

CVE-2026-29787 is a MODERATE (CVSS 5.3) mcp-memory-service vulnerable to system information vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Mcp memory service libraries in the PyPI ecosystem. The issue involves mcp-memory-service vulnerable to system information disclosure via health endpoint. Remediation is available by upgrading affected packages to version 10.21.0.

CVE-2026-29787 at a Glance

CVE Identifier CVE-2026-29787
GHSA Identifier GHSA-73hc-m4hx-79pj
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Mcp memory service
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-29787

To remediate this vulnerability, upgrade all affected Mcp memory service dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mcp-memory-service fixed: 10.21.0
pip install mcp-memory-service>=10.21.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show mcp-memory-service

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-29787, inspect your installed packages using pip:

pip show mcp-memory-service

Analyze the terminal output to locate any version of Mcp memory service in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.21.0), your application is affected.

Note: The pip show mcp-memory-service command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Mcp memory service, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The `/api/health/detailed` endpoint returns detailed system information including OS version, Python version, CPU count, memory totals, disk usage, and the full database filesystem path. When `MCP_ALLOW_ANONYMOUS_ACCESS=true` is set (required for the HTTP server to function without OAuth/API key), this endpoint is accessible without authentication. Combined with the default `0.0.0.0` binding, this exposes sensitive reconnaissance data to the entire network. ### Details ### Vulnerable Code **`health.py:90-101` - System information collection** ```python system_info = { "platform": platform.system(), # e.g., "Linux", "Darwin" "platform_version": platform.version(), # Full OS kernel version string "python_version": platform.python_version(),# e.g., "3.12.1" "cpu_count": psutil.cpu_count(), # CPU core count "memory_total_gb": round(memory_info.total / (1024**3), 2), "memory_available_gb": round(memory_info.available / (1024**3), 2), "memory_percent": memory_info.percent, "disk_total_gb": round(disk_info.total / (1024**3), 2), "disk_free_gb": round(disk_info.free / (1024**3), 2), "disk_percent": round((disk_info.used / disk_info.total) * 100, 2) } ``` **`health.py:131-132` - Database path disclosure** ```python if hasattr(storage, 'db_path'): storage_info["database_path"] = storage.db_path # Full filesystem path ``` ### Authentication Bypass Path The `/api/health/detailed` endpoint uses `require_read_access` which calls `get_current_user`. When `MCP_ALLOW_ANONYMOUS_ACCESS=true`, the auth middleware grants access: ```python # middleware.py:372-379 if ALLOW_ANONYMOUS_ACCESS: logger.debug("Anonymous access explicitly enabled, granting read-only access") return AuthenticationResult( authenticated=True, client_id="anonymous", scope="read", auth_method="none" ) ``` **Note**: The basic `/health` endpoint (line 68) has **no auth dependency at all** and returns version and uptime information unconditionally. ### Information Exposed | Field | Example Value | Reconnaissance Value | |-------|--------------|---------------------| | `platform` | `"Linux"` | OS fingerprinting | | `platform_version` | `"#1 SMP PREEMPT_DYNAMIC..."` | Kernel version → CVE targeting | | `python_version` | `"3.12.1"` | Python CVE targeting | | `cpu_count` | `8` | Resource enumeration | | `memory_total_gb` | `32.0` | Infrastructure profiling | | `database_path` | `"/home/user/.mcp-memory/memories.db"` | Username + file path disclosure | | `database_size_mb` | `45.2` | Data volume estimation | ### Attack Scenario 1. Attacker scans the local network for services on port 8000 2. Finds mcp-memory-service with HTTP enabled and anonymous access 3. Calls `GET /api/health/detailed` (no credentials needed) 4. Receives OS version, Python version, full database path (revealing username), system resources 5. Uses this information to: - Target known CVEs for the specific OS/Python version - Identify the database file location for potential direct access - Profile the system for further attacks ### PoC ```python # Show the system info that would be exposed import platform, psutil system_info = { "platform": platform.system(), "platform_version": platform.version(), "python_version": platform.python_version(), "cpu_count": psutil.cpu_count(), "memory_total_gb": round(psutil.virtual_memory().total / (1024**3), 2), } print(system_info) # All of this is returned to unauthenticated users ``` ### Impact - **OS fingerprinting**: Exact OS and kernel version enables targeted exploit selection - **Path disclosure**: Database path reveals username, home directory structure, and file locations - **Resource enumeration**: CPU, memory, and disk info reveal infrastructure scale - **Reconnaissance enablement**: Combined information significantly reduces attacker effort for follow-up attacks ## Remediation 1. **Remove system details from default health endpoint** - return only `status`, `version`, `uptime`: ```python @router.get("/health/detailed") async def detailed_health_check( storage: MemoryStorage = Depends(get_storage), user: AuthenticationResult = Depends(require_write_access) # Require admin/write access ): # Only return storage stats, not system info ... ``` 2. **Do not expose `database_path`** - this leaks the filesystem structure: ```python # Remove or redact # storage_info["database_path"] = storage.db_path # REMOVE THIS ``` 3. **Add auth to basic `/health`** or limit it to status-only (no version): ```python @router.get("/health") async def health_check(): return {"status": "healthy"} # No version, no uptime ``` Alternatively, **Bind to `127.0.0.1` by default** instead of `0.0.0.0`, preventing network-based reconnaissance entirely: ```python # In config.py — change default from '0.0.0.0' to '127.0.0.1' HTTP_HOST = os.getenv('MCP_HTTP_HOST', '127.0.0.1') ``` Users who need network access can explicitly set `MCP_HTTP_HOST=0.0.0.0`, making the exposure a conscious opt-in rather than a default.

CVE-2026-29787 Affected Mcp memory service Versions

1 component(s)
Fixed Versions:
10.21.0
Product / Package Ecosystem Affected Versions Fixed Version
mcp-memory-service
PyPI
< 10.21.0
10.21.0

References

Frequently Asked Questions

What is CVE-2026-29787?
CVE-2026-29787 is a security vulnerability in Mcp memory service involving mcp-memory-service Vulnerable to System Information Disclosure via Health Endpoint under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Mcp memory service versions are affected?
Affected versions include releases prior to 10.21.0 across affected packages: mcp-memory-service.
What version fixes CVE-2026-29787?
Upgrading to 10.21.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-memory-service affected?
Yes, mcp-memory-service is affected in releases prior to 10.21.0. Upgrade your dependency to 10.21.0 or later.
What is the CVSS score of CVE-2026-29787?
CVE-2026-29787 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-29787?
CVE-2026-29787 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2026-29787?
Run the dependency tree command: 'pip show mcp-memory-service'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-73hc-m4hx-79pj",
  "modified" : "2026-03-09T15:50:08Z",
  "published" : "2026-03-05T21:42:10Z",
  "aliases" : [ "CVE-2026-29787" ],
  "summary" : "mcp-memory-service Vulnerable to System Information Disclosure via Health Endpoint",
  "details" : "### Summary\nThe `/api/health/detailed` endpoint returns detailed system information including OS version, Python version, CPU count, memory totals, disk usage, and the full database filesystem path. When `MCP_ALLOW_ANONYMOUS_ACCESS=true` is set (required for the HTTP server to function without OAuth/API key), this endpoint is accessible without authentication. Combined with the default `0.0.0.0` binding, this exposes sensitive reconnaissance data to the entire network.\n\n### Details\n### Vulnerable Code\n\n**`health.py:90-101` - System information collection**\n\n```python\nsystem_info = {\n    \"platform\": platform.system(),              # e.g., \"Linux\", \"Darwin\"\n    \"platform_version\": platform.version(),     # Full OS kernel version string\n    \"python_version\": platform.python_version(),# e.g., \"3.12.1\"\n    \"cpu_count\": psutil.cpu_count(),            # CPU core count\n    \"memory_total_gb\": round(memory_info.total / (1024**3), 2),\n    \"memory_available_gb\": round(memory_info.available / (1024**3), 2),\n    \"memory_percent\": memory_info.percent,\n    \"disk_total_gb\": round(disk_info.total / (1024**3), 2),\n    \"disk_free_gb\": round(disk_info.free / (1024**3), 2),\n    \"disk_percent\": round((disk_info.used / disk_info.total) * 100, 2)\n}\n```\n\n**`health.py:131-132` - Database path disclosure**\n\n```python\nif hasattr(storage, 'db_path'):\n    storage_info[\"database_path\"] = storage.db_path  # Full filesystem path\n```\n\n### Authentication Bypass Path\n\nThe `/api/health/detailed` endpoint uses `require_read_access` which calls `get_current_user`. When `MCP_ALLOW_ANONYMOUS_ACCESS=true`, the auth middleware grants access:\n\n```python\n# middleware.py:372-379\nif ALLOW_ANONYMOUS_ACCESS:\n    logger.debug(\"Anonymous access explicitly enabled, granting read-only access\")\n    return AuthenticationResult(\n        authenticated=True,\n        client_id=\"anonymous\",\n        scope=\"read\",\n        auth_method=\"none\"\n    )\n```\n\n**Note**: The basic `/health` endpoint (line 68) has **no auth dependency at all** and returns version and uptime information unconditionally.\n\n### Information Exposed\n\n| Field | Example Value | Reconnaissance Value |\n|-------|--------------|---------------------|\n| `platform` | `\"Linux\"` | OS fingerprinting |\n| `platform_version` | `\"#1 SMP PREEMPT_DYNAMIC...\"` | Kernel version → CVE targeting |\n| `python_version` | `\"3.12.1\"` | Python CVE targeting |\n| `cpu_count` | `8` | Resource enumeration |\n| `memory_total_gb` | `32.0` | Infrastructure profiling |\n| `database_path` | `\"/home/user/.mcp-memory/memories.db\"` | Username + file path disclosure |\n| `database_size_mb` | `45.2` | Data volume estimation |\n\n### Attack Scenario\n\n1. Attacker scans the local network for services on port 8000\n2. Finds mcp-memory-service with HTTP enabled and anonymous access\n3. Calls `GET /api/health/detailed`  (no credentials needed)\n4. Receives OS version, Python version, full database path (revealing username), system resources\n5. Uses this information to:\n   - Target known CVEs for the specific OS/Python version\n   - Identify the database file location for potential direct access\n   - Profile the system for further attacks\n \n### PoC\n\n```python\n# Show the system info that would be exposed\nimport platform, psutil\n\nsystem_info = {\n    \"platform\": platform.system(),\n    \"platform_version\": platform.version(),\n    \"python_version\": platform.python_version(),\n    \"cpu_count\": psutil.cpu_count(),\n    \"memory_total_gb\": round(psutil.virtual_memory().total / (1024**3), 2),\n}\nprint(system_info)  # All of this is returned to unauthenticated users\n```\n\n### Impact\n- **OS fingerprinting**: Exact OS and kernel version enables targeted exploit selection\n- **Path disclosure**: Database path reveals username, home directory structure, and file locations\n- **Resource enumeration**: CPU, memory, and disk info reveal infrastructure scale\n- **Reconnaissance enablement**: Combined information significantly reduces attacker effort for follow-up attacks\n\n## Remediation\n\n1. **Remove system details from default health endpoint** - return only `status`, `version`, `uptime`:\n\n```python\n@router.get(\"/health/detailed\")\nasync def detailed_health_check(\n    storage: MemoryStorage = Depends(get_storage),\n    user: AuthenticationResult = Depends(require_write_access)  # Require admin/write access\n):\n    # Only return storage stats, not system info\n    ...\n```\n\n2. **Do not expose `database_path`** - this leaks the filesystem structure:\n\n```python\n# Remove or redact\n# storage_info[\"database_path\"] = storage.db_path  # REMOVE THIS\n```\n\n3. **Add auth to basic `/health`** or limit it to status-only (no version):\n\n```python\n@router.get(\"/health\")\nasync def health_check():\n    return {\"status\": \"healthy\"}  # No version, no uptime\n```\nAlternatively, **Bind to `127.0.0.1` by default** instead of `0.0.0.0`, preventing network-based reconnaissance entirely:\n\n```python\n# In config.py — change default from '0.0.0.0' to '127.0.0.1'\nHTTP_HOST = os.getenv('MCP_HTTP_HOST', '127.0.0.1')\n```\n\nUsers who need network access can explicitly set `MCP_HTTP_HOST=0.0.0.0`, making the exposure a conscious opt-in rather than a default.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mcp-memory-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.21.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/doobidoo/mcp-memory-service/security/advisories/GHSA-73hc-m4hx-79pj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-29787"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doobidoo/mcp-memory-service/commit/18f4323ca92763196aa2922f691dfbeb6bd84e48"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/doobidoo/mcp-memory-service"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-05T21:42:10Z",
    "nvd_published_at" : "2026-03-07T16:15:55Z"
  }
}