CVE-2025-24882: Github.com/regclient/regclient Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-qv35-3gw6-8q4j
CVSS 5.2
CWE-20 CWE-345
Published
Advisory Summary

CVE-2025-24882 is a MODERATE (CVSS 5.2) security vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Github.com/regclient/regclient libraries in the Go ecosystem. The issue involves in regclient, pinned manifest digests may be ignored. Remediation is available by upgrading affected packages to version 0.7.1.

CVE-2025-24882 at a Glance

CVE Identifier CVE-2025-24882
GHSA Identifier GHSA-qv35-3gw6-8q4j
Severity MODERATE
CVSS v3.1 Base Score 5.2
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/regclient/regclient
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.2

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

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

How to Fix CVE-2025-24882

To remediate this vulnerability, upgrade all affected Github.com/regclient/regclient 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/regclient/regclient fixed: 0.7.1
Upgrade github.com/regclient/regclient to 0.7.1
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/regclient/regclient

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-24882, inspect your project dependencies for Github.com/regclient/regclient:

inspect dependencies for github.com/regclient/regclient

Analyze the terminal output to locate any version of Github.com/regclient/regclient in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/regclient/regclient, 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

### Impact A malicious registry could return a different digest for a pinned manifest without detection. ### Patches This has been fixed in the v0.7.1 release. ### Workarounds After running a `regclient.ManifestGet`, the returned digest can be compared to the requested digest.

CVE-2025-24882 Affected Github.com/regclient/regclient Versions

1 component(s)
Fixed Versions:
0.7.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/regclient/regclient
Go
< 0.7.1
0.7.1

References

Frequently Asked Questions

What is CVE-2025-24882?
CVE-2025-24882 is a security vulnerability in Github.com/regclient/regclient involving In regclient, pinned manifest digests may be ignored under CWE-20: Improper Input Validation.
Which Github.com/regclient/regclient versions are affected?
Affected versions include releases prior to 0.7.1 across affected packages: github.com/regclient/regclient.
What version fixes CVE-2025-24882?
Upgrading to 0.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/regclient/regclient affected?
Yes, github.com/regclient/regclient is affected in releases prior to 0.7.1. Upgrade your dependency to 0.7.1 or later.
What is the CVSS score of CVE-2025-24882?
CVE-2025-24882 has a CVSS v3.1 base score of 5.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:N.
What CWE is associated with CVE-2025-24882?
CVE-2025-24882 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2025-24882?
Run the dependency tree command: 'inspect dependencies for github.com/regclient/regclient'. 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-qv35-3gw6-8q4j",
  "modified" : "2025-01-29T19:04:36Z",
  "published" : "2024-08-05T14:46:22Z",
  "aliases" : [ "CVE-2025-24882" ],
  "summary" : "In regclient, pinned manifest digests may be ignored",
  "details" : "### Impact\nA malicious registry could return a different digest for a pinned manifest without detection.\n\n### Patches\nThis has been fixed in the v0.7.1 release.\n\n### Workarounds\nAfter running a `regclient.ManifestGet`, the returned digest can be compared to the requested digest.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/regclient/regclient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/regclient/regclient/security/advisories/GHSA-qv35-3gw6-8q4j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24882"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/regclient/regclient/commit/7d17cff26c22196b5ddd66bda8c5ee4abf3d1269"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/regclient/regclient"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3038"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-345" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-05T14:46:22Z",
    "nvd_published_at" : "2025-01-29T18:15:47Z"
  }
}