Skip to content
High 7.0

Mareforma の脆弱性、署名の検証漏れで偽造された主張が正規扱いになるおそれ

CVE-2026-71536 First seen on SecPulse

Summary

Mareforma の 0.3.0 から 0.3.8 より前の版では、verify_bundle が個々の主張の署名を確認しないため、署名が無い・無効・偽造された主張も正規のものとして受け入れられます。修正版は 0.3.8 です。0.3.8 へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Mareforma の 0.3.0 から 0.3.8 より前の版では、verify_bundle が個々の主張の署名を確認しないため、署名が無い・無効・偽造された主張も正規のものとして受け入れられます。修正版は 0.3.8 です。0.3.8 へ更新してください。

Affected packages

PackageAffected → Fixed
mareformamareforma —
PyPImareforma
≥ 0.3.0, < 0.3.8→ 0.3.8
pipmareforma
< 0.3.8→ 0.3.8
Original description The description as published by the source.

What's wrong

verify_bundle documents that it verifies "a bundle's DSSE envelope AND each per-claim signature", lists "per-claim signature failure" among its raised errors, and promises that partial verification never surfaces "an authenticated bundle that contains some invalid claims" as success. The code does not do this. The JSON-LD predicate built by JSONLDExporter._claim_node carries no signature material (there is no signatureBundle field on the node), so the verify loop has nothing cryptographic to check per claim. It only re-derives each claim's canonical-statement digest from the node fields and compares it to the signed subject list:

chain_input = _signing.canonical_statement({...node fields...}, node.get("evidence") or {})
expected = hashlib.sha256(chain_input).hexdigest()
if subjects[subject_name] != expected:
    raise BundleVerificationError(...)

That digest check is self-referential: the exporter signs both the subject digests and the predicate nodes with the same key. It confirms the bundle is internally consistent as built, not that each claim's purported asserter ever validly signed it. The existing test test_tampered_claim_text_in_predicate_fails asserts a "digest mismatch", confirming digest-only verification is the actual contract.

Severity and impact

Medium. All trust in a bundle collapses to the single exporter key. Whoever holds it (or a malicious exporter) can emit a bundle containing claims whose asserter signature…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details