VDB
Sign up
HIGH7.5

GHSA-ff7q-6vwh-v9m4

Name confusion in x509 Subject Alternative Name fields

Quick fix

GHSA-ff7q-6vwh-v9m4 — phpseclib/phpseclib: upgrade to the fixed version with the command below.

composer require phpseclib/phpseclib:^1.0.22

Details

In phpseclib before 1.0.22, 2.x before 2.0.46, and 3.x before 3.0.33, some characters in Subject Alternative Name fields in TLS certificates are incorrectly allowed to have a special meaning in regular expressions (such as a + wildcard), leading to name confusion in X.509 certificate host verification.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/phpseclib/phpseclib
Introduced in: 0Fixed in: 1.0.22
Fixcomposer require phpseclib/phpseclib:^1.0.22
Packagist/phpseclib/phpseclib
Introduced in: 2.0.0Fixed in: 2.0.46
Fixcomposer require phpseclib/phpseclib:^2.0.46
Packagist/phpseclib/phpseclib
Introduced in: 3.0.0Fixed in: 3.0.33
Fixcomposer require phpseclib/phpseclib:^3.0.33

References