medium
Barberry Security Advisory - regarding x/auth periodic vesting accounts
- Severity
- medium rating by GitHub
- Published
- Last changed
- Also known as
- GHSA-w44m-8mv2-v78hGO-2023-1861
Description
Impact
In PeriodicVestingAccount, defined in x/auth, an attacker can initialize a victim's account as a malicious vesting account, which allows deposits but does not allow withdrawals. When the user then deposits funds into their account, those funds are locked forever, and the user is not able to withdraw them.
Patches
>= v0.46.13 for Cosmos SDK v0.46.x >= v0.47.3 for Cosmos SDK v0.47.x
If a network backported periodic vesting accounts to earlier versions of the SDK, those networks are affected too.
Workarounds
There is no workaround for this issue. Upgrade immediately.
References
- Patched versions release notes: v0.47.3, v0.46.13.
- Forum Post
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/cosmos/cosmos-sdk (Go) | from 0.46.0 before 0.46.13, from 0.47.0 before 0.47.3, before 0.46.13 | GitHub Advisory Database, Go Vulnerability Database |
What each source says
GitHub Advisory Database
Impact
In PeriodicVestingAccount, defined in x/auth, an attacker can initialize a victim's account as a malicious vesting account, which allows deposits but does not allow withdrawals. When the user then deposits funds into their account, those funds are locked forever, and the user is not able to withdraw them.
Patches
>= v0.46.13 for Cosmos SDK v0.46.x >= v0.47.3 for Cosmos SDK v0.47.x
If a network backported periodic vesting accounts to earlier versions of the SDK, those networks are affected too.
Workarounds
There is no workaround for this issue. Upgrade immediately.
References
- Patched versions release notes: v0.47.3, v0.46.13.
- Forum Post
GitHub Advisory Database
Withdrawn
This advisory has been withdrawn because it is a duplicate of GHSA-j2cr-jc39-wpx5. This link is maintained to preserve external references.
Original Description
The cosmos-sdk module is affected by the vulnerability codenamed "Barberry".
Go Vulnerability Database
The cosmos-sdk module is affected by the vulnerability codenamed "Barberry".
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-j2cr-jc39-wpx5 changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-w44m-8mv2-v78h changed 2024-05-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-1861 changed 2024-05-20 | CC-BY-4.0 |