CVE-2022-39237: Github.com/sylabs/sif/v2 SIF's Digital Signature Hash Algorithms Vulnerability
MODERATECVE-2022-39237 is a MODERATE (CVSS 6.3) sif's digital signature hash algorithms vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Github.com/sylabs/sif/v2 libraries in the Go ecosystem. The issue involves sif's digital signature hash algorithms not validated. Remediation is available by upgrading affected packages to version 2.8.1.
CVE-2022-39237 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2022-39237
To remediate this vulnerability, upgrade all affected Github.com/sylabs/sif/v2 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/sylabs/sif/v2 to 2.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/sylabs/sif/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-39237, inspect your project dependencies for Github.com/sylabs/sif/v2:
inspect dependencies for github.com/sylabs/sif/v2
Analyze the terminal output to locate any version of Github.com/sylabs/sif/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.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-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In Github.com/sylabs/sif/v2, 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-2022-39237 Affected Github.com/sylabs/sif/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/sylabs/sif/v2
|
Go |
< 2.8.1
|
2.8.1
|
References
Frequently Asked Questions
What is CVE-2022-39237?
Which Github.com/sylabs/sif/v2 versions are affected?
What version fixes CVE-2022-39237?
Is github.com/sylabs/sif/v2 affected?
What is the CVSS score of CVE-2022-39237?
What CWE is associated with CVE-2022-39237?
How can I check Go dependencies for CVE-2022-39237?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m5m3-46gj-wch8",
"modified" : "2023-01-10T16:09:12Z",
"published" : "2022-10-06T19:54:55Z",
"aliases" : [ "CVE-2022-39237" ],
"summary" : "SIF's Digital Signature Hash Algorithms Not Validated",
"details" : "### Impact\n\nThe `github.com/sylabs/sif/v2/pkg/integrity` package does not verify that the hash algorithm(s) used are cryptographically secure when verifying digital signatures.\n\n### Patches\n\nA patch is available in version >= v2.8.1 of the module. Users are encouraged to upgrade.\n\nThe patch is commit https://github.com/sylabs/sif/commit/07fb86029a12e3210f6131e065570124605daeaa\n\n### Workarounds\n\nUsers may independently validate that the hash algorithm(s) used for metadata digest(s) and signature hash are cryptographically secure.\n\n### References\n\n* [CVE-2004-2761](https://nvd.nist.gov/vuln/detail/cve-2004-2761)\n* [CVE-2005-4900](https://nvd.nist.gov/vuln/detail/cve-2005-4900)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [github.com/sylabs/sif](https://github.com/sylabs/sif/issues/new)\n* Email us at [security@sylabs.io](mailto:security@sylabs.io)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/sylabs/sif/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sylabs/sif/security/advisories/GHSA-m5m3-46gj-wch8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39237"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/sif/commit/07fb86029a12e3210f6131e065570124605daeaa"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sylabs/sif"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/sif/releases/tag/v2.8.1"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/cve-2004-2761"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/cve-2005-4900"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-1045"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202210-19"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-327", "CWE-347" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-06T19:54:55Z",
"nvd_published_at" : "2022-10-06T18:16:00Z"
}
}