You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmcp_verify.tcg_event_log: _parse_spec_id and parse_event_log accept duplicate algorithm IDs, mismatched digest sizes for known algorithms, and trailing Spec ID bytes #812
_parse_spec_id in src/cmcp_verify/tcg_event_log.py accepts duplicate alg_id declarations, digest_size == 0, and wrong digest_size values for known algorithms (ALG_SHA1, ALG_SHA256, ALG_SHA384, ALG_SHA512), allowing a crafted Spec ID header to declare e.g. ALG_SHA256 with digest_size = 4.
_parse_spec_id does not validate the trailing vendorInfoSize byte and vendorInfo length (offset + 1 + vendor_info_size == len(event_data)).
parse_event_log accepts duplicate alg_id entries within a single TCG_PCR_EVENT2 digest list (silently overwriting earlier digests for the same algorithm) and does not reject non-bytesdata.
Activity
github-actions commentedon Oct 25, 2026
🟡 Contributor Check: MEDIUM
Automated check by AgenTrust Contributor Check.
fix(verify/tcg_event_log): reject duplicate algorithm IDs, mismatched…