Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpseclib/phpseclib
  4. ›
  5. CVE-2023-52892

CVE-2023-52892: Name confusion in x509 Subject Alternative Name fields

June 28, 2024

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.

References

  • github.com/advisories/GHSA-ff7q-6vwh-v9m4
  • github.com/phpseclib/phpseclib
  • github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
  • github.com/phpseclib/phpseclib/issues/1943
  • github.com/phpseclib/phpseclib/releases/tag/3.0.33
  • github.com/x509-name-testing/name_testing_artifacts
  • nvd.nist.gov/vuln/detail/CVE-2023-52892

Code Behaviors & Features

Detect and mitigate CVE-2023-52892 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.22, all versions starting from 2.0.0 before 2.0.46, all versions starting from 3.0.0 before 3.0.33

Fixed versions

  • 1.0.22
  • 2.0.46
  • 3.0.33

Solution

Upgrade to versions 1.0.22, 2.0.46, 3.0.33 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict

Source file

packagist/phpseclib/phpseclib/CVE-2023-52892.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.