# GHSA-j2cr-jc39-wpx5: Barberry Security Advisory - regarding x/auth periodic vesting accounts

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-06-22T16:36:04.000Z
- Modified: 2024-05-20T16:03:47.000Z
- Also known as: GHSA-w44m-8mv2-v78h, GO-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](https://github.com/cosmos/cosmos-sdk/blob/cfc757dc5043fb2758c47c146d2912fd010c1a45/RELEASE_NOTES.md#cosmos-sdk-v0473-release-notes), [v0.46.13](https://github.com/cosmos/cosmos-sdk/blob/d4b7164de5d8391e6aa644d8ea84e07396dd9653/RELEASE_NOTES.md#cosmos-sdk-v04613-release-notes).
* [Forum Post](https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825)

(As written by GitHub Advisory Database.)

## Affected

- 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

## References

- <https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-j2cr-jc39-wpx5> (web)
- <https://github.com/cosmos/cosmos-sdk/pull/16466> (fix, web)
- <https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825> (advisory, web)
- <https://github.com/cosmos/cosmos-sdk> (package)
- <https://github.com/cosmos/cosmos-sdk/blob/cfc757dc5043fb2758c47c146d2912fd010c1a45/RELEASE_NOTES.md#cosmos-sdk-v0473-release-notes> (web)
- <https://github.com/cosmos/cosmos-sdk/blob/d4b7164de5d8391e6aa644d8ea84e07396dd9653/RELEASE_NOTES.md#cosmos-sdk-v04613-release-notes> (web)

## Sources

- GitHub Advisory Database: [GHSA-j2cr-jc39-wpx5](https://github.com/advisories/GHSA-j2cr-jc39-wpx5), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-w44m-8mv2-v78h](https://github.com/advisories/GHSA-w44m-8mv2-v78h), CC-BY-4.0, modified 2024-05-07
- Go Vulnerability Database: [GO-2023-1861](https://pkg.go.dev/vuln/GO-2023-1861), CC-BY-4.0, modified 2024-05-20

---

Page: https://cve.day/GHSA-j2cr-jc39-wpx5 · Whole record: https://cve.day/GHSA-j2cr-jc39-wpx5.json · Rebuilt by cve.day 2026-11-25T22:56:23.515Z
