← Primitive Engineering: security advisories
ZSA-2026-011

Policy proposal recorded under a blob id that does not name its statement

P0published 2026-11-13
This page shows advisory ZSA-2026-011, generated from its source. The same advisory is available as a CSAF 2.0 document.

§1Severity

P0 on the manufacturer's scale (bypass of the owner quorum on a repository's release policy); CVSS 3.1 base score 5.7, CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N

§2Summary

The Control Plane recorded a release-policy proposal from two fields the client sent separately: the git blob id of the policy statement, and the statement itself. It checked only that the id was not empty, never that the id named those bytes. A developer of a repository could push a hostile statement to the gateway (for example one with a Tag Request threshold of 0, a developer approver role, or no validation scope) and propose its blob id together with a harmless statement. Owners approving the proposal by passkey in the console read and approved the harmless statement; the gateway, which loads the statement by id, then put the hostile one in force, either on the developer's own push of the policy ref or when an owner activated it. A policy in force that way can remove the owner approval from release tags and the validation requirement from pushes. Exposed are Control Planes where an identity with the developer role in a repository is not trusted with that repository's release policy, and owners approve policies in the console. Owners who approve with the zg command line read the statement from git and are not deceived. There is no path for an anonymous caller. It was found by reading the code; exploitation was not reproduced against a live deployment and is not known to have occurred.

§3Affected products

ProductStatusVersions
Primitive Engineering ZeGit Control Plane (z-backend)unaffectedbefore 0.0.106
affected0.0.106 to before 0.1.58
unaffected0.1.58 and later

§4Action required

Upgrade the Control Plane to v0.1.58 or later. The fix checks new proposals only: a proposal recorded before the upgrade is not re-checked, so withdraw every proposal still pending from before the upgrade and propose it again. Then, for every governed repository, compare the policy in force on the gateway (the statement under refs/zegit/policy, read with git cat-file -p) with what its owners meant to approve: the threshold, the approver roles and the validation scope. Hosted Control Plane: nothing to do; zegit.io runs v0.1.58.

§5Mitigation

There is no configuration switch. Until upgraded, approve policy proposals with "zg policy approve", which reads the statement from git, rather than by passkey in the console; or, before approving in the console, read the proposal's blob from the gateway with git cat-file -p <blob> and check that it is the statement shown. Activate in the console only a proposal checked that way. Grant the developer role only to identities trusted with the repository's release policy.

§6Reported by

Internal, the manufacturer's security review of 2026-11-13

§7CRA Article 14 notification

Not applicable; not known to be actively exploited.

§8Timeline

  1. 2026-11-13fix-available

    Published. Fixed in v0.1.58, released 2026-11-13, where a proposal is recorded only under the git blob id of the statement it carries.