CVE-2023-34449
published medium CVSS 3.1 · 5.3ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| paritytech | — | ink>= 4.0.0, < 4.2.1 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| paritytech | ink | >= 4.0.0, < 4.2.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-754 CWE-754: Improper Check for Unusual or Exceptional Conditions
- CWE-253 CWE-253: Incorrect Check of Function Return Value
References
5- https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate
- https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html
- https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db
- https://github.com/paritytech/ink/pull/1450
- https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f
Provider assertions
3GitHub_M · cna
ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8c6ea5638844f9655adcada840f939459f8e4e12e0339cee315c729d887681a2
- Ingested
- 23 Sep 2026, 08:09:31 UTC
- Source record
- Official CVE record