google-api-php-client icon indicating copy to clipboard operation
google-api-php-client copied to clipboard

phpseclib/phpseclib - Infinite Loop vulnerability

Open chbakouras opened this issue 3 years ago • 2 comments

A new vulnerability is reported for phpseclib/phpseclib

composer audit

image

composer why phpseclib/phpseclib google/apiclient v2.13.0 requires phpseclib/phpseclib (~2.0||^3.0.2)

Is a new version with an upgrade planned?

chbakouras avatar Mar 09 '23 17:03 chbakouras

What if you run the following command?

composer update phpseclib/phpseclib:^3.0.19

Unless there are special circumstances such as specifying the required version, I think there is no problem. Because the specification of composer.json of this library is specified as ^3.0.2

   "phpseclib/phpseclib": "~2.0||^3.0.2",

SuguruOoki avatar Mar 13 '23 04:03 SuguruOoki

Checking the requirements of the package, it shows that the version 3.0.19 requires a minimum of PHP version 5.6.1.

So, simply doing a composer update should upgrade the package to 3.0.19.

I just did it locally for PHP 7.4 and then checked both composer show phpseclib/phpseclib and then composer audit, everything seems fine.

saranshdhingra avatar Mar 20 '23 12:03 saranshdhingra