CVE-2023-38701

Hydra is the layer-two scalability solution for Cardano. Users of the Hydra head protocol send the UTxOs they wish to commit into the Hydra head first to the `commit` validator, where they remain until they are either collected into the `head` validator or the protocol initialisation is aborted and the value in the committed UTxOs is returned to the users who committed them. Prior to version 0.12.0, the `commit` validator contains a flawed check when the `ViaAbort` redeemer is used, which allows any user to spend any UTxO which is at the validator arbitrarily, meaning an attacker can steal the funds that users are trying to commit into the head validator. The intended behavior is that the funds must be returned to the user which committed the funds and can only be performed by a participant of the head. The `initial` validator also is similarly affected as the same flawed check is performed for the `ViaAbort` redeemer. Due to this issue, an attacker can steal any funds that user's try to commit into a Hydra head. Also, an attacker can prevent any Hydra head from being successfully opened. It does not allow an attacker to take funds which have been successfully collected into and currently reside in the `head` validator. Version 0.12.0 contains a fix for this issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:iohk:hydra:*:*:*:*:*:*:*:*

History

11 Oct 2023, 19:34

Type Values Removed Values Added
CWE CWE-20 NVD-CWE-noinfo
First Time Iohk
Iohk hydra
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.1
CPE cpe:2.3:a:iohk:hydra:*:*:*:*:*:*:*:*
References (MISC) https://github.com/input-output-hk/hydra/blob/master/hydra-plutus/src/Hydra/Contract/Util.hs#L32-L42 - (MISC) https://github.com/input-output-hk/hydra/blob/master/hydra-plutus/src/Hydra/Contract/Util.hs#L32-L42 - Product
References (MISC) https://github.com/input-output-hk/hydra/security/advisories/GHSA-6x9v-7x5r-w8w6 - (MISC) https://github.com/input-output-hk/hydra/security/advisories/GHSA-6x9v-7x5r-w8w6 - Exploit, Third Party Advisory
References (MISC) https://github.com/input-output-hk/hydra/blob/master/hydra-plutus/src/Hydra/Contract/Commit.hs#L94-L97 - (MISC) https://github.com/input-output-hk/hydra/blob/master/hydra-plutus/src/Hydra/Contract/Commit.hs#L94-L97 - Product
References (MISC) https://github.com/input-output-hk/hydra/blob/master/CHANGELOG.md#0120---2023-08-18 - (MISC) https://github.com/input-output-hk/hydra/blob/master/CHANGELOG.md#0120---2023-08-18 - Release Notes

04 Oct 2023, 19:53

Type Values Removed Values Added
New CVE

Information

Published : 2023-10-04 19:15

Updated : 2023-12-10 15:14


NVD link : CVE-2023-38701

Mitre link : CVE-2023-38701

CVE.ORG link : CVE-2023-38701


JSON object : View

Products Affected

iohk

  • hydra
CWE
NVD-CWE-noinfo CWE-20

Improper Input Validation