原始 OSV JSON
{
"id": "GHSA-429q-fhh4-r6hj",
"aliases": [],
"details": "### Impact\nAny uses of `InterfaceAccount` allows another unexpected account type to be passed, after https://github.com/solana-foundation/anchor/pull/3837 disabled discriminator checking for this type.\n\nThe bug was originally reported and fixed in https://github.com/solana-foundation/anchor/pull/4139, see that PR for more details.\n\n### Patches\nhttps://github.com/solana-foundation/anchor/pull/4139 patched the issue and was released in `1.0.0-rc.2`. Users should upgrade to the latest released version of Anchor 1.0.\n\n### References\nBug landed in: https://github.com/solana-foundation/anchor/pull/3837\nBug fixed in: https://github.com/solana-foundation/anchor/pull/4139",
"summary": "Anchor: `InterfaceAccount` allows account substitution between unexpected types",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.0.0-rc.1"
},
{
"fixed": "1.0.0-rc.2"
}
]
}
],
"package": {
"name": "anchor-lang",
"ecosystem": "crates.io"
},
"versions": [
"1.0.0-rc.1"
]
}
],
"modified": "2026-05-19T20:18:35Z",
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
}
],
"published": "2026-05-13T15:33:46Z",
"references": [
{
"url": "https://github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj",
"type": "WEB"
},
{
"url": "https://github.com/solana-foundation/anchor/security/advisories/GHSA-429q-fhh4-r6hj",
"type": "WEB"
},
{
"url": "https://github.com/solana-foundation/anchor/pull/3837",
"type": "WEB"
},
{
"url": "https://github.com/solana-foundation/anchor/pull/4139",
"type": "WEB"
},
{
"url": "https://github.com/solana-foundation/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d",
"type": "WEB"
},
{
"url": "https://github.com/solana-foundation/anchor",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0146.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-20"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-05-13T15:33:46Z"
}
}