{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2fb150c8fe827df9df0520ef9916b3afb7b03a8d"
            }
          ],
          "repo": "https://github.com/lightningnetwork/lnd",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2fb150c8fe827df9df0520ef9916b3afb7b03a8d"
            }
          ],
          "repo": "https://github.com/lightningnetwork/lnd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9gxx-58q6-42p7"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38359.json"
  },
  "details": "The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node. A parsing vulnerability in lnd's onion processing logic and lead to a DoS vector due to excessive memory allocation.  The issue was patched in lnd v0.17.0. Users should update to a version \u003e v0.17.0 to be protected. Users unable to upgrade may set the `--rejecthtlc` CLI flag and also disable forwarding on channels via the `UpdateChanPolicyCommand`, or disable listening on a public network interface via the `--nolisten` flag as a mitigation.",
  "id": "CVE-2024-38359",
  "modified": "2026-04-01T23:10:04.506874601Z",
  "published": "2024-06-20T22:16:00.428Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://delvingbitcoin.org/t/dos-disclosure-lnd-onion-bomb/979"
    },
    {
      "type": "WEB",
      "url": "https://github.com/lightningnetwork/lnd/releases/tag/v0.17.0-beta"
    },
    {
      "type": "WEB",
      "url": "https://lightning.network"
    },
    {
      "type": "WEB",
      "url": "https://morehouse.github.io/lightning/lnd-onion-bomb"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38359.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/lightningnetwork/lnd/security/advisories/GHSA-9gxx-58q6-42p7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-38359"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Lightning Network Daemon Onion Bomb"
}