DHI-n3qf-acnp-cnt2-gk6d

Source
https://scout.docker.com/v/DHI-n3qf-acnp-cnt2-gk6d
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-n3qf-acnp-cnt2-gk6d
Upstream
  • GHSA-fx35-mq7g-6g98
Published
2026-11-11T15:44:14Z
Modified
2026-11-18T20:03:32Z
Summary
## Description
Details

Description

In cosign verify-blob and cosign verify-blob-attestation, keyless verification using --certificate-identity and --certificate-oidc-issuer (or their regular expression equivalents) can be bypassed when a legacy JSON --bundle is supplied.

Note that this does not affect verification with the newer standardized bundle format, the default in Cosign v3.

When reading the cert field of a legacy bundle, if the contents failed to parse as an X.509 certificate, Cosign silently fell back to loading the input as a raw public key and populated co.SigVerifier. In downstream verification, whenever co.SigVerifier is set, X.509 certificate chain validation and policy enforcement (CheckCertificatePolicy) are skipped. As a result, --certificate-identity and --certificate-oidc-issuer flags are ignored, and verification succeeds as long as the signature is cryptographically valid for the embedded public key.

Additionally, because the fallback unconditionally assigned to co.SigVerifier, if an operator passed an explicitly trusted --key alongside a legacy bundle containing a public key, the public key embedded in the bundle would overwrite the key provided via --key.

Affected Commands & Formats

  • Affected: cosign verify-blob and cosign verify-blob-attestation when verifying legacy JSON bundles (LocalSignedPayload).
  • Not Affected:
    • OCI container image verification (cosign verify and cosign verify-attestation).
    • Verification using the modern Sigstore protobuf bundle format (--new-bundle-format, e.g., application/vnd.dev.sigstore.bundle+json).

Impact

An attacker can bypass keyless identity and OIDC issuer pinning in cosign verify-blob and cosign verify-blob-attestation by shipping a legacy bundle whose cert field contains an arbitrary bare public key (-----BEGIN PUBLIC KEY-----) instead of a Fulcio X.509 certificate.

  • False assurance of identity enforcement: Verification completes with exit code 0 and reports Verified OK, causing operators or CI/CD pipelines to trust and consume artifacts signed by an unauthorized key.
  • Key override: If an operator explicitly specifies --key while verifying against a legacy bundle containing a bare public key, the attacker's bundle key silently overrides --key.

Patches

Upgrade to v3.1.3 or v2.6.5.

Workarounds

Adopt the Standardized Protobuf Bundle Format:

Migrate from legacy JSON bundles to the modern Sigstore protobuf bundle format (--new-bundle-format). The protobuf bundle verification engine is not affected by this vulnerability. You can upgrade bundles with cosign bundle create.

References

Affected packages

Docker Hardened Images:Alpine:3.23
cosign-2-dev

Package

Name
cosign-2-dev
Purl
pkg:apk/dhi/cosign-2-dev

Affected ranges

Affected versions

2.*
2.6.2-r0
2.6.2-r1
2.6.2-r2
2.6.2-r3
2.6.3-r0
2.6.3-r1
2.6.3-r2
2.6.3-r3
2.6.3-r4
2.6.3-r5
2.6.3-r6
2.6.3-r7
2.6.3-r8
2.6.3-r9
2.6.3-r10
2.6.4-r0
2.6.4-r1
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.6.5-r9
2.6.5-r10
2.6.5-r11
2.6.5-r12
2.6.5-r13
2.6.5-r14

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-2-fips-dev

Package

Name
cosign-2-fips-dev
Purl
pkg:apk/dhi/cosign-2-fips-dev

Affected ranges

Affected versions

2.*
2.6.2-r0
2.6.2-r1
2.6.2-r2
2.6.2-r3
2.6.3-r0
2.6.3-r1
2.6.3-r2
2.6.3-r3
2.6.3-r4
2.6.3-r5
2.6.3-r6
2.6.3-r7
2.6.3-r8
2.6.3-r9
2.6.3-r10
2.6.4-r0
2.6.4-r1
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.6.5-r9
2.6.5-r10
2.6.5-r11
2.6.5-r12
2.6.5-r13
2.6.5-r14

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-2-fips

Package

Name
cosign-2-fips
Purl
pkg:apk/dhi/cosign-2-fips

Affected ranges

Affected versions

2.*
2.6.2-r0
2.6.2-r1
2.6.2-r2
2.6.2-r3
2.6.3-r0
2.6.3-r1
2.6.3-r2
2.6.3-r3
2.6.3-r4
2.6.3-r5
2.6.3-r6
2.6.3-r7
2.6.3-r8
2.6.3-r9
2.6.3-r10
2.6.4-r0
2.6.4-r1
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.6.5-r9
2.6.5-r10
2.6.5-r11
2.6.5-r12
2.6.5-r13
2.6.5-r14

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-2

Package

Name
cosign-2
Purl
pkg:apk/dhi/cosign-2

Affected ranges

Affected versions

2.*
2.6.2-r0
2.6.2-r1
2.6.2-r2
2.6.2-r3
2.6.3-r0
2.6.3-r1
2.6.3-r2
2.6.3-r3
2.6.3-r4
2.6.3-r5
2.6.3-r6
2.6.3-r7
2.6.3-r8
2.6.3-r9
2.6.3-r10
2.6.4-r0
2.6.4-r1
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.6.5-r9
2.6.5-r10
2.6.5-r11
2.6.5-r12
2.6.5-r13
2.6.5-r14

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-3-dev

Package

Name
cosign-3-dev
Purl
pkg:apk/dhi/cosign-3-dev

Affected ranges

Affected versions

3.*
3.0.4-r0
3.0.5-r0
3.0.5-r1
3.0.5-r2
3.0.5-r3
3.0.6-r0
3.0.6-r1
3.0.6-r2
3.0.6-r3
3.0.6-r4
3.0.6-r5
3.0.6-r6
3.1.1-r0
3.1.1-r1
3.1.1-r2
3.1.2-r0
3.1.2-r1
3.1.3-r0
3.1.3-r1
3.1.3-r2
3.1.3-r3
3.1.3-r4
3.1.3-r5
3.1.3-r6
3.1.3-r7
3.1.3-r8
3.1.3-r9
3.1.3-r10
3.1.3-r11
3.1.3-r12
3.1.3-r13
3.1.4-r0
3.1.4-r1
3.1.4-r2
3.1.4-r3
3.1.4-r4
3.1.4-r5

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-3-fips-dev

Package

Name
cosign-3-fips-dev
Purl
pkg:apk/dhi/cosign-3-fips-dev

Affected ranges

Affected versions

3.*
3.0.4-r0
3.0.5-r0
3.0.5-r1
3.0.5-r2
3.0.5-r3
3.0.6-r0
3.0.6-r1
3.0.6-r2
3.0.6-r3
3.0.6-r4
3.0.6-r5
3.0.6-r6
3.1.1-r0
3.1.1-r1
3.1.1-r2
3.1.2-r0
3.1.2-r1
3.1.3-r0
3.1.3-r1
3.1.3-r2
3.1.3-r3
3.1.3-r4
3.1.3-r5
3.1.3-r6
3.1.3-r7
3.1.3-r8
3.1.3-r9
3.1.3-r10
3.1.3-r11
3.1.3-r12
3.1.3-r13
3.1.4-r0
3.1.4-r1
3.1.4-r2
3.1.4-r3
3.1.4-r4
3.1.4-r5

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-3-fips

Package

Name
cosign-3-fips
Purl
pkg:apk/dhi/cosign-3-fips

Affected ranges

Affected versions

3.*
3.0.4-r0
3.0.5-r0
3.0.5-r1
3.0.5-r2
3.0.5-r3
3.0.6-r0
3.0.6-r1
3.0.6-r2
3.0.6-r3
3.0.6-r4
3.0.6-r5
3.0.6-r6
3.1.1-r0
3.1.1-r1
3.1.1-r2
3.1.2-r0
3.1.2-r1
3.1.3-r0
3.1.3-r1
3.1.3-r2
3.1.3-r3
3.1.3-r4
3.1.3-r5
3.1.3-r6
3.1.3-r7
3.1.3-r8
3.1.3-r9
3.1.3-r10
3.1.3-r11
3.1.3-r12
3.1.3-r13
3.1.4-r0
3.1.4-r1
3.1.4-r2
3.1.4-r3
3.1.4-r4
3.1.4-r5

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"
cosign-3

Package

Name
cosign-3
Purl
pkg:apk/dhi/cosign-3

Affected ranges

Affected versions

3.*
3.0.4-r0
3.0.5-r0
3.0.5-r1
3.0.5-r2
3.0.5-r3
3.0.6-r0
3.0.6-r1
3.0.6-r2
3.0.6-r3
3.0.6-r4
3.0.6-r5
3.0.6-r6
3.1.1-r0
3.1.1-r1
3.1.1-r2
3.1.2-r0
3.1.2-r1
3.1.3-r0
3.1.3-r1
3.1.3-r2
3.1.3-r3
3.1.3-r4
3.1.3-r5
3.1.3-r6
3.1.3-r7
3.1.3-r8
3.1.3-r9
3.1.3-r10
3.1.3-r11
3.1.3-r12
3.1.3-r13
3.1.4-r0
3.1.4-r1
3.1.4-r2
3.1.4-r3
3.1.4-r4
3.1.4-r5

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"