MEDIUM · CVSS 4.0 EPSS 0.1% · 0th percentile CWE-347

CVE-2026-71533: Mareforma: search_claims skips verify-on-read, serving forged rows

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-m29v-3g7g-9c63

Summary

The Mareforma library's search_claims function fails to perform mandatory signature verification on read, allowing forged or tampered data to bypass security checks. Developers using the library should update to version 0.3.8 immediately to restore consistency with query_claims.

Who is affected

Affected deployments are those using Mareforma versions 0.3.7 to search and query claims data. An attacker with database write access or the ability to forge validation envelopes can inject tampered high-trust rows that appear valid to search consumers, despite the documented expectation that such rows should be excluded.

Exploitability

The vulnerability requires local access with low privileges and does not require complex attack conditions. Current EPSS data indicates an extremely low probability of exploitation, and the issue is not listed on the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI mareforma >= 0.3.7, < 0.3.8 0.3.8 python -m pip install 'mareforma>=0.3.8'

CVSS 4.0 vector

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

Attack vectorLocal
Attack complexityLow
Attack requirementsNone
Privileges requiredLow
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)High
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Is this vulnerability being actively exploited in the wild?

No. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) database.

Why does this flaw exist if there is a documented tamper guarantee?

The flaw exists because search_claims skips the _row_verified_on_read method, which is correctly implemented in query_claims, causing a mismatch in how trusted data is projected.

What is the primary risk of using an affected version?

The primary risk is that consumers of search_claims receive forged or tampered rows that appear legitimate because the 'verified' key is missing, potentially leading to unauthorized data processing.

Original advisory description
## 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.

References

Source records: GHSA-m29v-3g7g-9c63 (OSV.dev) · EPSS by FIRST, 2026-11-21.