{
  "document": {
    "aggregate_severity": {
      "text": "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"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "tlp": {
        "label": "WHITE"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "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.",
        "title": "Summary"
      },
      {
        "category": "other",
        "text": "Internal, the manufacturer's security review of 2026-11-13",
        "title": "Reported by"
      },
      {
        "category": "other",
        "text": "Not applicable; not known to be actively exploited.",
        "title": "CRA Article 14 notification"
      }
    ],
    "publisher": {
      "category": "vendor",
      "name": "Primitive Engineering",
      "namespace": "https://primitive-engineering.se"
    },
    "title": "Policy proposal recorded under a blob id that does not name its statement",
    "tracking": {
      "current_release_date": "2026-11-13T00:00:00Z",
      "generator": {
        "engine": {
          "name": "Watchsong",
          "version": "0.0.49"
        }
      },
      "id": "ZSA-2026-011",
      "initial_release_date": "2026-11-13T00:00:00Z",
      "revision_history": [
        {
          "date": "2026-11-13T00:00:00Z",
          "number": "1",
          "summary": "fix-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."
        }
      ],
      "status": "final",
      "version": "1"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version_range",
                "name": "vers:semver/\u003c0.0.106",
                "product": {
                  "name": "Primitive Engineering ZeGit Control Plane (z-backend) vers:semver/\u003c0.0.106",
                  "product_id": "CSAFPID-0001"
                }
              },
              {
                "category": "product_version_range",
                "name": "vers:semver/\u003e=0.0.106|\u003c0.1.58",
                "product": {
                  "name": "Primitive Engineering ZeGit Control Plane (z-backend) vers:semver/\u003e=0.0.106|\u003c0.1.58",
                  "product_id": "CSAFPID-0002"
                }
              },
              {
                "category": "product_version_range",
                "name": "vers:semver/\u003e=0.1.58",
                "product": {
                  "name": "Primitive Engineering ZeGit Control Plane (z-backend) vers:semver/\u003e=0.1.58",
                  "product_id": "CSAFPID-0003"
                }
              }
            ],
            "category": "product_name",
            "name": "ZeGit Control Plane (z-backend)"
          }
        ],
        "category": "vendor",
        "name": "Primitive Engineering"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cwe": {
        "id": "CWE-345",
        "name": "Insufficient Verification of Data Authenticity"
      },
      "notes": [
        {
          "category": "description",
          "text": "POST /policy/propose stored the proposal under the blob id the client supplied and showed owners the statement the client supplied, without checking that one is the git object id of the other. Since v0.1.58 the Control Plane refuses, with 400, a blob that is not the 40- or 64-character lower-case git blob id of the statement bytes sent, before it verifies or stores anything. zg already sends matching values, so honest clients are unaffected.",
          "title": "Description"
        },
        {
          "category": "other",
          "text": "CWE-345 Insufficient Verification of Data Authenticity\nCWE-451 User Interface (UI) Misrepresentation of Critical Information",
          "title": "Problem types"
        }
      ],
      "product_status": {
        "fixed": [
          "CSAFPID-0003"
        ],
        "known_affected": [
          "CSAFPID-0002"
        ],
        "known_not_affected": [
          "CSAFPID-0001"
        ]
      },
      "release_date": "2026-11-13T00:00:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "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.",
          "product_ids": [
            "CSAFPID-0002"
          ]
        },
        {
          "category": "mitigation",
          "details": "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 \u003cblob\u003e 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.",
          "product_ids": [
            "CSAFPID-0002"
          ]
        }
      ],
      "title": "Policy proposal blob id not bound to the statement it carries"
    }
  ]
}
