{
  "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": "02b7742f4d19631024bd766bd2bb76715780004e"
            },
            {
              "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-r8cf-45f4-vf8m"
  ],
  "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-42799.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 02b7742f4d19631024bd766bd2bb76715780004e.",
  "id": "CVE-2023-42799",
  "modified": "2026-04-01T23:09:47.039628808Z",
  "published": "2023-12-14T16:47:00.932Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42799.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/moonlight-stream/moonlight-common-c/security/advisories/GHSA-r8cf-45f4-vf8m"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42799"
    },
    {
      "type": "FIX",
      "url": "https://github.com/moonlight-stream/moonlight-common-c/commit/02b7742f4d19631024bd766bd2bb76715780004e"
    },
    {
      "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 `parseUrlAddrFromRtspUrlString`"
}