CVE-2025-59154
Last modified
CVE-2025-59154 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
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
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-59154?
How severe is CVE-2025-59154?
How do I fix CVE-2025-59154?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-59148Suricata is a network IDS, IPS and NSM engine developed by t…7.5
- CVE-2025-59149Suricata is a network IDS, IPS and NSM engine developed by t…6.2
- CVE-2025-5915A vulnerability has been identified in the libarchive librar…6.6
- CVE-2025-59150Suricata is a network IDS, IPS and NSM engine developed by t…7.5
- CVE-2025-59151Pi-hole Admin Interface is a web interface for managing Pi-h…8.2
- CVE-2025-59152Litestar is an Asynchronous Server Gateway Interface (ASGI) …7.5
- CVE-2025-59155hackmd-mcp is a Model Context Protocol server for integratin…6.9
- CVE-2025-59156Coolify is an open-source and self-hostable tool for managin…8.8
- CVE-2025-59157Coolify is an open-source and self-hostable tool for managin…8.8
- CVE-2025-59158Coolify is an open-source and self-hostable tool for managin…8
- CVE-2025-59159SillyTavern is a locally installed user interface that allow…9.6
- CVE-2025-5916A vulnerability has been identified in the libarchive librar…5.6
Are you affected by CVE-2025-59154?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
