{"api_version":"1","generated_at":"2026-07-23T13:44:48+00:00","cve":"CVE-2023-34449","urls":{"html":"https://cve.report/CVE-2023-34449","api":"https://cve.report/api/cve/CVE-2023-34449.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-34449","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-34449"},"summary":{"title":"CVE-2023-34449","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-06-14 21:15:00","updated_at":"2023-06-28 20:46:00"},"problem_types":["CWE-754"],"metrics":[],"references":[{"url":"https://github.com/paritytech/ink/pull/1450","name":"https://github.com/paritytech/ink/pull/1450","refsource":"MISC","tags":[],"title":"Add support for language level errors (`LangError`) by HCastano · Pull Request #1450 · paritytech/ink · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate","name":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate","refsource":"MISC","tags":[],"title":"CallBuilder in ink_env::call - Rust","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db","name":"https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-853p-5678-hv8f · paritytech/ink@f1407ee · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","name":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","refsource":"MISC","tags":[],"title":"Incorrect decoding of storage value when using `DelegateCall` · Advisory · paritytech/ink · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","name":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","refsource":"MISC","tags":[],"title":"invoke_contract_delegate in ink_env - Rust","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-34449","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34449","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"34449","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"parity","cpe5":"ink\\!","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"rust","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-34449","qid":"996218","title":"Rust (Rust) Security Update for ink (GHSA-853p-5678-hv8f)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-34449","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-754: Improper Check for Unusual or Exceptional Conditions","cweId":"CWE-754"}]},{"description":[{"lang":"eng","value":"CWE-253: Incorrect Check of Function Return Value","cweId":"CWE-253"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"paritytech","product":{"product_data":[{"product_name":"ink","version":{"version_data":[{"version_affected":"=","version_value":">= 4.0.0, < 4.2.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","refsource":"MISC","name":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f"},{"url":"https://github.com/paritytech/ink/pull/1450","refsource":"MISC","name":"https://github.com/paritytech/ink/pull/1450"},{"url":"https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db","refsource":"MISC","name":"https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db"},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate","refsource":"MISC","name":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate"},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","refsource":"MISC","name":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html"}]},"source":{"advisory":"GHSA-853p-5678-hv8f","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-06-14 21:15:00","lastModifiedDate":"2023-06-28 20:46:00","problem_types":["CWE-754"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:parity:ink\\!:*:*:*:*:*:rust:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.2.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}