Skip to content
Heist/ feed
Back to feed
High

Hydra's contestation period in head datum can be modified during Close transaction, allowing malicious participant to freely modify the contestation deadline

Type: advisorySources: OSV

Hydra is the layer-two scalability solution for Cardano. Prior to version 0.13.0, the specification states that the contestation period in the datum of the UTxO at the head validator must stay unchanged as the state progresses from Open to Closed (Close transaction), but no such check appears to be performed in the `checkClose` function of the head validator. This would allow a malicious participant to modify the contestation deadline of the head to either allow them to fanout the head without giving another participant the chance to contest, or prevent any participant from ever redistributing the funds locked in the head via a fan-out. Version 0.13.0 contains a patch for this issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-42448
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 16:26 UTC · Revision 1

Source evidence

Hydra's contestation period in head datum can be modified during Close transaction, allowing malicious participant to freely modify the contestation deadline

core-osv · Original source

Published 4 Oct 2023, 18:57 UTC

Hydra is the layer-two scalability solution for Cardano. Prior to version 0.13.0, the specification states that the contestation period in the datum of the UTxO at the head validator must stay unchanged as the state progresses from Open to Closed (Close transaction), but no such check appears to be performed in the `checkClose` function of the head validator. This would allow a malicious participant to modify the contestation deadline of the head to either allow them to fanout the head without giving another participant the chance to contest, or prevent any participant from ever redistributing the funds locked in the head via a fan-out. Version 0.13.0 contains a patch for this issue.

osv:CVE-2023-42448
Complete source record
{
  "id": "35cb4b4f2c09d3b57d1d546a3e4d3fae8c4caffeabc8757137fd4fedf9df38b1",
  "url": "https://osv.dev/vulnerability/CVE-2023-42448",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Hydra's contestation period in head datum can be modified during Close transaction, allowing malicious participant to freely modify the contestation deadline",
    "summary": "Hydra is the layer-two scalability solution for Cardano. Prior to version 0.13.0, the specification states that the contestation period in the datum of the UTxO at the head validator must stay unchanged as the state progresses from Open to Closed (Close transaction), but no such check appears to be performed in the `checkClose` function of the head validator. This would allow a malicious participant to modify the contestation deadline of the head to either allow them to fanout the head without giving another participant the chance to contest, or prevent any participant from ever redistributing the funds locked in the head via a fan-out. Version 0.13.0 contains a patch for this issue.",
    "evidence": "osv:CVE-2023-42448",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-42448",
      "aliases": [
        "CVE-2023-42448",
        "GHSA-mgcx-6p7h-5996"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cardano-scaling/hydra",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9f1027e0fdff6765f5233f19c4639fdaa3558bfa"
                },
                {
                  "fixed": "2f45529729e28254a62f7a7c8d6649066923ed1f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:iohk:hydra:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.13.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2f45529729e28254a62f7a7c8d6649066923ed1f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.12.0",
            "0.11.0",
            "0.10.0",
            "0.9.0",
            "0.8.1",
            "0.8.0",
            "0.7.0",
            "0.6.0",
            "0.5.0",
            "0.4.0",
            "plutus-merkle-tree-1.0.0",
            "plutus-cbor-1.0.0",
            "0.3.0",
            "0.2.0",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-42448.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:20.900208666Z",
      "provider": "osv",
      "references": [
        "https://github.com/input-output-hk/hydra/blob/master/CHANGELOG.md#0130---2023-10-03",
        "https://github.com/input-output-hk/hydra/blob/master/hydra-plutus/src/Hydra/Contract/Head.hs#L284-L296",
        "https://github.com/input-output-hk/hydra/blob/master/hydra-plutus/src/Hydra/Contract/Head.hs#L320-L323",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42448.json",
        "https://github.com/input-output-hk/hydra/security/advisories/GHSA-mgcx-6p7h-5996",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-42448",
        "https://github.com/input-output-hk/hydra/commit/2f45529729e28254a62f7a7c8d6649066923ed1f"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42448.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-42448",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487100,
  "published_at": "2023-10-04T18:57:52.752+00:00"
}