mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 17:04:32 -06:00
72 lines
3.0 KiB
JSON
72 lines
3.0 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2026-0109",
|
|
"modified": "2026-05-06T06:32:50Z",
|
|
"published": "2026-04-21T12:00:00Z",
|
|
"aliases": [
|
|
"GHSA-g27r-r6ph-vf5r"
|
|
],
|
|
"related": [],
|
|
"summary": "Broken hard revocation handling",
|
|
"details": "Before `sq-git` checks if a commit can be authenticated, it first\nlooks for hard revocations. Because parsing a policy is expensive\nand a project's policy rarely changes, `sq-git` has an\noptimization to only check a policy if it hasn't checked it\nbefore. It does this by maintaining a set of policies that it had\nalready seen keyed on the policy's hash. Unfortunately, due to a\nbug the hash was truncated to be 0 bytes and thus only hard\nrevocations in the target commit were considered. Normally this\nis not a problem as hard revocations are not removed from the\nsigning policy.\n\nAn attacker could nevertheless exploit this flaw as follows.\nConsider Alice and Bob who maintain a project together. If Bob's\ncertificate is compromised and Bob issues a hard revocation, Alice\ncan add it to the project's signing policy. An attacker who has\naccess to Bob's key can then create a merge request that strips\nthe hard revocation. If Alice merges Bob's merge request, then\nthe latest commit will not carry the hard revocation, and `sq-git`\nwill not see the hard revocation when authenticating that commit or\nany following commits.\n\nNote: for this attack to be successful, Alice needs to be tricked\ninto merging the malicious MR. If Alice is reviewing MRs, then\nshe is likely to notice changes to the signing policy.\n\nReported-by: Hassan Sheet",
|
|
"severity": [
|
|
{
|
|
"type": "CVSS_V4",
|
|
"score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "sequoia-git",
|
|
"purl": "pkg:cargo/sequoia-git"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": []
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [],
|
|
"cvss": "CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
|
|
"informational": null
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.6.0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/sequoia-git"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0109.html"
|
|
},
|
|
{
|
|
"type": "WEB",
|
|
"url": "https://gitlab.com/sequoia-pgp/sequoia-git/-/commit/f9c9074bd80023456221f09c3c4ff19957ee9c58"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |