CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-115478

CVE-2026-115478: Incorrect Authorization and Incomplete Cleanup in obsidian-tc

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 23, 2026·5 min read·21 visits

Executive Summary (TL;DR)

obsidian-tc memory tools fail to verify note ownership before materializing files and perform non-atomic database state changes, resulting in potential note body destruction and memory graph desynchronization.

In obsidian-tc versions 1.0.1 through 1.31.3, memory lifecycle tools fail to validate note ownership prior to rematerializing Markdown files and execute non-atomic SQLite database mutations. An authorized caller can overwrite arbitrary note bodies on disk and cause persistent desynchronization between the database memory graph and physical vault files.

Vulnerability Overview

obsidian-tc is a governed Model Context Protocol (MCP) server designed for Obsidian vaults. It exposes memory management tools to AI agents by serializing knowledge entities in a SQLite database and materializing corresponding Markdown notes on disk within vault structures.

In versions 1.0.1 through 1.31.3, the memory toolsuite (create_entity, link_entities, rename_entity, unlink_entities, and delete_entity) exposes two critical flaws during note processing. First, the materialization routine lacks validation to verify whether an existing note at a computed file path is owned by the target entity being modified. Second, state mutations in SQLite occur prior to fallible filesystem operations without transactional rollback mechanisms.

This flaw is tracked as CVE-2026-115478 and GHSA-r3g7-r4hr-m258. It carries a CVSS v4.0 base score of 7.1 (High) with vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N. Authorized users or agents can overwrite hand-authored or foreign notes and induce persistent graph state desynchronization.

Root Cause Analysis

The root cause lies in packages/server/src/memory/materialize.ts and packages/server/src/tools/m5/memory-lifecycle-tools.ts. When a lifecycle tool invokes materializeEntity, the relative file path is derived as memory/<type>/<name>.md. Before writing content, the function inspects existing files to retain top-level YAML frontmatter but fails to verify the note's obsidian_tc_id frontmatter attribute.

If a file exists at the calculated path—such as a user-authored note or an orphaned note created by a separate entity whose name sanitized to the identical path—materializeEntity regenerates the body content using SQLite state. Because the database contains no body text for unowned entities, the function overwrites and deletes the existing note body while retaining only top-level frontmatter.

In addition, memory lifecycle tools execute non-atomic mutations. SQL database rows are modified or inserted before disk file I/O operations take place. If a filesystem operation fails due to permission errors or path ACL refusals, the database updates persist while disk writes fail, leaving the memory graph out of sync with disk files.

Code Analysis & Patch Inspection

Prior to the patch, materializeEntity in packages/server/src/memory/materialize.ts checked for file existence solely to read frontmatter without evaluating ownership against input.id.

// Pre-patch implementation in materialize.ts
let preserved: Frontmatter | null = null;
const ex = noteExists(abs);
if (ex.exists && ex.type === "file") preserved = parseNote(readNote(abs).raw, rel).frontmatter;
const content = renderEntityNote({ ...input, preserved });
writeNoteAtomic(abs, content, true);

The fix implemented in PR #978 and commit 99f7914ca0fbeed92e7c4d39cc8c3e5830dab133 introduces readNoteOwner and assertNoteOwnership to validate that obsidian_tc_id matches the target entity ID.

// Post-patch implementation in materialize.ts
function readNoteOwner(abs: string): {
  exists: boolean;
  ownerId: string | null;
  frontmatter: Frontmatter | null;
} {
  const ex = noteExists(abs);
  if (!ex.exists || ex.type !== "file") return { exists: false, ownerId: null, frontmatter: null };
  const frontmatter = parseNote(readNote(abs).raw).frontmatter;
  const ownerId =
    frontmatter && typeof frontmatter.obsidian_tc_id === "string"
      ? frontmatter.obsidian_tc_id
      : null;
  return { exists: true, ownerId, frontmatter };
}
 
export function materializeEntity(input: MaterializeInput): {
  vaultPath: string;
  contentHash: string;
} {
  const rel = entityNotePath(input.folder, input.entityType, input.name);
  const abs = resolveVaultPath(input.root, rel);
  enforcePathAcl(input.acl, "write", rel, input.root, input.grantedScopes);
  const owner = readNoteOwner(abs);
  if (owner.exists && owner.ownerId !== input.id)
    throw ownershipError(rel, input.id, owner.ownerId);
  const preserved = owner.frontmatter;
  const content = renderEntityNote({ ...input, preserved });
  writeNoteAtomic(abs, content, true);
}

Furthermore, lifecycle handlers in packages/server/src/tools/m5/memory-lifecycle-tools.ts were updated to run ownership pre-checks before executing transactions (inWriteTransaction) and to catch materialization errors, rolling back inserted rows via deleteEntity or deleteRelation when file routines fail.

Exploitation Methodology

Exploitation requires low-privileged network access to invoke memory lifecycle tools through the Model Context Protocol interface. An attacker or malfunctioning LLM agent issues structured RPC requests targeted at entity creation or modification functions.

In a data destruction attack, an authorized caller targets a path containing user content, such as memory/person/admin_notes.md. By calling create_entity with entityType: "person" and name: "admin_notes", the server derives the target path, skips ownership verification, and overwrites the target file body with an empty template while preserving frontmatter headers.

In a graph state desynchronization attack, an attacker submits a rename_entity request where target directory access is restricted at the filesystem layer. The server updates the internal SQLite entity record to the new name and retired status. When the subsequent file write fails, the database retains the modified state while disk notes remain unchanged, corrupting future graph lookup queries.

Impact Assessment

The impact affects data integrity and system availability, classified under CWE-863 (Incorrect Authorization) and CWE-459 (Incomplete Cleanup). Low-privileged API users can destroy text content inside vault notes outside their entity boundaries without holding explicit write permissions for those resources.

Operational risks involve state divergence between SQLite and Markdown files on disk. Automated agents depending on graph accuracy will receive inconsistent query results or encounter exceptions when referenced files do not match stored database state.

CVSS v4.0 evaluation rates Vulnerable System Integrity as High (VI:H) due to note body deletion and Vulnerable System Availability as Low (VA:L) due to state desynchronization. Confidentiality remains unaffected (VC:N). CISA KEV and threat intelligence sources confirm no active exploitation in the wild.

Remediation & Workarounds

Upgrade obsidian-tc to version 1.31.4 or higher. The updated version enforces ownership validation via assertNoteOwnership and transactional database rollbacks.

If immediate patching cannot be deployed, enable snapshot functionality by setting snapshots.enabled: true in obsidian-tc.config.json. Pre-write snapshots allow administrators to recover overwritten files using restore_note tools.

Additionally, configure strict path access control lists by specifying writePaths: ["memory/**"] in configuration files. Restricting write scopes prevents memory operations from accessing or overwriting hand-authored notes outside designated subdirectories.

Technical Appendix

CVSS Score
7.1/ 10

Affected Systems

obsidian-tc (Obsidian Turbocharged) server versions >= 1.0.1, < 1.31.4
AttributeDetail
CWE IDCWE-459, CWE-863
CVSS v4.0 Score7.1 (HIGH)
CVSS v4.0 VectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Attack VectorNetwork
Privileges RequiredLow (PR:L)
Exploit StatusNone (No public exploit available)
CISA KEV StatusNot Listed
CWE-459
Incomplete Cleanup

Vulnerability Timeline

Vulnerability identified during internal development review of PR #978
2026-09-25
Fix commit 99f7914ca0fbeed92e7c4d39cc8c3e5830dab133 merged
2026-09-25
Patched version 1.31.4 released
2026-09-26
GitHub Security Advisory GHSA-r3g7-r4hr-m258 published and CVE-2026-115478 assigned
2026-10-23

References & Sources

  • [1]NVD - CVE-2026-115478
  • [2]CVE.org - CVE-2026-115478
  • [3]GitHub Security Advisory GHSA-r3g7-r4hr-m258
  • [4]Pull Request #978: Memory Lifecycle Fixes
  • [5]Fix Commit 99f7914ca0fbeed92e7c4d39cc8c3e5830dab133
  • [6]Release v1.31.4
  • [7]obsidian-tc Changelog

More Reports

•about 1 hour ago•CVE-2026-62297
7.5

CVE-2026-62297: Uncontrolled Memory Allocation and Denial of Service in ag-psd

An uncontrolled memory allocation vulnerability exists in ag-psd versions prior to 31.0.0. When parsing Adobe Photoshop Document (PSD) files, the readPsd() function reads image dimensions and color depth directly from the file header and allocates off-heap typed arrays without validating whether the requested memory size is proportional to the input stream or bounded by operational thresholds. An unauthenticated attacker can supply a crafted 52-byte PSD payload that triggers an immediate 3.35 GB memory allocation, resulting in process termination via the operating system Out-Of-Memory (OOM) killer.

Amit Schendel
Amit Schendel
2 views•10 min read
•about 2 hours ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
3 views•12 min read
•about 3 hours ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
6 views•12 min read
•about 4 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
5 views•10 min read
•about 5 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 6 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read