Sunshine is a self-hosted game stream host for Moonlight. In 0.23.1 and earlier, Sunshine's pairing protocol implementation does not validate request order and is thereby vulnerable to a MITM attack, potentially allowing an unauthenticated attacker to pair a client by hijacking a legitimate pairing attempt. This bug may also be used by a remote attacker to crash Sunshine. This vulnerability is fixed in 2025.118.151840.
{
"cwe_ids": [
"CWE-305",
"CWE-476",
"CWE-841"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51738.json",
"cna_assigner": "GitHub_M"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-51738.json"
"2026-04-12T08:40:50Z"
[
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"100797209542739115812235067227520091293",
"329401114149137010212533541894201858521",
"318869231849667477070365927931170859211",
"217289876954024892228425605780184212001",
"209396242423772124008953874661009101364",
"333404222899660741237501109237317311480",
"102335417461609269863129701546020173774",
"252350538578695794295935125722942899083"
]
},
"source": "https://github.com/lizardbyte/sunshine/commit/26566cc04db12c5bc7434e480cffa025ed838bce",
"id": "CVE-2024-51738-0ba23997",
"signature_type": "Line",
"target": {
"file": "tests/unit/test_http_pairing.cpp"
}
}
]