An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.
The product does not properly control the allocation and maintenance of a limited resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Phpseclib | Phpseclib | 1.0.0 (including) | 1.0.23 (excluding) |
Phpseclib | Phpseclib | 2.0.0 (including) | 2.0.47 (excluding) |
Phpseclib | Phpseclib | 3.0.0 (including) | 3.0.36 (excluding) |
Php-phpseclib | Ubuntu | bionic | * |
Php-phpseclib | Ubuntu | esm-apps/bionic | * |
Php-phpseclib | Ubuntu | esm-apps/focal | * |
Php-phpseclib | Ubuntu | esm-apps/jammy | * |
Php-phpseclib | Ubuntu | esm-apps/xenial | * |
Php-phpseclib | Ubuntu | focal | * |
Php-phpseclib | Ubuntu | jammy | * |
Php-phpseclib | Ubuntu | mantic | * |
Php-phpseclib | Ubuntu | upstream | * |
Php-phpseclib | Ubuntu | xenial | * |
Php-phpseclib3 | Ubuntu | esm-apps/jammy | * |
Php-phpseclib3 | Ubuntu | jammy | * |
Php-phpseclib3 | Ubuntu | mantic | * |
Php-phpseclib3 | Ubuntu | upstream | * |
Phpseclib | Ubuntu | bionic | * |
Phpseclib | Ubuntu | esm-apps/bionic | * |
Phpseclib | Ubuntu | esm-apps/focal | * |
Phpseclib | Ubuntu | esm-apps/jammy | * |
Phpseclib | Ubuntu | esm-apps/xenial | * |
Phpseclib | Ubuntu | focal | * |
Phpseclib | Ubuntu | jammy | * |
Phpseclib | Ubuntu | mantic | * |
Phpseclib | Ubuntu | trusty | * |
Phpseclib | Ubuntu | upstream | * |
Phpseclib | Ubuntu | xenial | * |
Mitigation of resource exhaustion attacks requires that the target system either:
The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.
The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.