Contract-result corruption via missing result wrapper
Published Jun 14, 2023 · Updated Dec 30, 2024
Incorrect return-value decoding in Parity Technologies ink! 4.0.0 through 4.2.0 allows remote attackers to corrupt contract results. The delegate-call path decodes the SCALE-encoded MessageResult buffer directly as R, so the wrapper's status byte becomes result data and unsigned integers can be returned at 256 times the stored value. Exposure requires an ink! 4.x contract that uses CallBuilder::delegate or ink_env::invoke_contract_delegate; ordinary calls and contracts without delegate calls are unaffected.
Summary
What happened
Incorrect return-value decoding in Parity Technologies ink! 4.0.0 through 4.2.0 allows remote attackers to corrupt contract results. The delegate-call path decodes the SCALE-encoded MessageResult buffer directly as R, so the wrapper's status byte becomes result data and unsigned integers can be returned at 256 times the stored value. Exposure requires an ink! 4.x contract that uses CallBuilder::delegate or ink_env::invoke_contract_delegate; ordinary calls and contracts without delegate calls are unaffected.
The record
- CVE
- CVE-2023-34449
- Published
- Jun 14, 2023
- Updated
- Dec 30, 2024
- Vendor
- Parity Technologies
- Product
- ink!
- Classifications
- CWE-253, CWE-754
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 14, 2023CVE publishedPublication date reported by the CVE source.
- Dec 30, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.0.0, < 4.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Delegate-call incorrect-decoding reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo