Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-59154 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

Openfire is an XMPP server licensed under the Open Source Apache License. Openfire’s SASL EXTERNAL mechanism for client TLS authentication contains a vulnerability in how it extracts user identities from X.509 certificates. Instead of parsing the structured ASN.1 data, the code calls X509Certificate.getSubjectDN().getName() and applies a regex to look for CN=. This method produces a provider-dependent string that does not escape special characters. In SunJSSE (sun.security.x509.X500Name), for example, commas and equals signs inside attribute values are not escaped. As a result, a malicious certificate can embed CN= inside another attribute value (e.g. OU="CN=admin,"). The regex will incorrectly interpret this as a legitimate Common Name and extract admin. If SASL EXTERNAL is enabled and configured to map CNs to user accounts, this allows the attacker to impersonate another user. The fix is included in Openfire 5.0.2 and 5.1.0.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-290Authentication Bypass by Spoofing[email protected]

Affected Products

ProductVersions
Ignite Realtime Openfire
< 5.0.2 (semver)

CPE

  • cpe:2.3:a:igniterealtime:openfire:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 5.0.2moderate effort
  • Upgrade: 5.1.0moderate effort
  • Workaround:low effort

    Configure Openfire to use the Subject Alternative Name (SAN) for identity mapping by setting the following property in the admin console: provider.clientCertIdentityMap.classList=org.jivesoftware.util.cert.SANCertificateIdentityMapping Note: This will break authentication for certificates that contain only a CN and no SAN.

  • Workaround:low effort

    Disable certificate-based authentication for client-to-server connections in the admin console.

  • Workaround:low effort

    Disable certificate-based authentication for server-to-server connections. Note: This may be less secure depending on your environment.

  • Workaround:moderate effort

    Create a custom Java class that implements the Openfire certificate-identity mapping interface and contains the fixed parsing logic. Package the class into a JAR file and place it in Openfire's lib/ directory. Configure Openfire to use your class for mapping by setting the following properties in the admin console: # For server-to-server identity mapping provider.serverCertIdentityMap.classList=org.jivesoftware.util.cert.SANCertificateIdentityMapping,com.acme.openfire.SafeCNCertificateIdentityMapping # For client-to-server identity mapping provider.clientCertIdentityMap.classList=org.jivesoftware.util.cert.SANCertificateIdentityMapping,com.acme.openfire.SafeCNCertificateIdentityMapping After placing the JAR and updating properties, restart Openfire.

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-59154
NVD Published Date:
Sep 15, 2025
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2025-59154 Details - Not Deferred