CVE-2022-31053: Biscuit auth Signature Forgery Vulnerability
CRITICALCVE-2022-31053 is a CRITICAL (CVSS 9.8) signature forgery vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Biscuit auth libraries in the crates.io ecosystem. The issue involves signature forgery in biscuit. Remediation is available by upgrading affected packages to version 2.0.0.
CVE-2022-31053 at a Glance
Security Impact
CVSS: 9.8
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:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-31053
To remediate this vulnerability, upgrade all affected Biscuit auth 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 biscuit-auth to 2.0.0
Upgrade github.com/biscuit-auth/biscuit-go to 2.0.0
<dependency>
<groupId>com.clever-cloud</groupId>
<artifactId>biscuit-java</artifactId>
<version>2.0.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for biscuit-auth
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-31053, inspect your project dependencies for Biscuit auth:
inspect dependencies for biscuit-auth
Analyze the terminal output to locate any version of Biscuit auth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Biscuit auth, 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-31053 Affected Biscuit auth Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
biscuit-auth
|
crates.io |
≥ 1.0.0
< 2.0.0
|
2.0.0
|
|
github.com/biscuit-auth/biscuit-go
|
Go |
< 2.0.0
|
2.0.0
|
|
com.clever-cloud:biscuit-java
|
Maven |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2022-31053?
Which Biscuit auth versions are affected?
What version fixes CVE-2022-31053?
Is biscuit-auth affected?
Is github.com/biscuit-auth/biscuit-go affected?
What is the CVSS score of CVE-2022-31053?
What CWE is associated with CVE-2022-31053?
How can I check crates.io dependencies for CVE-2022-31053?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-75rw-34q6-72cr",
"modified" : "2023-03-07T00:39:38Z",
"published" : "2022-06-17T00:38:03Z",
"aliases" : [ "CVE-2022-31053" ],
"summary" : "Signature forgery in Biscuit",
"details" : "### Impact\n\nThe paper [Cryptanalysis of Aggregate Γ-Signature and Practical Countermeasures in Application to Bitcoin](https://eprint.iacr.org/2020/1484) defines a way to forge valid Γ-signatures, an algorithm that is used in the Biscuit specification version 1.\nIt would allow an attacker to create a token with any access level.\n\nAs Biscuit v1 was still an early version and not broadly deployed, we were able to contact all known users of Biscuit v1 and help them migrate to Biscuit v2.\nWe are not aware of any active exploitation of this vulnerability.\n\n### Patches\n\nThe version 2 of the specification mandates a different algorithm than gamma signatures and as such is not affected by this vulnerability. The Biscuit implementations in Rust, Haskell, Go, Java and Javascript all have published versions following the v2 specification.\n\n### Workarounds\n\nThere is no known workaround, any use of Biscuit v1 should be migrated to v2.\n\n### References\n[Cryptanalysis of Aggregate Γ-Signature and Practical Countermeasures in Application to Bitcoin](https://eprint.iacr.org/2020/1484)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [biscuit-auth/biscuit](https://github.com/biscuit-auth/biscuit)\n* Ask questions on [Matrix](https://matrix.to/#/#biscuit-auth:matrix.org)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "biscuit-auth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "2.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/biscuit-auth/biscuit-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.clever-cloud:biscuit-java"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/biscuit-auth/biscuit/security/advisories/GHSA-75rw-34q6-72cr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31053"
}, {
"type" : "WEB",
"url" : "https://eprint.iacr.org/2020/1484"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-75rw-34q6-72cr"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/biscuit-auth/biscuit"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0564"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T00:38:03Z",
"nvd_published_at" : "2022-06-13T20:15:00Z"
}
}