GHSA-qq97-vm5h-rrhg

Suggest an improvement
Source
https://github.com/advisories/GHSA-qq97-vm5h-rrhg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-qq97-vm5h-rrhg/GHSA-qq97-vm5h-rrhg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-qq97-vm5h-rrhg
Aliases
Related
Published
2022-02-08T18:53:56Z
Modified
2023-11-01T05:11:34.791366Z
Severity
  • 3.0 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N CVSS Calculator
Summary
OCI Manifest Type Confusion Issue
Details

Impact

Systems that rely on digest equivalence for image attestations may be vulnerable to type confusion.

Patches

Upgrade to at least v2.8.0-beta.1 if you are running v2.x release. If you use the code from the main branch, update at least to the commit after b59a6f827947f9e0e67df0cfb571046de4733586.

Workarounds

There is no way to work around this issue without patching.

References

Due to an oversight in the OCI Image Specification that removed the embedded mediaType field from manifests, a maliciously crafted OCI Container Image can cause registry clients to parse the same image in two different ways without modifying the image’s digest by modifying the Content-Type header returned by a registry. This can invalidate a common pattern of relying on container image digests for equivalence.

For more information

If you have any questions or comments about this advisory: * Open an issue in distribution * Open an issue in distribution-spec * Email us at cncf-distribution-security@lists.cncf.io

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-843"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2022-02-08T18:53:56Z"
}
References

Affected packages

Go / github.com/docker/distribution

Package

Name
github.com/docker/distribution
View open source insights on deps.dev
Purl
pkg:golang/github.com/docker/distribution

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.8.0