CVE-2023-34449: parity ink\! Incorrect Check of Function Return Value
Vulnerability summary
CVE-2023-34449 is a medium (CVSS 5.3) Incorrect Check of Function Return Value vulnerability in parity ink\!. EPSS estimates a 0.97% chance of exploitation in the next 30 days, higher than 61.3% of scored vulnerabilities. 3 public exploits are recorded.
Timeline
- 14-06-2023PublishedVulnerability first disclosed.
- 30-12-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · Crates.ioEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.97%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
0.00 pp
From 0.97% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundInk
Maturity: poc
Exploit Reference (docs.rs)
Maturity: unknown
Exploit Reference (docs.rs)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-253Incorrect Check of Function Return ValueThe product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.
- CWE-754Improper Check for Unusual or Exceptional ConditionsThe 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.
Affected systems
Crates.Io2 products
- ink≥ 4.0.0, < 4.2.1
- ink_env≥ 4.0.0, < 4.2.1
Parity1 product
- ink\!≥ 4.0.0, < 4.2.1
Paritytech1 product
- ink≥ 4.0.0, < 4.2.1
3 vendors · 4 products
References
7 links- github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8fX Refsource CONFIRMWEBExploitPatchVendor Advisory
- docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.htmlX Refsource MISCWEBExploitThird Party Advisory
- docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.htmlX Refsource MISCWEBExploitThird Party Advisory
- github.com/paritytech/inkPACKAGE