Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-52892

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-52892
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 04:05 UTC · Revision 1

Source evidence

CVE-2023-52892

core-osv · Original source

Published 27 Jun 2024, 00:00 UTC

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.

osv:CVE-2023-52892
Complete source record
{
  "id": "eb52dce2754fc77713aa4de617459f326ebdb32c1e54ada1b5ba59ca60f171e5",
  "url": "https://osv.dev/vulnerability/CVE-2023-52892",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-52892",
    "summary": "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.",
    "evidence": "osv:CVE-2023-52892",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-52892",
      "aliases": [
        "CVE-2023-52892",
        "GHSA-ff7q-6vwh-v9m4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/phpseclib/phpseclib",
              "type": "GIT",
              "events": [
                {
                  "introduced": "844134df95e42b93ed5506a2d11ca5accda99412"
                },
                {
                  "fixed": "db278731472afb1621353b659609b0f9054a1879"
                },
                {
                  "introduced": "a74aa9efbe61430fcb60157c8e025a48ec8ff604"
                },
                {
                  "fixed": "498e67a0c82bd5791fda9b0dd0f4ec8e8aebb02d"
                },
                {
                  "introduced": "fe62c85e0203503231d489af95d0ac053b7d3575"
                },
                {
                  "fixed": "33fa69b2514a61138dd48e7a49f99445711e0ad0"
                },
                {
                  "fixed": "6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "1.0.22"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.0.46"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.0.33"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "33fa69b2514a61138dd48e7a49f99445711e0ad0"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "3.0.33"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.0.23",
            "2.0.45",
            "3.0.22",
            "3.0.21",
            "2.0.44",
            "3.0.20",
            "2.0.43",
            "2.0.42",
            "3.0.19",
            "2.0.41",
            "3.0.18",
            "2.0.40",
            "3.0.17",
            "2.0.39",
            "3.0.16",
            "2.0.38",
            "3.0.15",
            "3.0.14",
            "2.0.37",
            "3.0.13",
            "2.0.36",
            "2.0.35",
            "3.0.12",
            "3.0.11",
            "2.0.34",
            "3.0.10",
            "2.0.33",
            "3.0.9",
            "2.0.32",
            "3.0.8",
            "2.0.31",
            "3.0.7",
            "3.0.6",
            "3.0.5",
            "3.0.4",
            "3.0.3",
            "3.0.2",
            "3.0.1",
            "2.0.30",
            "3.0.0",
            "2.0.29",
            "2.0.28",
            "2.0.27",
            "2.0.26",
            "2.0.25",
            "2.0.24",
            "2.0.23",
            "2.0.22",
            "2.0.21",
            "2.0.20",
            "2.0.19",
            "2.0.18",
            "2.0.17",
            "2.0.16",
            "2.0.15",
            "2.0.14",
            "2.0.13",
            "2.0.12",
            "2.0.11",
            "2.0.10",
            "2.0.9",
            "2.0.7",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.3",
            "2.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52892.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.650800508Z",
      "provider": "osv",
      "references": [
        "https://github.com/phpseclib/phpseclib/releases/tag/3.0.33",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52892.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52892",
        "https://github.com/phpseclib/phpseclib/issues/1943",
        "https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627",
        "https://github.com/x509-name-testing/name_testing_artifacts"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52892.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52892",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514564,
  "published_at": "2024-06-27T00:00:00+00:00"
}