CVE-2024-56138: Github.com/notaryproject/notation go Notation-go's Timestamp Signature Generation Lacks Vulnerability
MODERATECVE-2024-56138 is a MODERATE (CVSS 4.0) notation-go's timestamp signature generation lacks vulnerability (CWE-299: Improper Check for Certificate Revocation) affecting Github.com/notaryproject/notation go libraries in the Go ecosystem. The issue involves notation-go's timestamp signature generation lacks certificate revocation check. Remediation is available by upgrading affected packages to version 1.3.0-rc.2.
CVE-2024-56138 at a Glance
Security Impact
CVSS: 4.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2024-56138
To remediate this vulnerability, upgrade all affected Github.com/notaryproject/notation go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/notaryproject/notation-go to 1.3.0-rc.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/notaryproject/notation-go
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-56138, inspect your project dependencies for Github.com/notaryproject/notation go:
inspect dependencies for github.com/notaryproject/notation-go
Analyze the terminal output to locate any version of Github.com/notaryproject/notation go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.0-rc.2), 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-299: Improper Check for Certificate Revocation, where the product does not check or incorrectly checks the revocation status of a certificate, which may cause it to use a certificate that has been compromised. In Github.com/notaryproject/notation go, 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
CVE-2024-56138 Affected Github.com/notaryproject/notation go Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/notaryproject/notation-go
|
Go |
≥ 1.2.0-beta.1
< 1.3.0-rc.2
|
1.3.0-rc.2
|
References
Frequently Asked Questions
What is CVE-2024-56138?
Which Github.com/notaryproject/notation go versions are affected?
What version fixes CVE-2024-56138?
Is github.com/notaryproject/notation-go affected?
What is the CVSS score of CVE-2024-56138?
What CWE is associated with CVE-2024-56138?
How can I check Go dependencies for CVE-2024-56138?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-45v3-38pc-874v",
"modified" : "2025-01-14T21:05:54Z",
"published" : "2025-01-13T16:14:07Z",
"aliases" : [ "CVE-2024-56138" ],
"summary" : "notation-go's timestamp signature generation lacks certificate revocation check",
"details" : "This issue was identified during Quarkslab's audit of the timestamp feature.\n\n### Summary\nDuring the timestamp signature generation, the revocation status of the certificate(s) used to generate the timestamp signature was not verified.\n\n### Details\nDuring timestamp signature generation, notation-go did not check the revocation status of the certificate chain used by the TSA. This oversight creates a vulnerability that could be exploited through a Man-in-The-Middle attack. An attacker could potentially use a compromised, intermediate, or revoked leaf certificate to generate a malicious countersignature, which would then be accepted and stored by `notation`.\n\n### Impact\nThis could lead to denial of service scenarios, particularly in CI/CD environments during signature verification processes because timestamp signature would fail due to the presence of a revoked certificate(s) potentially disrupting operations.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/notaryproject/notation-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0-beta.1"
}, {
"fixed" : "1.3.0-rc.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.3.0-rc.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/notaryproject/notation-go/security/advisories/GHSA-45v3-38pc-874v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56138"
}, {
"type" : "WEB",
"url" : "https://github.com/notaryproject/notation-go/commit/e7005a6d13e5ba472d4e166fbb085152f909e102"
}, {
"type" : "WEB",
"url" : "https://github.com/notaryproject/notation-go/commit/e99be1954a15673020150c5f8800b8174cd7428d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/notaryproject/notation-go"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3381"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-299" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-13T16:14:07Z",
"nvd_published_at" : "2025-01-13T22:15:14Z"
}
}