Skip to content

CVE-2021-41190 (Medium) detected in github.com/opencontainers/Image-spec-v1.0.1, github.com/docker/distribution-v2.7.1+incompatible #45

@mend-bolt-for-github

Description

@mend-bolt-for-github

CVE-2021-41190 - Medium Severity Vulnerability

Vulnerable Libraries - github.com/opencontainers/Image-spec-v1.0.1, github.com/docker/distribution-v2.7.1+incompatible

github.com/opencontainers/Image-spec-v1.0.1

OCI Image Format

Library home page: https://proxy.golang.org/github.com/opencontainers/image-spec/@v/v1.0.1.zip

Dependency Hierarchy:

  • github.com/genuinetools/reg-v0.16.1 (Root Library)
    • github.com/docker/distribution-v2.7.1+incompatible
      • github.com/opencontainers/Image-spec-v1.0.1 (Vulnerable Library)
github.com/docker/distribution-v2.7.1+incompatible

The Docker toolset to pack, ship, store, and deliver content

Library home page: https://proxy.golang.org/github.com/docker/distribution/@v/v2.7.1+incompatible.zip

Dependency Hierarchy:

  • github.com/genuinetools/reg-v0.16.1 (Root Library)
    • github.com/docker/distribution-v2.7.1+incompatible (Vulnerable Library)

Found in HEAD commit: 2d8758c5c6af81f1b5149d3ef236b7f962895dbe

Found in base branch: main

Vulnerability Details

The OCI Distribution Spec project defines an API protocol to facilitate and standardize the distribution of content. In the OCI Distribution Specification version 1.0.0 and prior, the Content-Type header alone was used to determine the type of document during push and pull operations. Documents that contain both “manifests” and “layers” fields could be interpreted as either a manifest or an index in the absence of an accompanying Content-Type header. If a Content-Type header changed between two pulls of the same digest, a client may interpret the resulting content differently. The OCI Distribution Specification has been updated to require that a mediaType value present in a manifest or index match the Content-Type header used during the push and pull operations. Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields if they are unable to update to version 1.0.1 of the spec.

Publish Date: 2021-11-17

URL: CVE-2021-41190

CVSS 3 Score Details (5.0)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-qq97-vm5h-rrhg

Release Date: 2021-11-17

Fix Resolution: v2.8.0


Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions