File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed
Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1- 8.13 .0
1+ 8.14 .0
Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## [ 8.14.0] ( https://github.com/auth0/auth0-PHP/tree/8.14.0 ) (2025-05-16)
4+ [ Full Changelog] ( https://github.com/auth0/auth0-PHP/compare/8.13.0...8.14.0 )
5+
6+ ** Fixed**
7+
8+ - Security fix: Resolve CVE-2025 -47275
9+
310## [ 8.13.0] ( https://github.com/auth0/auth0-PHP/tree/8.13.0 ) (2024-11-15)
411[ Full Changelog] ( https://github.com/auth0/auth0-PHP/compare/8.12.0...8.13.0 )
512
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ final class Auth0 implements Auth0Interface
2121 /**
2222 * @var string
2323 */
24- public const VERSION = '8.13 .0 ' ;
24+ public const VERSION = '8.14 .0 ' ;
2525
2626 /**
2727 * Authentication Client.
Original file line number Diff line number Diff line change 1313use function is_array ;
1414use function is_int ;
1515use function is_string ;
16+ use function strlen ;
1617
1718/**
1819 * This class provides a layer to persist transient auth data using cookies.
@@ -39,6 +40,11 @@ final class CookieStore implements StoreInterface
3940 */
4041 public const VAL_CRYPTO_ALGO = 'aes-128-gcm ' ;
4142
43+ /**
44+ * @var int
45+ */
46+ public const VAL_CRYPTO_TAG_LENGTH_BYTES = 16 ;
47+
4248 /**
4349 * When true, CookieStore will not setState() itself. You will need manually call the method to persist state to storage.
4450 */
@@ -123,7 +129,7 @@ public function decrypt(
123129 $ iv = base64_decode ($ data ['iv ' ], true );
124130 $ tag = base64_decode ($ data ['tag ' ], true );
125131
126- if (! is_string ($ iv ) || ! is_string ($ tag )) {
132+ if (! is_string ($ iv ) || ! is_string ($ tag ) || self :: VAL_CRYPTO_TAG_LENGTH_BYTES !== strlen ( $ tag ) ) {
127133 return null ;
128134 }
129135
You can’t perform that action at this time.
0 commit comments