原始 OSV JSON{
"id": "GHSA-9hfg-pxr6-q4vp",
"aliases": [
"CVE-2021-45709"
],
"details": "The implementation does not enforce alignment requirements on input slices while incorrectly assuming 4-byte alignment through an unsafe call to std::slice::from_raw_parts_mut, which breaks the contract and introduces undefined behavior.\n\nThis affects Chacha20 encryption and decryption in crypto2.",
"summary": "Use of a Broken or Risky Cryptographic Algorithm in crypto2",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.1.2"
}
]
}
],
"package": {
"name": "crypto2",
"ecosystem": "crates.io"
}
}
],
"modified": "2023-06-13T17:23:04Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2022-01-06T22:04:51Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-45709",
"type": "ADVISORY"
},
{
"url": "https://github.com/shadowsocks/crypto2/issues/27",
"type": "WEB"
},
{
"url": "https://github.com/shadowsocks/crypto2",
"type": "PACKAGE"
},
{
"url": "https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/crypto2/RUSTSEC-2021-0121.md",
"type": "WEB"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0121.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-119"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2021-12-27T00:15:00Z",
"github_reviewed_at": "2022-01-05T22:55:41Z"
}
}