CVE-2024-3727: Github.com/containers/image Github.com/containers/image Allows Unexpected Authenticated Registry Vulnerability

HIGH
Advisory Identifier: GHSA-6wvf-f2vw-3425
CVSS 8.3
CWE-354
Published
Advisory Summary

CVE-2024-3727 is a HIGH (CVSS 8.3) github.com/containers/image allows unexpected authenticated registry vulnerability (CWE-354: Improper Validation of Integrity Check Value) affecting Github.com/containers/image libraries in the Go ecosystem. The issue involves github.com/containers/image allows unexpected authenticated registry accesses. Remediation is available by upgrading affected packages to version 5.30.1, 5.29.3.

CVE-2024-3727 at a Glance

CVE Identifier CVE-2024-3727
GHSA Identifier GHSA-6wvf-f2vw-3425
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-354: Improper Validation of Integrity Check Value
Affected Product Github.com/containers/image
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-3727

To remediate this vulnerability, upgrade all affected Github.com/containers/image dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/containers/image fixed: 5.30.1
Upgrade github.com/containers/image to 5.30.1
github.com/containers/image/v5 fixed: 5.30.1
Upgrade github.com/containers/image/v5 to 5.30.1
github.com/containers/image/v5 fixed: 5.29.3
Upgrade github.com/containers/image/v5 to 5.29.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/containers/image

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-3727, inspect your project dependencies for Github.com/containers/image:

inspect dependencies for github.com/containers/image

Analyze the terminal output to locate any version of Github.com/containers/image in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.30.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-354: Improper Validation of Integrity Check Value, where the product does not validate or incorrectly validates the integrity check values or "checksums" of a message. this may prevent it from detecting if the data has been modified or corrupted in transmission. In Github.com/containers/image, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A flaw was found in the github.com/containers/image library. This flaw allows attackers to trigger unexpected authenticated registry accesses on behalf of a victim user, causing resource exhaustion, local path traversal, and other attacks.

CVE-2024-3727 Affected Github.com/containers/image Versions

3 component(s)
Fixed Versions:
5.30.15.29.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/containers/image
Go
< 5.30.1
5.30.1
github.com/containers/image/v5
Go
≥ 5.30.0
< 5.30.1
5.30.1
github.com/containers/image/v5
Go
< 5.29.3
5.29.3

References

NVD — CVE-2024-3727 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-3727
Security Fix Commit FIX COMMIT
https://github.com/containers/image/commit/132678b47bae29c710589012668cb85859d88385
Security Fix Commit FIX COMMIT
https://github.com/containers/image/commit/e8948046055060605bd68289d406ce149590c33a
access.redhat.com/errata/rhsa-2024:00... WEB
https://access.redhat.com/errata/RHSA-2024:0045
access.redhat.com/errata/rhsa-2024:90... WEB
https://access.redhat.com/errata/RHSA-2024:9098
access.redhat.com/errata/rhsa-2024:91... WEB
https://access.redhat.com/errata/RHSA-2024:9102
access.redhat.com/errata/rhsa-2024:99... WEB
https://access.redhat.com/errata/RHSA-2024:9960
Github.com/containers/image Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2024-3727
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2274767
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-6wvf-f2vw-3425
Github.com/containers/image Source Repository REPOSITORY
https://github.com/containers/image
Github.com/containers/image Release RELEASE
https://github.com/containers/image/releases/tag/v5.29.3
Github.com/containers/image Release RELEASE
https://github.com/containers/image/releases/tag/v5.30.1
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4HEYS34N55G7NOQZKNEXZKQVNDGEICCD
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6B37TXOKTKDBE2V26X2NSP7JKNMZOFVP
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYT3D2P3OJKISNFKOOHGY6HCUCQZYAVR
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DLND3YDQQRWVRIUPL2G5UKXP5L3VSBBT
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DTOMYERG5ND4QFDHC4ZSGCED3T3ESRSC
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FBZQ2ZRMFEUQ35235B2HWPSXGDCBZHFV
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD2GSBQTBLYADASUBHHZV2CZPTSLIPQJ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QFXMF3VVKIZN7ZMB7PKZCSWV6MOMTGMQ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SFVSMR7TNLO2KPWJSW4CF64C2QMQXCIN
access.redhat.com/errata/rhsa-2024:37... WEB
https://access.redhat.com/errata/RHSA-2024:3718
access.redhat.com/errata/rhsa-2024:41... WEB
https://access.redhat.com/errata/RHSA-2024:4159
access.redhat.com/errata/rhsa-2024:46... WEB
https://access.redhat.com/errata/RHSA-2024:4613
access.redhat.com/errata/rhsa-2024:48... WEB
https://access.redhat.com/errata/RHSA-2024:4850
access.redhat.com/errata/rhsa-2024:49... WEB
https://access.redhat.com/errata/RHSA-2024:4960
access.redhat.com/errata/rhsa-2024:52... WEB
https://access.redhat.com/errata/RHSA-2024:5258
access.redhat.com/errata/rhsa-2024:59... WEB
https://access.redhat.com/errata/RHSA-2024:5951
access.redhat.com/errata/rhsa-2024:60... WEB
https://access.redhat.com/errata/RHSA-2024:6054
access.redhat.com/errata/rhsa-2024:61... WEB
https://access.redhat.com/errata/RHSA-2024:6122
access.redhat.com/errata/rhsa-2024:67... WEB
https://access.redhat.com/errata/RHSA-2024:6708
access.redhat.com/errata/rhsa-2024:68... WEB
https://access.redhat.com/errata/RHSA-2024:6818
access.redhat.com/errata/rhsa-2024:68... WEB
https://access.redhat.com/errata/RHSA-2024:6824
access.redhat.com/errata/rhsa-2024:71... WEB
https://access.redhat.com/errata/RHSA-2024:7164
access.redhat.com/errata/rhsa-2024:71... WEB
https://access.redhat.com/errata/RHSA-2024:7174
access.redhat.com/errata/rhsa-2024:71... WEB
https://access.redhat.com/errata/RHSA-2024:7182
access.redhat.com/errata/rhsa-2024:71... WEB
https://access.redhat.com/errata/RHSA-2024:7187
access.redhat.com/errata/rhsa-2024:79... WEB
https://access.redhat.com/errata/RHSA-2024:7922
access.redhat.com/errata/rhsa-2024:79... WEB
https://access.redhat.com/errata/RHSA-2024:7941
access.redhat.com/errata/rhsa-2024:82... WEB
https://access.redhat.com/errata/RHSA-2024:8260
access.redhat.com/errata/rhsa-2024:84... WEB
https://access.redhat.com/errata/RHSA-2024:8425
access.redhat.com/errata/rhsa-2024:90... WEB
https://access.redhat.com/errata/RHSA-2024:9097

Frequently Asked Questions

What is CVE-2024-3727?
CVE-2024-3727 is a security vulnerability in Github.com/containers/image involving github.com/containers/image allows unexpected authenticated registry accesses under CWE-354: Improper Validation of Integrity Check Value.
Which Github.com/containers/image versions are affected?
Affected versions include releases prior to 5.30.1, 5.29.3 across affected packages: github.com/containers/image, github.com/containers/image/v5.
What version fixes CVE-2024-3727?
Upgrading to 5.30.1, 5.29.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/containers/image affected?
Yes, github.com/containers/image is affected in releases prior to 5.30.1. Upgrade your dependency to 5.30.1 or later.
Is github.com/containers/image/v5 affected?
Yes, github.com/containers/image/v5 is affected in releases prior to 5.30.1, 5.29.3. Upgrade your dependency to 5.30.1, 5.29.3 or later.
What is the CVSS score of CVE-2024-3727?
CVE-2024-3727 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-3727?
CVE-2024-3727 is classified under CWE-354: Improper Validation of Integrity Check Value (The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.).
How can I check Go dependencies for CVE-2024-3727?
Run the dependency tree command: 'inspect dependencies for github.com/containers/image'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6wvf-f2vw-3425",
  "modified" : "2025-02-25T18:39:25Z",
  "published" : "2024-05-14T18:30:52Z",
  "aliases" : [ "CVE-2024-3727" ],
  "summary" : "github.com/containers/image allows unexpected authenticated registry accesses",
  "details" : "A flaw was found in the github.com/containers/image library. This flaw allows attackers to trigger unexpected authenticated registry accesses on behalf of a victim user, causing resource exhaustion, local path traversal, and other attacks.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/containers/image"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.30.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/containers/image/v5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.30.0"
      }, {
        "fixed" : "5.30.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/containers/image/v5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.29.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3727"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/image/commit/132678b47bae29c710589012668cb85859d88385"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/image/commit/e8948046055060605bd68289d406ce149590c33a"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0045"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:9098"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:9102"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:9960"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-3727"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2274767"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6wvf-f2vw-3425"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/containers/image"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/image/releases/tag/v5.29.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/image/releases/tag/v5.30.1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4HEYS34N55G7NOQZKNEXZKQVNDGEICCD"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6B37TXOKTKDBE2V26X2NSP7JKNMZOFVP"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYT3D2P3OJKISNFKOOHGY6HCUCQZYAVR"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DLND3YDQQRWVRIUPL2G5UKXP5L3VSBBT"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DTOMYERG5ND4QFDHC4ZSGCED3T3ESRSC"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FBZQ2ZRMFEUQ35235B2HWPSXGDCBZHFV"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD2GSBQTBLYADASUBHHZV2CZPTSLIPQJ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QFXMF3VVKIZN7ZMB7PKZCSWV6MOMTGMQ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SFVSMR7TNLO2KPWJSW4CF64C2QMQXCIN"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:3718"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4159"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4613"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4850"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4960"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5258"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5951"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6054"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6122"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6708"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6818"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6824"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7164"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7174"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7182"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7187"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7922"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7941"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:8260"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:8425"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:9097"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-354" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:38:29Z",
    "nvd_published_at" : "2024-05-14T15:42:07Z"
  }
}