CVE-2024-23332 Client configured with permissive trust policies susceptible to rollback attack in Notary Project

Medium 4.0 Published Updated

Attackers can serve outdated, vulnerable container images to clients using permissive trust policies, bypassing signature expiry checks.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-23332?

CVE-2024-23332 is a medium-severity vulnerability in notaryproject specifications, published on 19 Jan 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

The Notary Project is a set of specifications and tools intended to provide a cross-industry standard for securing software supply chains by using authentic container images and other OCI artifacts. An external actor with control of a compromised container registry can provide outdated versions of OCI artifacts, such as Images. This could lead artifact consumers with relaxed trust policies (such as `permissive` instead of `strict`) to potentially use artifacts with signatures that are no longer valid, making them susceptible to any exploits those artifacts may contain. In Notary Project, an artifact publisher can control the validity period of artifact by specifying signature expiry during the signing process. Using shorter signature validity periods along with processes to periodically resign artifacts, allows artifact producers to ensure that their consumers will only receive up-to-date artifacts. Artifact consumers should correspondingly use a `strict` or equivalent trust policy that enforces signature expiry. Together these steps enable use of up-to-date artifacts and safeguard against rollback attack in the event of registry compromise. The Notary Project offers various signature validation options such as `permissive`, `audit` and `skip` to support various scenarios. These scenarios includes 1) situations demanding urgent workload deployment, necessitating the bypassing of expired or revoked signatures; 2) auditing of artifacts lacking signatures without interrupting workload; and 3) skipping of verification for specific images that might have undergone validation through alternative mechanisms. Additionally, the Notary Project supports revocation to ensure the signature freshness. Artifact publishers can sign with short-lived certificates and revoke older certificates when necessary. This revocation serves as a signal to inform artifact consumers that the corresponding unexpired artifact is no longer approved by the publisher. This enables the artifact publisher to control the validity of the signature independently of their ability to manage artifacts in a compromised registry.

Weakness: CWE-672

Which versions are affected by CVE-2024-23332?

3 open source packages ship an affected version, including github.com/notaryproject/notation. It affects 1 product.

PackageAffectedFixed in
github.com/notaryproject/notation GoAll versionsNone
github.com/notaryproject/notation GoAll versions to 1.0.0None
github.com/notaryproject/notation GoAll versions to 1.0.0None

Products include Notaryproject Notation-Go.

How do I fix CVE-2024-23332?

No fix has been published for CVE-2024-23332 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-23332 being exploited?

There is no known exploitation of CVE-2024-23332 in the wild and no public exploit code.

Sources

Also known as GHSA-57wx-m636-g3g8, GO-2024-2472.

Is CVE-2024-23332 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free