yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-50708
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 04:04 UTC · Revision 1
Source evidence
yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation
core-osv · Original sourcePublished 22 Dec 2023, 18:25 UTC
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.
osv:CVE-2023-50708
Complete source record
{
"id": "ca836c79461d9b91c9f9bbde5f4177b442a958565a4df21d440a0567b7302a1b",
"url": "https://osv.dev/vulnerability/CVE-2023-50708",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2023-50708",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-50708",
"aliases": [
"CVE-2023-50708",
"GHSA-w8vh-p74j-x9xp"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/yiisoft/yii2-authclient",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a11cbb065a2424c25f9dc0d0df6852d605d869b2"
},
{
"fixed": "dabddf2154ab7e7703740205a069202554089248"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:yiiframework:yii2-authclient:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.2.15"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "dabddf2154ab7e7703740205a069202554089248"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.2.14",
"2.2.13",
"2.2.12",
"2.2.11",
"2.2.10",
"2.2.9",
"2.2.8",
"2.2.7",
"2.2.6",
"2.2.4",
"2.2.3",
"2.2.2",
"2.2.1",
"2.2.0",
"2.1.8",
"2.1.7",
"2.1.6",
"2.1.5",
"2.1.4",
"2.1.3",
"2.1.2",
"2.1.1",
"2.1.0",
"2.0.6",
"2.0.5",
"2.0.4",
"2.0.3",
"2.0.2",
"2.0.1",
"2.0.0",
"2.0.0-rc",
"2.0.0-beta"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-50708.json"
}
}
],
"modified": "2026-10-28T02:30:46.727814120Z",
"provider": "osv",
"references": [
"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158",
"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121",
"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50708.json",
"https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp",
"https://nvd.nist.gov/vuln/detail/CVE-2023-50708",
"https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248"
],
"provider_metadata": {
"cwe_ids": [
"CWE-203"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50708.json"
}
},
"related_cves": [
{
"value": "CVE-2023-50708",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514561,
"published_at": "2023-12-22T18:25:01.925+00:00"
}