{"answers":{"affected":"4 open source packages ship an affected version, including ink and ink_env. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34449 exists.","fix":"Upgrade ink to 4.2.1 or later.","what":"CVE-2023-34449 is a medium-severity vulnerability in paritytech ink, published on 14 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-34449 and fix it if it is affected.\n\nWhat it is: CVE-2023-34449 is a medium-severity vulnerability in paritytech ink, published on 14 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34449 exists.\n\nAffected packages and fixed versions:\n- ink (crates.io): affected from 4.0.0; fixed in 4.2.1\n- ink (crates.io): affected from 4.0.0; fixed in 4.2.1\n- ink_env (crates.io): affected from 4.0.0; fixed in 4.2.1\n- ink_env (crates.io): affected from 4.0.0; fixed in 4.2.1\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-2023-34449/ (Markdown: https://insights.sbomify.com/CVE-2023-34449/index.md)","id":"CVE-2023-34449","markdown":"https://insights.sbomify.com/CVE-2023-34449/index.md","name":"CVE-2023-34449","record":{"aliases":["GHSA-853p-5678-hv8f"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","other"],"network_reachable":"yes","non_default_config":false,"product_category":"ink! smart contract library","requires_auth":"none","summary":"Incorrect decoding of storage values during delegate calls in ink! smart contracts can lead to data integrity issues or unexpected behavior.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ink\\!","vendor":"parity"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"},{"id":"CWE-253","name":"Incorrect Check of Function Return Value"}],"description":"ink! is an embedded domain specific language to write smart contracts in Rust for blockchains built on the Substrate framework. Starting in version 4.0.0 and prior to version 4.2.1, the return value when using delegate call mechanics, either through `CallBuilder::delegate` or `ink_env::invoke_contract_delegate`, is decoded incorrectly. This bug was related to the mechanics around decoding a call's return buffer, which was changed as part of pull request 1450. Since this feature was only released in ink! 4.0.0, no previous versions are affected. Users who have an ink! 4.x series contract should upgrade to 4.2.1 to receive a patch.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`","id":"CVE-2023-34449","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"other","year":"2023"},"n_packages":4,"n_references":5,"next":{"headline":"CometBFT PeerState JSON serialization deadlock","id":"CVE-2023-34450"},"packages":[{"ecosystem":"crates.io","fixed":["4.2.1"],"introduced":["4.0.0"],"last_affected":[],"package":"ink","purl":null,"source":"GHSA-853p-5678-hv8f"},{"ecosystem":"crates.io","fixed":["4.2.1"],"introduced":["4.0.0"],"last_affected":[],"package":"ink","purl":"pkg:cargo/ink","source":"GHSA-853p-5678-hv8f"},{"ecosystem":"crates.io","fixed":["4.2.1"],"introduced":["4.0.0"],"last_affected":[],"package":"ink_env","purl":null,"source":"GHSA-853p-5678-hv8f"},{"ecosystem":"crates.io","fixed":["4.2.1"],"introduced":["4.0.0"],"last_affected":[],"package":"ink_env","purl":"pkg:cargo/ink_env","source":"GHSA-853p-5678-hv8f"}],"prev":{"headline":"Grav Server-side Template Injection (SSTI) via Twig Default Filters","id":"CVE-2023-34448"},"products":["ink"],"published":"2023-06-14","related":[],"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":"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-30","vendors":["paritytech"]},"summary":"Incorrect decoding of storage values during delegate calls in ink! smart contracts can lead to data integrity issues or unexpected behavior.","url":"https://insights.sbomify.com/CVE-2023-34449/"}