# CVE-2023-34449: ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-06-14T20:10:54.842Z
- Modified: 2026-09-10T03:50:02.212Z
- Also known as: GHSA-853p-5678-hv8f
- Weaknesses: CWE-253, CWE-754
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- paritytech ink: >= 4.0.0, < 4.2.1
- ink (crates.io): from 4.0.0 before 4.2.1
- ink_env (crates.io): from 4.0.0 before 4.2.1
- parity ink!: from 4.0.0 before 4.2.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f> (exploit, patch, vendor-advisory, web)
- <https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate> (exploit, third-party-advisory, web)
- <https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html> (exploit, third-party-advisory, web)
- <https://github.com/paritytech/ink/pull/1450> (patch, vendor-advisory, web)
- <https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-34449> (advisory)
- <https://github.com/paritytech/ink> (package)

## Sources

- CVE List: [CVE-2023-34449](https://www.cve.org/CVERecord?id=CVE-2023-34449), CVE Terms of Use, modified 2024-12-30
- GitHub Advisory Database: [GHSA-853p-5678-hv8f](https://github.com/advisories/GHSA-853p-5678-hv8f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-34449](https://nvd.nist.gov/vuln/detail/CVE-2023-34449), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-34449 · Whole record: https://cve.day/CVE-2023-34449.json · Rebuilt by cve.day 2026-11-25T22:58:24.860Z
