CVE-2025-59154
CVE-2025-59154 — Openfire allows potential identity spoofing via unsafe CN parsing
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.9
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.9 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-290
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1134Access Token Manipulation
- T1528Steal Application Access Token
- T1539Steal Web Session Cookie
References
5 on the record
- github.com/igniterealtime/Openfire/security/advisories/GHSA-w252-645g-87mp
x_refsource_CONFIRM
- github.com/igniterealtime/Openfire/blob/8d073dda36905da0fdee7cb623c025a01a5cbf6b/xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java#L43
x_refsource_MISC
- igniterealtime.atlassian.net/browse/OF-3122
x_refsource_MISC
- igniterealtime.atlassian.net/browse/OF-3123
x_refsource_MISC
- igniterealtime.atlassian.net/browse/OF-3124
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2023-32315 Openfire administration console authentication bypassCVSS 7.5 · CISA KEV
- CVE-2026-102895 GPUStack: Authentication bypass via trusted loopback source (reverse-proxy TCP peer or X-GPUStack-Real-IP header) grants unauthenticated adminCVSS 9.8 · CISA KEV
- CVE-2026-102764 Improper Origin Validation in Internal Messaging Components of BeyondTrust Remote SupportCVSS 9.8 · CISA KEV
- CVE-2024-54085 AMI MegaRAC SPx Authentication Bypass by Spoofing VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-4358 Progress Telerik Report Server Authentication Bypass by Spoofing VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2022-24112 Apache APISIX Authentication Bypass VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Igniterealtimeevery CVE for this vendor
- CWE-290other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.