{"id":70205,"date":"2025-09-16T01:32:03","date_gmt":"2025-09-15T22:02:03","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-59154-openfire-allows-potential-identity-spoofing-via-unsafe-cn-parsing\/"},"modified":"2025-09-16T01:32:03","modified_gmt":"2025-09-15T22:02:03","slug":"cve-2025-59154-openfire-allows-potential-identity-spoofing-via-unsafe-cn-parsing","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-59154-openfire-allows-potential-identity-spoofing-via-unsafe-cn-parsing\/","title":{"rendered":"CVE-2025-59154 &#8211; Openfire allows potential identity spoofing via unsafe CN parsing"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-59154<br \/>\n<br \/>\n<strong>Published : <\/strong> Sept. 15, 2025, 8:15 p.m. | 39\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>Openfire is an XMPP server licensed under the Open Source Apache License. Openfire\u2019s 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=&#8221;CN=admin,&#8221;). 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.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 5.9 | MEDIUM<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-59154 Published : Sept. 15, 2025, 8:15 p.m. | 39\u00a0minutes ago Description : Openfire is an XMPP server licensed under the Open Source Apache License. Openfire\u2019s 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, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-70205","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=70205"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70205\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=70205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=70205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=70205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}