{"answers":{"affected":"9 open source packages ship an affected version, including github.com/cosmos/cosmos-sdk.","exploited":"There is no known exploitation of GHSA-j2cr-jc39-wpx5 in the wild and no public exploit code.","fix":"Upgrade github.com/cosmos/cosmos-sdk to a fixed version for your release line: 0.46.13 or 0.47.3.","what":"GHSA-j2cr-jc39-wpx5 is a vulnerability in github.com/cosmos/cosmos-sdk, published on 22 Jun 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-j2cr-jc39-wpx5 and fix it if it is affected.\n\nWhat it is: GHSA-j2cr-jc39-wpx5 is a vulnerability in github.com/cosmos/cosmos-sdk, published on 22 Jun 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-j2cr-jc39-wpx5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cosmos/cosmos-sdk (Go): affected all versions; fixed in 0.46.13, 0.47.3\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.46.0; fixed in 0.46.13\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.46.0; fixed in 0.46.13\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.46.0; fixed in 0.46.13\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.46.0; fixed in 0.46.13\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.47.0; fixed in 0.47.3\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.47.0; fixed in 0.47.3\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.47.0; fixed in 0.47.3\n- github.com/cosmos/cosmos-sdk (Go): affected from 0.47.0; fixed in 0.47.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-j2cr-jc39-wpx5/ (Markdown: https://insights.sbomify.com/GHSA-j2cr-jc39-wpx5/index.md)","id":"GHSA-j2cr-jc39-wpx5","markdown":"https://insights.sbomify.com/GHSA-j2cr-jc39-wpx5/index.md","name":"GHSA-j2cr-jc39-wpx5","record":{"aliases":["GHSA-w44m-8mv2-v78h","GO-2023-1861"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Cosmos SDK library","requires_auth":"none","summary":"Attackers can lock victim funds by initializing malicious vesting accounts, preventing withdrawals. Cosmos SDK users must upgrade to patched versions.","user_interaction":"required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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\\\u003e= v0.46.13 for Cosmos SDK v0.46.x\n\\\u003e= 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)","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Barberry Security Advisory - regarding x/auth periodic vesting accounts","id":"GHSA-j2cr-jc39-wpx5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"business_logic","year":"2023"},"n_packages":9,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.46.13","0.47.3"],"introduced":["0","0.47.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GO-2023-1861"},{"ecosystem":"Go","fixed":["0.46.13"],"introduced":["0.46.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-j2cr-jc39-wpx5"},{"ecosystem":"Go","fixed":["0.46.13"],"introduced":["0.46.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-j2cr-jc39-wpx5"},{"ecosystem":"Go","fixed":["0.46.13"],"introduced":["0.46.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-w44m-8mv2-v78h"},{"ecosystem":"Go","fixed":["0.46.13"],"introduced":["0.46.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-w44m-8mv2-v78h"},{"ecosystem":"Go","fixed":["0.47.3"],"introduced":["0.47.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-j2cr-jc39-wpx5"},{"ecosystem":"Go","fixed":["0.47.3"],"introduced":["0.47.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-j2cr-jc39-wpx5"},{"ecosystem":"Go","fixed":["0.47.3"],"introduced":["0.47.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":null,"source":"GHSA-w44m-8mv2-v78h"},{"ecosystem":"Go","fixed":["0.47.3"],"introduced":["0.47.0"],"last_affected":[],"package":"github.com/cosmos/cosmos-sdk","purl":"pkg:golang/github.com/cosmos/cosmos-sdk","source":"GHSA-w44m-8mv2-v78h"}],"products":null,"published":"2023-06-22","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can lock victim funds by initializing malicious vesting accounts, preventing withdrawals. Cosmos SDK users must upgrade to patched versions.","url":"https://insights.sbomify.com/GHSA-j2cr-jc39-wpx5/"}