{"id":"GHSA-j2cr-jc39-wpx5","aliases":["GHSA-j2cr-jc39-wpx5","GHSA-w44m-8mv2-v78h","GO-2023-1861"],"related":[],"kind":"vulnerability","state":"published","title":"Barberry Security Advisory - regarding x/auth periodic vesting accounts","summary":"### Impact\n\nIn `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.\n\n### Patches\n\n\\>= v0.46.13 for Cosmos SDK v0.46.x\n\\>= v0.47.3 for Cosmos SDK v0.47.x\n\nIf a network backported periodic vesting accounts to earlier versions of the SDK, those networks are affected too.\n\n### Workarounds\n\nThere is no workaround for this issue. Upgrade immediately.\n\n### References\n\n* 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).\n* [Forum Post](https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nIn `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.\n\n### Patches\n\n\\>= v0.46.13 for Cosmos SDK v0.46.x\n\\>= v0.47.3 for Cosmos SDK v0.47.x\n\nIf a network backported periodic vesting accounts to earlier versions of the SDK, those networks are affected too.\n\n### Workarounds\n\nThere is no workaround for this issue. Upgrade immediately.\n\n### References\n\n* 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).\n* [Forum Post](https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825)","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Withdrawn\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-j2cr-jc39-wpx5. This link is maintained to preserve external references.\n\n## Original Description\n\nThe cosmos-sdk module is affected by the vulnerability codenamed \"Barberry\".","format":"markdown","source":"ghsa"},{"lang":"en","text":"The cosmos-sdk module is affected by the vulnerability codenamed \"Barberry\".","format":"markdown","source":"go"}],"published":"2023-06-22T16:36:04.000Z","modified":"2024-05-20T16:03:47.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.46.0","status":"affected","fixed":"0.46.13"}],"ecosystem":"Go","package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.47.0","status":"affected","fixed":"0.47.3"}],"ecosystem":"Go","package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.46.0","status":"affected","fixed":"0.46.13"}],"ecosystem":"Go","package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.47.0","status":"affected","fixed":"0.47.3"}],"ecosystem":"Go","package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.46.13"},{"type":"semver","introduced":"0.47.0","status":"affected","fixed":"0.47.3"}],"ecosystem":"Go","package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"go"}],"references":[{"url":"https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-j2cr-jc39-wpx5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cosmos/cosmos-sdk/pull/16466","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/cosmos/cosmos-sdk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/cosmos/cosmos-sdk/blob/cfc757dc5043fb2758c47c146d2912fd010c1a45/RELEASE_NOTES.md#cosmos-sdk-v0473-release-notes","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cosmos/cosmos-sdk/blob/d4b7164de5d8391e6aa644d8ea84e07396dd9653/RELEASE_NOTES.md#cosmos-sdk-v04613-release-notes","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j2cr-jc39-wpx5","url":"https://github.com/advisories/GHSA-j2cr-jc39-wpx5","licence":"CC-BY-4.0","modified":"2023-11-08T04:20:18.863Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w44m-8mv2-v78h","url":"https://github.com/advisories/GHSA-w44m-8mv2-v78h","licence":"CC-BY-4.0","modified":"2024-05-07T21:32:36.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1861","url":"https://pkg.go.dev/vuln/GO-2023-1861","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"}],"updatedAt":"2026-11-25T22:56:23.515Z"}