CVE-2024-21670: Ursa CL-Signatures Revocation Scheme Vulnerability
MODERATECVE-2024-21670 is a MODERATE (CVSS 6.5) cl-signatures revocation scheme vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Ursa libraries in the crates.io ecosystem. The issue involves cl-signatures revocation scheme in ursa has flaws that allow a holder to demonstrate non-revocation of a revoked credential. Remediation is available in the latest vendor maintenance releases.
CVE-2024-21670 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2024-21670
To remediate this vulnerability, upgrade all affected Ursa 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 ursa to Latest secure release
Upgrade anoncreds-clsignatures to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ursa
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-21670, inspect your project dependencies for Ursa:
inspect dependencies for ursa
Analyze the terminal output to locate any version of Ursa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Ursa, 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-21670 Affected Ursa Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ursa
|
crates.io |
≤ 0.3.7
|
|
|
anoncreds-clsignatures
|
crates.io |
|
|
References
Frequently Asked Questions
What is CVE-2024-21670?
Which Ursa versions are affected?
What version fixes CVE-2024-21670?
Is ursa affected?
Is anoncreds-clsignatures affected?
What is the CVSS score of CVE-2024-21670?
What CWE is associated with CVE-2024-21670?
How can I check crates.io dependencies for CVE-2024-21670?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r78f-4q2q-hvv4",
"modified" : "2024-01-19T19:28:20Z",
"published" : "2024-01-16T21:13:43Z",
"aliases" : [ "CVE-2024-21670" ],
"summary" : "CL-Signatures Revocation Scheme in Ursa has flaws that allow a holder to demonstrate non-revocation of a revoked credential",
"details" : "### Summary\n\nThe revocation schema that is part of the Ursa CL-Signatures implementations has a flaw that could impact the privacy guarantees defined by the AnonCreds verifiable credential model, allowing a malicious holder of a revoked credential to generate a valid Non-Revocation Proof for that credential as part of an AnonCreds presentation.\n\n### Details\n\nThe revocation schema that is part of the Ursa CL-Signatures implementation has a flaw that could impact the privacy guarantees defined by the AnonCreds verifiable credential model, allowing a malicious holder of a revoked credential to generate a valid Non-Revocation Proof for that credential as part of an AnonCreds presentation.\n\nThe flaw exists in all CL-Signature versions published from the [Hyperledger Ursa] repository to the [Ursa Rust Crate], and are fixed in all versions published from the [Hyperledger AnonCreds CL-Signatures] repository to the [AnonCreds CL-Signatures Rust Crate].\n\nTo exploit the flaw, a holder must update their wallet (agent) software, replacing the Hyperledger Ursa or AnonCreds CL-Signatures library that generates the proof of non-revocation. This may involve, for example, altering an iOS or Android application published in the respective app stores. A mitigation for this flaw is to use the application attestation capabilities (such as the Android \"[SafetyNet Attestation API]\") offered by the app store vendors to (for example) \"help determine whether your servers are interacting with your genuine app running on a genuine Android device.\"\n\nThe problem is created in the generation of a revocation registry, prior to issuing any credentials. As such, to eliminate the impact of the flaw, the issued credentials must be re-issued based on a correct revocation registry, generated from a correct implementation, such as [Hyperledger AnonCreds CL-Signatures].\n\n[Hyperledger Ursa]: https://github.com/hyperledger-archives/ursa\n[Ursa Rust Crate]: https://crates.io/crates/ursa\n[Hyperledger AnonCreds CL-Signatures]: https://github.com/hyperledger/anoncreds-clsignatures-rs\n[AnonCreds CL-Signatures Rust Crate]: https://crates.io/crates/anoncreds-clsignatures\n[SafetyNet Attestation API]: https://developer.android.com/privacy-and-security/safetynet/attestation\n### Impact\nThe potential impact is as follows:\n\n- A verifier may verify a credential from a holder as being \"not revoked\" when in fact, the holder's credential has been revoked.\n\n### Mitigation\n\nUpgrade libraries/applications using the [Ursa Rust Crate] to any version of the [AnonCreds CL-Signatures Rust Crate]. If your application has issued revocable credentials, once the Issuer library has been upgraded, new revocation registries must be created, and credentials issued from revocation registries created with the the flawed software must be revoked and reissued.\n\nA verifier can detect if a holder presents a flawed revocable credential.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "ursa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.3.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "anoncreds-clsignatures"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 0.1.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/hyperledger-archives/ursa/security/advisories/GHSA-r78f-4q2q-hvv4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21670"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hyperledger-archives/ursa"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-327" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-16T21:13:43Z",
"nvd_published_at" : "2024-01-16T22:15:45Z"
}
}