Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cosmos/cosmos-sdk
  4. ›
  5. GMS-2023-1813

GMS-2023-1813: Barberry Security Advisory - regarding x/auth periodic vesting accounts

July 7, 2023 (updated July 14, 2023)

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

References

  • forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825
  • github.com/advisories/GHSA-j2cr-jc39-wpx5
  • github.com/cosmos/cosmos-sdk/blob/cfc757dc5043fb2758c47c146d2912fd010c1a45/RELEASE_NOTES.md
  • github.com/cosmos/cosmos-sdk/blob/d4b7164de5d8391e6aa644d8ea84e07396dd9653/RELEASE_NOTES.md
  • github.com/cosmos/cosmos-sdk/pull/16466
  • github.com/cosmos/cosmos-sdk/security/advisories/GHSA-j2cr-jc39-wpx5

Code Behaviors & Features

Detect and mitigate GMS-2023-1813 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.46.0 up to 0.46.12, all versions starting from 0.47.0 up to 0.47.2

Fixed versions

  • 0.46.13
  • 0.47.3

Solution

Upgrade to versions 0.46.13, 0.47.3 or above.

Source file

go/github.com/cosmos/cosmos-sdk/GMS-2023-1813.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:44 +0000.