Vulnerabilites related to paritytech - ink
CVE-2023-34449 (GCVE-0-2023-34449)
Vulnerability from cvelistv5
Published
2023-06-14 20:10
Modified
2024-12-30 14:57
Severity ?
VLAI Severity ?
EPSS score ?
CWE
Summary
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.
References
► | URL | Tags | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Impacted products
Vendor | Product | Version | ||
---|---|---|---|---|
paritytech | ink |
Version: >= 4.0.0, < 4.2.1 |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-02T16:10:07.115Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f" }, { "name": "https://github.com/paritytech/ink/pull/1450", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/paritytech/ink/pull/1450" }, { "name": "https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db" }, { "name": "https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate" }, { "name": "https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html" } ], "title": "CVE Program Container" }, { "metrics": [ { "other": { "content": { "id": "CVE-2023-34449", "options": [ { "Exploitation": "poc" }, { "Automatable": "yes" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "timestamp": "2024-12-30T14:57:44.585992Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2024-12-30T14:57:52.199Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "ink", "vendor": "paritytech", "versions": [ { "status": "affected", "version": "\u003e= 4.0.0, \u003c 4.2.1" } ] } ], "descriptions": [ { "lang": "en", "value": "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\u0027s 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." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 5.3, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-754", "description": "CWE-754: Improper Check for Unusual or Exceptional Conditions", "lang": "en", "type": "CWE" } ] }, { "descriptions": [ { "cweId": "CWE-253", "description": "CWE-253: Incorrect Check of Function Return Value", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2023-06-14T20:11:15.570Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f" }, { "name": "https://github.com/paritytech/ink/pull/1450", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/paritytech/ink/pull/1450" }, { "name": "https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db" }, { "name": "https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate", "tags": [ "x_refsource_MISC" ], "url": "https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate" }, { "name": "https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html", "tags": [ "x_refsource_MISC" ], "url": "https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html" } ], "source": { "advisory": "GHSA-853p-5678-hv8f", "discovery": "UNKNOWN" }, "title": "ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2023-34449", "datePublished": "2023-06-14T20:10:54.842Z", "dateReserved": "2023-06-06T16:16:53.558Z", "dateUpdated": "2024-12-30T14:57:52.199Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }