# CVE-2023-50708: yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-18T20:01:00.000Z
- Modified: 2026-09-10T03:50:09.190Z
- Also known as: GHSA-w8vh-p74j-x9xp
- Weaknesses: CWE-203
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- yiisoft yii2-authclient: < 2.2.15
- yiisoft/yii2-authclient (Packagist): before 2.2.15
- yiiframework yii2-authclient: before 2.2.15

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 0.0 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp> (exploit, patch, third-party-advisory, web)
- <https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248> (issue-tracking, patch, web)
- <https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158> (product, web)
- <https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121> (product, web)
- <https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50708> (advisory)
- <https://github.com/yiisoft/yii2-authclient> (package)

## Sources

- CVE List: [CVE-2023-50708](https://www.cve.org/CVERecord?id=CVE-2023-50708), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-w8vh-p74j-x9xp](https://github.com/advisories/GHSA-w8vh-p74j-x9xp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-50708](https://nvd.nist.gov/vuln/detail/CVE-2023-50708), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-50708 · Whole record: https://cve.day/CVE-2023-50708.json · Rebuilt by cve.day 2026-11-25T22:58:31.635Z
