{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-38359",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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 > 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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-20: Improper Input Validation",
                        "cweId": "CWE-20"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "lightningnetwork",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "lnd",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "< 0.17.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/lightningnetwork/lnd/security/advisories/GHSA-9gxx-58q6-42p7",
                "refsource": "MISC",
                "name": "https://github.com/lightningnetwork/lnd/security/advisories/GHSA-9gxx-58q6-42p7"
            },
            {
                "url": "https://delvingbitcoin.org/t/dos-disclosure-lnd-onion-bomb/979",
                "refsource": "MISC",
                "name": "https://delvingbitcoin.org/t/dos-disclosure-lnd-onion-bomb/979"
            },
            {
                "url": "https://github.com/lightningnetwork/lnd/releases/tag/v0.17.0-beta",
                "refsource": "MISC",
                "name": "https://github.com/lightningnetwork/lnd/releases/tag/v0.17.0-beta"
            },
            {
                "url": "https://lightning.network",
                "refsource": "MISC",
                "name": "https://lightning.network"
            },
            {
                "url": "https://morehouse.github.io/lightning/lnd-onion-bomb",
                "refsource": "MISC",
                "name": "https://morehouse.github.io/lightning/lnd-onion-bomb"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-9gxx-58q6-42p7",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
            }
        ]
    }
}