Sunshine is a self-hosted game stream host for Moonlight. In versions prior to 2026.516.143833, the client-certificate authentication can be bypassed because of how OpenSSL verification results are handled. In src/crypto.cpp, the custom verify callback treats X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY, X509_V_ERR_CERT_NOT_YET_VALID, and X509_V_ERR_CERT_HAS_EXPIRED as success. This can allow an untrusted certificate to pass authentication and access protected HTTPS endpoints. This issue has been fixed in version 2026.516.143833.
In the file src/crypto.cpp, a custom OpenSSL verification callback incorrectly treats certain certificate validation error codes as positive results. Specifically, errors X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY, X509_V_ERR_CERT_NOT_YET_VALID, and X509_V_ERR_CERT_HAS_EXPIRED are handled as success instead of rejection. As a result, an untrusted, invalid, or expired certificate can successfully pass the client authentication process.
An attacker without a valid, trusted certificate can bypass the authentication mechanism and gain full access to protected HTTPS endpoints of a Sunshine instance, compromising the confidentiality, integrity, and availability of the system.
Sunshine should be updated to version 2026.516.143833 or later, where the issue has been fixed. The patch is available in the project's GitHub repository at: https://github.com/LizardByte/Sunshine/releases/tag/v2026.516.143833
Lizardbyte Sunshine in all versions prior to 2026.516.143833
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLizardbyte Sunshine
APPLizardbyte< 2026.516.143833
Related vulnerabilities
CSRF w Sunshine umożliwia RCE z uprawnieniami administratora
A local privilege escalation vulnerability exists in Sunshine for Windows (version v2025.122.141614 and likely...
Sunshine for Windows, version v2025.122.141614, contains a DLL search-order hijacking vulnerability, allowing ...
Sunshine is a self-hosted game stream host for Moonlight. In 0.23.1 and earlier, Sunshine's pairing protocol i...
Sunshine is a self-hosted game stream host for Moonlight. Starting in version 0.16.0 and prior to version 0.18...