Tuesday, April 1, 2025

[USN-7404-1] phpseclib vulnerabilities

-----BEGIN PGP SIGNATURE-----

wsD5BAABCAAjFiEEkd98mdFcnQdP7vQkuGrtzot7pOcFAmfsq8AFAwAAAAAACgkQuGrtzot7pOd7
8Qv+L8jblCKNVSdCsZho/Y7HZCfrCP2X8Vu/VePePRdbsEw3sjab6kIbm1BY403JemFfn9IeEOze
cIPjadUYMBCD3kkuDMivnn4u9Es67Ho2dzNKl5vHFzb6HOaBFgbcT4xgKmUU3R4LP7l5VjmWnLF5
i0Vtli/SdL3V/LEUTIrxgQZYFGPmBQ3k81glfGPkbF14+k6ZQoqEJ9YhSZSleMiVC3yeTlWh/Vwb
H0cXnyJS2xxVzIuLnJNew82rXK3BHBzezRQI7shtFExgxD9lM7sm6LbPDyHO+xUzxwgVt0Q+eVDa
5wqAlLKostIuZ/iQwlOY8CRz6rReBOt3sX16fAkKk3c8BKW5m0RH5v2svgueesgqkrMXeZMql3CX
/OBAhjvfFPP14fXlpS9qKcV2W0tf2EqH32RdqphqHANEWieyeq05KCuYv0rujDkjbZc7w03YsHau
nXaHJQPSUiYhVNLHtEoVXkSYNa1/4C44Zjb8WouXymXswtMOtXbLsFv9sfxz
=NO4D
-----END PGP SIGNATURE-----
==========================================================================
Ubuntu Security Notice USN-7404-1
April 02, 2025

phpseclib vulnerabilities
==========================================================================

A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS

Summary:

Several security issues were fixed in phpseclib.

Software Description:
- php-phpseclib: implementations of an arbitrary-precision integer arithmetic
- php-phpseclib3: implementations of an arbitrary-precision integer arithmetic
- phpseclib: implementations of an arbitrary-precision integer arithmetic

Details:

It was discovered that phpseclib did not correctly handle RSA PKCS#1
v1.5 signature verification. An attacker could possibly use this issue to
bypass authentication. This issue only affected Ubuntu 20.04 LTS.
(CVE-2021-30130)

It was discovered that phpseclib did not correctly handle certain
characters in certain TLS fields, which could lead to name confusion.
An attacker could possibly use this issue to bypass authentication.
(CVE-2023-52892)

It was discovered that phpseclib incorrectly limited the size of prime
numbers generated by isPrime. An attacker could possibly use this issue
to cause a denial of service. (CVE-2024-27354)

It was discovered that phpseclib did not correctly handle processing the
ASN.1 object identifier of a certificate. An attacker could possibly use
this issue to cause a denial of service. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-27355)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 22.04 LTS
  php-phpseclib                   2.0.36-1ubuntu0.1~esm2
                                  Available with Ubuntu Pro
  php-phpseclib3                  3.0.13-1ubuntu0.1~esm1
                                  Available with Ubuntu Pro
  php-seclib                      1.0.20-1ubuntu0.1~esm1
                                  Available with Ubuntu Pro

Ubuntu 20.04 LTS
  php-phpseclib                   2.0.23-2ubuntu0.1~esm2
                                  Available with Ubuntu Pro
  php-seclib                      1.0.18-2ubuntu0.1~esm1
                                  Available with Ubuntu Pro

Ubuntu 18.04 LTS
  php-phpseclib                   2.0.9-1ubuntu0.1~esm2
                                  Available with Ubuntu Pro
  php-seclib                      1.0.9-1ubuntu0.1~esm1
                                  Available with Ubuntu Pro

Ubuntu 16.04 LTS
  php-phpseclib                   2.0.1-1ubuntu0.1~esm2
                                  Available with Ubuntu Pro
  php-seclib                      1.0.1-3ubuntu0.1+esm1
                                  Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References:
  https://ubuntu.com/security/notices/USN-7404-1
  CVE-2021-30130, CVE-2023-52892, CVE-2024-27354, CVE-2024-27355

No comments:

Post a Comment