{"schemaVersion":3,"id":"CVE-2023-34449","aliases":["GHSA-853p-5678-hv8f"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-06-14T20:10:54.842Z","modified":"2024-12-30T14:57:52.199Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00967,"percentile":0.61395,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00967},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00967,"percentile":0.61395}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00967,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00967,"percentile":0.61395}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_PARITYTECH_INK","name":"Ink","source":"github","url":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_1059B4D4A471C501","name":"Exploit Reference (docs.rs)","source":"reference","url":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_8D247A7FED135D66","name":"Exploit Reference (docs.rs)","source":"reference","url":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-253","name":"Incorrect Check of Function Return Value","description":"The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/253.html"},{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions","description":"The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/754.html"}],"affected":[{"vendor":"Crates.Io","product":"ink","name":"ink","label":"ink","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/ink","purlType":"cargo","versions":[{"text":"≥ 4.0.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.2.1","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"ink_env","name":"ink_env","label":"ink_env","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/ink_env","purlType":"cargo","versions":[{"text":"≥ 4.0.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.2.1","eol":null,"hubHref":null},{"vendor":"parity","product":"ink\\!","name":"ink\\!","label":"ink\\!","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.2.1","eol":null,"hubHref":"/vendor/parity/ink"},{"vendor":"paritytech","product":"ink","name":"ink","label":"ink","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.2.1","eol":null,"hubHref":"/vendor/paritytech/ink"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","label":"github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Exploit","Patch","Vendor Advisory"]},{"url":"https://github.com/paritytech/ink/pull/1450","label":"github.com/paritytech/ink/pull/1450","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Vendor Advisory"]},{"url":"https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db","label":"github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate","label":"docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html","hostname":"docs.rs","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","label":"docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","hostname":"docs.rs","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34449","label":"nvd.nist.gov/vuln/detail/CVE-2023-34449","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/paritytech/ink","label":"github.com/paritytech/ink","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-14T20:10:54.842Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-12-30T14:57:52.199Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T12:22:18.282Z","stale":false,"partial":false}}