VDB
Sign up
MEDIUM5.3

GHSA-273p-m2cw-6833

Rekor's COSE v0.0.1 entry type nil pointer dereference in Canonicalize via empty Message

Quick fix

GHSA-273p-m2cw-6833 — github.com/sigstore/rekor: upgrade to the fixed version with the command below.

go get github.com/sigstore/rekor@v1.5.0

Details

## Summary

Rekor’s cose v0.0.1 entry implementation can panic on attacker-controlled input when canonicalizing a proposed entry with an empty `spec.message`. `validate()` returns nil (success) when `message` is empty, leaving `sign1Msg` uninitialized, and `Canonicalize()` later dereferences `v.sign1Msg.Payload`.

## Impact

A malformed proposed entry of the `cose/v0.0.1` type can cause a panic on a thread within the Rekor process. The thread is recovered so the client receives a 500 error message and service still continues, so the availability impact of this is minimal.

## Patches

Upgrade to v1.5.0

## Workarounds

None

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/sigstore/rekor
Introduced in: 0Fixed in: 1.5.0
Fixgo get github.com/sigstore/rekor@v1.5.0

References