CVE-2026-71533: Mareforma Search_claims Skips Verify-on-read, Serving Forged Vulnerability

MODERATE
Advisory Identifier: GHSA-m29v-3g7g-9c63
CWE-347
Published
Advisory Summary

CVE-2026-71533 is a MODERATE search_claims skips verify-on-read, serving forged vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Mareforma libraries in the PyPI ecosystem. The issue involves search_claims skips verify-on-read, serving forged rows. Remediation is available by upgrading affected packages to version 0.3.8.

CVE-2026-71533 at a Glance

CVE Identifier CVE-2026-71533
GHSA Identifier GHSA-m29v-3g7g-9c63
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Mareforma
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-71533

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

mareforma fixed: 0.3.8
pip install mareforma>=0.3.8
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 mareforma

How to Check if You Are Affected

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

pip show mareforma

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

Note: The pip show mareforma command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Mareforma, 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

## What's wrong `search_claims` never calls `_row_verified_on_read`. Its row loop applies only the PRELIMINARY-unenrolled filter, then appends the row. `query_claims` runs the same projection but additionally re-verifies REPLICATED/ESTABLISHED signatures on read (line 4023) and drops any row that fails, per the documented tamper guarantee in the comment block above it: a high-trust row whose signature does not verify is excluded from query results entirely. So a tampered or forged high-trust row splits the two read paths. Any process with DB write access, or an attacker copying a genuine validation envelope onto a fresh row, can flip a row to ESTABLISHED. `query()` drops it; `search()` serves it at its persisted trust level. Verified in a runtime check against a forged ESTABLISHED row: ``` query() returns forged row: False search() returns forged row: True # support_level ESTABLISHED, 'verified' key absent ``` The docstring makes this worse: `search_claims` promises "the same projection as query_claims" and that the `include_unverified` filter "applies identically", so callers reasonably trust search results equally. The forged row also lacks the `verified` key entirely, so a consumer cannot tell it went unchecked. ## Severity and impact **High.** The verify-on-read tamper exclusion is a stated trust guarantee, and search is a primary read surface. A forged ESTABLISHED finding that query correctly rejects is served by search as genuine, with no marker that verification was skipped. ## Location - `mareforma/db/core.py:4206` search_claims row loop applies only the PRELIMINARY-unenrolled filter, then appends - `mareforma/db/core.py:4114` search_claims signature and docstring, which claims query_claims-identical semantics - `mareforma/db/core.py:4023` query_claims verify-on-read call that search_claims lacks ## Fix direction Mirror `query_claims`: add a `verify_cache: dict = {}` and, inside the search_claims row loop after the include_unverified check, drop rows that fail `_row_verified_on_read(conn, d, verify_cache)`. Since the verify filter can drop rows even when `include_unverified=True`, remove the single-batch break on `include_unverified` and keep batching until `limit` survivors or the FTS5 match-set is exhausted, with the same scan ceiling `query_claims` uses. Also set `single_trust_domain` / `trust_domain_root` on surviving ESTABLISHED rows if the "same projection" promise is to hold. Do red/green TDD: add a regression test that fails on `main`, then make it pass. ## Quality bar SOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.

CVE-2026-71533 Affected Mareforma Versions

1 component(s)
Fixed Versions:
0.3.8
Product / Package Ecosystem Affected Versions Fixed Version
mareforma
PyPI
≥ 0.3.7
< 0.3.8
All 1 versions
0.3.7
0.3.8

References

Frequently Asked Questions

What is CVE-2026-71533?
CVE-2026-71533 is a security vulnerability in Mareforma involving search_claims skips verify-on-read, serving forged rows under CWE-347: Improper Verification of Cryptographic Signature.
Which Mareforma versions are affected?
Affected versions include releases prior to 0.3.8 across affected packages: mareforma.
What version fixes CVE-2026-71533?
Upgrading to 0.3.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mareforma affected?
Yes, mareforma is affected in releases prior to 0.3.8. Upgrade your dependency to 0.3.8 or later.
What CWE is associated with CVE-2026-71533?
CVE-2026-71533 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check PyPI dependencies for CVE-2026-71533?
Run the dependency tree command: 'pip show mareforma'. 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-m29v-3g7g-9c63",
  "modified" : "2026-11-19T16:00:52Z",
  "published" : "2026-11-19T16:00:52Z",
  "aliases" : [ "CVE-2026-71533" ],
  "summary" : "Mareforma: search_claims skips verify-on-read, serving forged rows",
  "details" : "## What's wrong\n\n`search_claims` never calls `_row_verified_on_read`. Its row loop applies only the PRELIMINARY-unenrolled filter, then appends the row. `query_claims` runs the same projection but additionally re-verifies REPLICATED/ESTABLISHED signatures on read (line 4023) and drops any row that fails, per the documented tamper guarantee in the comment block above it: a high-trust row whose signature does not verify is excluded from query results entirely.\n\nSo a tampered or forged high-trust row splits the two read paths. Any process with DB write access, or an attacker copying a genuine validation envelope onto a fresh row, can flip a row to ESTABLISHED. `query()` drops it; `search()` serves it at its persisted trust level. Verified in a runtime check against a forged ESTABLISHED row:\n\n```\nquery() returns forged row: False\nsearch() returns forged row: True   # support_level ESTABLISHED, 'verified' key absent\n```\n\nThe docstring makes this worse: `search_claims` promises \"the same projection as query_claims\" and that the `include_unverified` filter \"applies identically\", so callers reasonably trust search results equally. The forged row also lacks the `verified` key entirely, so a consumer cannot tell it went unchecked.\n\n## Severity and impact\n\n**High.** The verify-on-read tamper exclusion is a stated trust guarantee, and search is a primary read surface. A forged ESTABLISHED finding that query correctly rejects is served by search as genuine, with no marker that verification was skipped.\n\n## Location\n\n- `mareforma/db/core.py:4206` search_claims row loop applies only the PRELIMINARY-unenrolled filter, then appends\n- `mareforma/db/core.py:4114` search_claims signature and docstring, which claims query_claims-identical semantics\n- `mareforma/db/core.py:4023` query_claims verify-on-read call that search_claims lacks\n\n## Fix direction\n\nMirror `query_claims`: add a `verify_cache: dict = {}` and, inside the search_claims row loop after the include_unverified check, drop rows that fail `_row_verified_on_read(conn, d, verify_cache)`. Since the verify filter can drop rows even when `include_unverified=True`, remove the single-batch break on `include_unverified` and keep batching until `limit` survivors or the FTS5 match-set is exhausted, with the same scan ceiling `query_claims` uses. Also set `single_trust_domain` / `trust_domain_root` on surviving ESTABLISHED rows if the \"same projection\" promise is to hold.\n\nDo red/green TDD: add a regression test that fails on `main`, then make it pass.\n\n## Quality bar\n\nSOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mareforma"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.7"
      }, {
        "fixed" : "0.3.8"
      } ]
    } ],
    "versions" : [ "0.3.7" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/security/advisories/GHSA-m29v-3g7g-9c63"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-71533"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/pull/58"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/commit/8b5291792128326a22f240123659d2754446c194"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mareforma/mareforma"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/releases/tag/v0.3.8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T16:00:52Z",
    "nvd_published_at" : "2026-11-18T23:17:21Z"
  }
}