Skip to content

Self-update attestation verification is scoped to `--owner=php`, not `--repo=php/pie`

Low
asgrim published GHSA-p4j8-36rr-gjfq May 26, 2026

Package

No package listed

Affected versions

>1.3.0

Patched versions

1.3.13+, 1.4.5+, 1.5.0+

Description

Impact

When a user runs pie self-update, the gh-CLI verification path runs:

gh attestation verify --owner=php <downloaded.phar>

(src/SelfManage/Verify/GithubCliAttestationVerification.php:48-54.)

--owner=php scopes the lookup to the GitHub php organisation. It does
not pin the source repository. Any Sigstore attestation produced by any
repo under the php org will satisfy the gate, regardless of whether the
artefact actually came from php/pie.

The OpenSSL fallback verifier already pins
SOURCE_REPOSITORY_URI = https://github.com/php/pie
(FallbackVerificationUsingOpenSsl.php:22-26), so the two paths disagree
on strictness, and VerifyPieReleaseUsingAttestation::verify runs the
looser one first (VerifyPieReleaseUsingAttestation.php:32-45).

Fix

Add --repo=php/pie to the verification command at
src/SelfManage/Verify/GithubCliAttestationVerification.php:48-54:

        $verificationCommand = [
            $gh,
            self::GH_ATTESTATION_COMMAND,
            'verify',
-           '--owner=php',
+           '--repo=php/pie',
            $pharFilename->filePath,
        ];

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N

CVE ID

No known CVE

Weaknesses

Insufficient Verification of Data Authenticity

The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. Learn more on MITRE.

Credits