{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "2022-11-04"
              },
              {
                "fixed": "2023-10-06"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "8.4.0"
              },
              {
                "last_affected": "8.5.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "8.4.0"
              },
              {
                "last_affected": "8.5.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "10.10"
              },
              {
                "last_affected": "11.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.10.22"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "1.12.0"
              },
              {
                "last_affected": "1.14.40"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "1.5.4"
              },
              {
                "last_affected": "1.5.27"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0.13"
              },
              {
                "last_affected": "0.13.3"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0.9.2"
              },
              {
                "last_affected": "0.9.3"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "24750d4b748fefa03d09fcfd6d45056faca354e0"
            },
            {
              "fixed": "50c0a51b10ecc5b3415ea78c21d96d679e2288f9"
            }
          ],
          "repo": "https://github.com/moonlight-stream/moonlight-common-c",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.6.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "83694f8141c8d2d339662469bc21b8ec360a4bea"
            }
          ],
          "repo": "https://github.com/moonlight-stream/moonlight-ios",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4927-23jw-rq62"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-120"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42800.json"
  },
  "details": "Moonlight-common-c contains the core GameStream client code shared between Moonlight clients. Moonlight-common-c is vulnerable to buffer overflow starting in commit 50c0a51b10ecc5b3415ea78c21d96d679e2288f9 due to unmitigated usage of unsafe C functions and improper bounds checking. A malicious game streaming server could exploit a buffer overflow vulnerability to crash a moonlight client, or achieve remote code execution (RCE) on the client (with insufficient exploit mitigations or if mitigations can be bypassed). The bug was addressed in commit 24750d4b748fefa03d09fcfd6d45056faca354e0.",
  "id": "CVE-2023-42800",
  "modified": "2026-04-01T23:10:09.661569456Z",
  "published": "2023-12-14T16:57:44.846Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/moonlight-stream/moonlight-common-c/blob/2bb026c763fc18807d7e4a93f918054c488f84e1/src/RtspConnection.c#L796"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42800.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/moonlight-stream/moonlight-common-c/security/advisories/GHSA-4927-23jw-rq62"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42800"
    },
    {
      "type": "FIX",
      "url": "https://github.com/moonlight-stream/moonlight-common-c/commit/24750d4b748fefa03d09fcfd6d45056faca354e0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/moonlight-stream/moonlight-common-c/commit/50c0a51b10ecc5b3415ea78c21d96d679e2288f9"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Buffer overflow due to use of `strcpy` in `performRtspHandshake`"
}