CVE-2025-62425: Matrix Authentication Service account password can be changed using an authenticated session without supplying the current password
MAS (Matrix Authentication Service) is a user management and authentication service for Matrix homeservers, written and maintained by Element. A logic flaw in matrix-authentication-service 0.20.0 through 1.4.0 allows an attacker with access to an authenticated MAS session to perform sensitive operations without entering the current password. These include changing the current password, adding or removing an e-mail address and deactivating the account. The vulnerability only affects instances which have the local password database feature enabled (passwords section in the config). Patched in matrix-authentication-service 1.4.1.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-62425?
CVE-2025-62425 has been classified as a medium severity vulnerability due to the potential for unauthorized access in authenticated sessions.
How do I fix CVE-2025-62425?
To mitigate CVE-2025-62425, upgrade the Element Matrix Authentication Service to version 1.4.1 or later.
What impact does CVE-2025-62425 have on my system?
CVE-2025-62425 can allow attackers to exploit a logic flaw and perform unauthorized actions if they gain access to an authenticated session.
Which versions of Element Matrix Authentication Service are affected by CVE-2025-62425?
CVE-2025-62425 affects Element Matrix Authentication Service versions from 0.20.0 to 1.4.0.
Is there a workaround for CVE-2025-62425 if I can't update immediately?
There is no known effective workaround for CVE-2025-62425, so upgrading to the latest version is essential.