Skip to content
OpenAdvisories
High · 7.5 CVE-2021-30130 EUVD-2021-0879GHSA-vf4w-fg7r-5v94

Improper Certificate Validation in phpseclib

Published Apr 6, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-phpseclib 2.0.30-2 —
Debian 14 php-phpseclib3 3.0.7-1 —
Debian 13 php-phpseclib 2.0.30-2 —
Debian 13 php-phpseclib3 3.0.7-1 —
Debian 13 phpseclib 1.0.19-3 —
Debian 12 php-phpseclib 2.0.30-2 —
Debian 12 php-phpseclib3 3.0.7-1 —
Debian 12 phpseclib 1.0.19-3 —
Debian 10 php-phpseclib 2.0.30-2~deb10u1 DLA-3198-1
Debian 10 phpseclib 1.0.19-3~deb10u1 DLA-3197-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS php-phpseclib 2.0.36-1ubuntu0.1~esm2 USN-7404-1
Ubuntu Pro 22.04 LTS php-phpseclib3 3.0.13-1ubuntu0.1~esm1 USN-7404-1
Ubuntu Pro 22.04 LTS phpseclib 1.0.20-1ubuntu0.1~esm1 USN-7404-1
Ubuntu Pro 20.04 LTS php-phpseclib 2.0.23-2ubuntu0.1~esm2 USN-7404-1
Ubuntu Pro 20.04 LTS phpseclib 1.0.18-2ubuntu0.1~esm1 USN-7404-1
Ubuntu Pro 18.04 LTS php-phpseclib 2.0.9-1ubuntu0.1~esm2 USN-7404-1
Ubuntu Pro 18.04 LTS phpseclib 1.0.9-1ubuntu0.1~esm1 USN-7404-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS php-phpseclib 2.0.1-1ubuntu0.1~esm2 USN-7404-1
Ubuntu Pro 16.04 LTS phpseclib 1.0.1-3ubuntu0.1+esm1 USN-7404-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpseclib/phpseclib >= 3.0.0, < 3.0.7 3.0.7 GHSA-vf4w-fg7r-5v94
Packagist phpseclib/phpseclib < 2.0.31 2.0.31 GHSA-vf4w-fg7r-5v94

Advisories 3

References