RUSTSEC-2026-0146

Source
https://rustsec.org/advisories/RUSTSEC-2026-0146
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0146.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0146
Aliases
Published
2026-05-08T12:00:00Z
Modified
2026-05-19T05:03:10.184357028Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
`InterfaceAccount` allows account substitution between unexpected types
Details

Affected versions of anchor-lang allowed InterfaceAccount to accept accounts with an unexpected Anchor discriminator. A change to InterfaceAccount caused checked deserialization to be bypassed for this account wrapper, so validation proved only that the account owner matched one of the accepted interface owners. It did not prove that the account data belonged to the expected account type.

Programs using InterfaceAccount rely on Anchor to enforce both owner and account-type validation before the handler runs. With discriminator checking disabled, an attacker could pass another account type owned by an accepted program and have it deserialized through the expected interface wrapper. This could bypass account-type assumptions made by the program and lead to incorrect authorization or state handling.

The issue was fixed in anchor-lang 1.0.0-rc.2 by restoring checked deserialization for InterfaceAccount::try_from, while keeping explicitly unchecked behavior available only through the unchecked API. Users should upgrade to anchor-lang 1.0.0-rc.2 or later.

Database specific
{
    "license": "CC-BY-4.0"
}
References

Affected packages

crates.io / anchor-lang

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0-rc.1
Fixed
1.0.0-rc.2

Ecosystem specific

{
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    },
    "affected_functions": null
}

Database specific

categories
[]
cvss
"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"
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0146.json"