{"id":"CVE-2023-50708","aliases":["CVE-2023-50708","GHSA-w8vh-p74j-x9xp"],"related":[],"kind":"vulnerability","state":"published","title":"yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation","summary":"yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth1/2 `state` and OpenID Connect `nonce` is vulnerable for a `timing attack` since it is compared via regular string comparison (instead of `Yii::$app->getSecurity()->compareString()`). Version 2.2.15 contains a patch for the issue. No known workarounds are available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth1/2 `state` and OpenID Connect `nonce` is vulnerable for a `timing attack` since it is compared via regular string comparison (instead of `Yii::$app->getSecurity()->compareString()`). Version 2.2.15 contains a patch for the issue. No known workarounds are available.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nOriginal Report:\n\n> The Oauth1/2 \"state\" and OpenID Connect \"nonce\" is vulnerable for a \"timing attack\" since it's compared via regular string \n> comparison (instead of `Yii::$app->getSecurity()->compareString()`).\n\nAffected Code:\n\n1. OAuth 1 \"state\"\n\n    https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158\n\n3. OAuth 2 \"state\"\n    \n    https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121\n\n4. OpenID Connect \"nonce\"\n    \n    https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420\n\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nTBD: Replace strcmp with  `Yii::$app->getSecurity()->compareString()`).\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nnot as far as I see.\n\n### References\n_Are there any links users can visit to find out more?_","format":"markdown","source":"ghsa"},{"lang":"es","text":"yii2-authclient es una extensión que agrega consumidores OpenID, OAuth, OAuth2 y OpenId Connect para el framework Yii 2.0. En yii2-authclient antes de la versión 2.2.15, el `state` de Oauth1/2 y el `nonce` de OpenID Connect son vulnerables a un `ataque de sincronización` ya que se compara mediante una comparación de cadenas regular (en lugar de `Yii::$app- &gt;getSecurity()-&gt;compareString()`). La versión 2.2.15 contiene un parche para el problema. No hay workarounds disponibles.","source":"nvd"}],"published":"2023-12-18T20:01:00.000Z","modified":"2026-09-10T03:50:09.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:N","score":0,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-203"],"affected":[{"ranges":[{"version":"< 2.2.15","status":"affected"}],"vendor":"yiisoft","product":"yii2-authclient","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.15"}],"ecosystem":"Packagist","package":"yiisoft/yii2-authclient","purl":"pkg:composer/yiisoft/yii2-authclient","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.15"}],"vendor":"yiiframework","product":"yii2-authclient","cpe":"cpe:2.3:a:yiiframework:yii2-authclient:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248","tags":["issue-tracking","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50708","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yiisoft/yii2-authclient","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-50708","url":"https://www.cve.org/CVERecord?id=CVE-2023-50708","licence":"CVE Terms of Use","modified":"2024-08-02T22:16:47.124Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w8vh-p74j-x9xp","url":"https://github.com/advisories/GHSA-w8vh-p74j-x9xp","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.190Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-50708","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50708","licence":"Public domain","modified":"2026-06-17T06:39:49.530Z"}],"updatedAt":"2026-11-25T22:58:31.635Z","epss":{"score":0.00716,"percentile":0.54992,"date":"2026-12-01T12:00:22.000Z"}}