{"answers":{"affected":"21 open source packages ship an affected version, including github.com/evmos/evmos/v18, github.com/evmos/evmos and github.com/evmos/evmos/v10. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-39696 in the wild and no public exploit code.","fix":"Upgrade github.com/evmos/evmos/v18 to 19.0.0 or later.","what":"CVE-2024-39696 is a high-severity vulnerability in evmos, published on 5 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-39696 and fix it if it is affected.\n\nWhat it is: CVE-2024-39696 is a high-severity vulnerability in evmos, published on 5 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-39696 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/evmos/evmos/v18 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v18 (Go): affected all versions; fixed in 19.0.0\n- github.com/evmos/evmos/v18 (Go): affected all versions; fixed in 19.0.0\n- github.com/evmos/evmos (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v10 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v11 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v12 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v13 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v14 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v15 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v16 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v17 (Go): affected all versions; no fix listed\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/CVE-2024-39696/ (Markdown: https://insights.sbomify.com/CVE-2024-39696/index.md)","id":"CVE-2024-39696","markdown":"https://insights.sbomify.com/CVE-2024-39696/index.md","name":"CVE-2024-39696","record":{"aliases":["GHSA-q6hg-6m9x-5g9c","GO-2024-2974"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Evmos blockchain node","requires_auth":"low_privilege","summary":"Attackers can drain funds from any account by exploiting a logic flaw in vesting account creation that bypasses authorization checks.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"evmos","vendor":"evmos"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"Evmos is a decentralized Ethereum Virtual Machine chain on the Cosmos Network. Prior to version 19.0.0, a user can create a vesting account with a 3rd party account (EOA or contract) as funder. Then, this user can create an authorization for the contract.CallerAddress, this is the authorization checked in the code. But the funds are taken from the funder address provided in the message. Consequently, the user can fund a vesting account with a 3rd party account without its permission. The funder address can be any address, so this vulnerability can be used to drain all the accounts in the chain. The issue has been patched in version 19.0.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Evmos vulnerable to exploit of smart contract account and vesting","id":"CVE-2024-39696","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"business_logic","year":"2024"},"n_packages":21,"n_references":2,"next":{"headline":"phonenumber panics on parsing crafted phonenumber inputs","id":"CVE-2024-39697"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos","purl":"pkg:golang/github.com/evmos/evmos","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v10","purl":"pkg:golang/github.com/evmos/evmos/v10","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v11","purl":"pkg:golang/github.com/evmos/evmos/v11","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v12","purl":"pkg:golang/github.com/evmos/evmos/v12","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v13","purl":"pkg:golang/github.com/evmos/evmos/v13","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v14","purl":"pkg:golang/github.com/evmos/evmos/v14","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v15","purl":"pkg:golang/github.com/evmos/evmos/v15","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v16","purl":"pkg:golang/github.com/evmos/evmos/v16","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v17","purl":"pkg:golang/github.com/evmos/evmos/v17","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v18","purl":"pkg:golang/github.com/evmos/evmos/v18","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":["19.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v18","purl":null,"source":"GHSA-q6hg-6m9x-5g9c"},{"ecosystem":"Go","fixed":["19.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v18","purl":"pkg:golang/github.com/evmos/evmos/v18","source":"GHSA-q6hg-6m9x-5g9c"},{"ecosystem":"Go","fixed":["19.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v19","purl":"pkg:golang/github.com/evmos/evmos/v19","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v2","purl":"pkg:golang/github.com/evmos/evmos/v2","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v3","purl":"pkg:golang/github.com/evmos/evmos/v3","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v4","purl":"pkg:golang/github.com/evmos/evmos/v4","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v5","purl":"pkg:golang/github.com/evmos/evmos/v5","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v6","purl":"pkg:golang/github.com/evmos/evmos/v6","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v7","purl":"pkg:golang/github.com/evmos/evmos/v7","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v8","purl":"pkg:golang/github.com/evmos/evmos/v8","source":"GO-2024-2974"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v9","purl":"pkg:golang/github.com/evmos/evmos/v9","source":"GO-2024-2974"}],"prev":{"headline":"Exiv2 has an out-of-bounds read in AsfVideo::streamProperties","id":"CVE-2024-39695"},"products":["evmos"],"published":"2024-07-05","related":[{"cvss_score":9.1,"headline":"Evmos' transaction execution not accounting for all state transition after interaction with precompiles","id":"CVE-2024-32644","kev_date_added":null,"published":"2024-04-19"},{"cvss_score":8.1,"headline":"Account compromise in Evmos","id":"CVE-2022-24738","kev_date_added":null,"published":"2022-03-07"},{"cvss_score":7.5,"headline":"Evmos's contract balance not updating correctly after interchain transaction","id":"CVE-2024-37153","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":5.3,"headline":"Evmos allows unvested token delegations","id":"CVE-2024-37154","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":3.5,"headline":"Evmos is missing precompile checks","id":"CVE-2024-37158","kev_date_added":null,"published":"2024-06-17"},{"cvss_score":3.5,"headline":"Evmos is missing create validator check","id":"CVE-2024-37159","kev_date_added":null,"published":"2024-06-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["evmos"]},"summary":"Attackers can drain funds from any account by exploiting a logic flaw in vesting account creation that bypasses authorization checks.","url":"https://insights.sbomify.com/CVE-2024-39696/"}