CVE-2023-42453: Matrix synapse Matrix-synapse Vulnerable To Improper Validation Vulnerability
MODERATECVE-2023-42453 is a MODERATE (CVSS 3.1) matrix-synapse vulnerable to improper validation vulnerability (CWE-285: Improper Authorization) affecting Matrix synapse libraries in the PyPI ecosystem. The issue involves matrix-synapse vulnerable to improper validation of receipts allows forged read receipts. Remediation is available by upgrading affected packages to version 1.93.0.
CVE-2023-42453 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2023-42453
To remediate this vulnerability, upgrade all affected Matrix synapse dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install matrix-synapse>=1.93.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show matrix-synapse
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-42453, inspect your installed packages using pip:
pip show matrix-synapse
Analyze the terminal output to locate any version of Matrix synapse in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.93.0), your application is affected.
Note: The pip show matrix-synapse command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Matrix synapse, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-42453 Affected Matrix synapse Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-synapse
|
PyPI |
≥ 0.34.0
< 1.93.0
|
1.93.0
|
References
Frequently Asked Questions
What is CVE-2023-42453?
Which Matrix synapse versions are affected?
What version fixes CVE-2023-42453?
Is matrix-synapse affected?
What is the CVSS score of CVE-2023-42453?
What CWE is associated with CVE-2023-42453?
How can I check PyPI dependencies for CVE-2023-42453?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7565-cq32-vx2x",
"modified" : "2024-09-24T17:49:17Z",
"published" : "2023-09-26T19:20:38Z",
"aliases" : [ "CVE-2023-42453" ],
"summary" : "matrix-synapse vulnerable to improper validation of receipts allows forged read receipts",
"details" : "### Impact\nUsers were able to forge read receipts for any event (if they knew the room ID and event ID). Note that the users were not able to view the events, but simply mark it as read. This could be confusing as clients will show the event as read by the user, even if they are not in the room.\n\n### Patches\nhttps://github.com/matrix-org/synapse/pull/16327\n\n### Workarounds\nThere is no workaround.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "matrix-synapse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.34.0"
}, {
"fixed" : "1.93.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/matrix-org/synapse/security/advisories/GHSA-7565-cq32-vx2x"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-42453"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/synapse/pull/16327"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/synapse/commit/63d28a88c1d18c64ea7e23b6dd7483e6d5dcf881"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matrix-org/synapse"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2023-180.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2AFB2Y3S2VCPCN5P2XCZTG24MBMZ7DM4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/65QPC55I4D27HIZP7H2NQ34EOXHPP4AO"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N6P4QULVUE254WI7XF2LWWOGHCYVFXFY"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202401-12"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-26T19:20:38Z",
"nvd_published_at" : "2023-09-27T15:19:32Z"
}
}