CVE-2023-38691: matrix-org matrix-appservice-bridge Improper Authentication
Vulnerability summary
CVE-2023-38691 is a medium (CVSS 6.5) Improper Authentication vulnerability in matrix-org matrix-appservice-bridge. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 39% of scored vulnerabilities.
Timeline
- 04-08-2023PublishedVulnerability first disclosed.
- 07-10-2024Last modifiedVulnerability information updated.
Description
matrix-appservice-bridge provides an API for setting up bridges. Starting in version 4.0.0 and prior to versions 8.1.2 and 9.0.1, a malicious Matrix server can use a foreign user's MXID in an OpenID exchange, allowing a bad actor to impersonate users when using the provisioning API. The library does not check that the servername part of the `sub` parameter (containing the user's *claimed* MXID) is the the same as the servername we are talking to. A malicious actor could spin up a server on any given domain, respond with a `sub` parameter according to the user they want to act as and use the resulting token to perform provisioning requests. Versions 8.1.2 and 9.0.1 contain a patch. As a workaround, disable the provisioning API.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.0MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
0.00 pp
From 0.47% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Matrix1 product
- matrix-appservice-bridge≥ 4.0.0, < 8.1.2 | 9.0.0
Matrix-org1 product
- matrix-appservice-bridge≥ 4.0.0, < 8.1.2 | = 9.0.0
Npm1 product
- matrix-appservice-bridge≥ 4.0.0, < 8.1.2 | ≥ 9.0.0, < 9.0.1
3 vendors · 3 products
References
4 links- github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-vc7j-h8xg-fv5xX Refsource CONFIRMWEBThird Party Advisory
- github.com/matrix-org/matrix-appservice-bridge/commit/4c6723a5e7beda65cdf1ae5dbb882e8beaac8552X Refsource MISCWEBPatch