CVE-2018-12291: Matrix synapse Matrix Synapse Security Filtering Flaw Vulnerability
HIGHCVE-2018-12291 is a HIGH (CVSS 7.5) matrix synapse security filtering flaw vulnerability (General Security Weakness) affecting Matrix synapse libraries in the PyPI ecosystem. The issue involves matrix synapse security filtering flaw. Remediation is available by upgrading affected packages to version 0.31.1.
CVE-2018-12291 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2018-12291
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>=0.31.1
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-2018-12291, 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 0.31.1), 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 General Security Weakness. 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-2018-12291 Affected Matrix synapse Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-synapse
|
PyPI |
< 0.31.1
|
0.31.1
|
References
Frequently Asked Questions
What is CVE-2018-12291?
Which Matrix synapse versions are affected?
What version fixes CVE-2018-12291?
Is matrix-synapse affected?
What is the CVSS score of CVE-2018-12291?
What CWE is associated with CVE-2018-12291?
How can I check PyPI dependencies for CVE-2018-12291?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v8wm-g9f2-xjv4",
"modified" : "2023-10-06T17:13:10Z",
"published" : "2022-05-13T01:49:32Z",
"aliases" : [ "CVE-2018-12291" ],
"summary" : "Matrix Synapse Security Filtering Flaw",
"details" : "The `on_get_missing_events` function in handlers/federation.py in Matrix Synapse before 0.31.1 has a security bug in the get_missing_events federation API where event visibility rules were not applied correctly.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "matrix-synapse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.31.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-12291"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/synapse/pull/3371"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/synapse/commit/0834b49c6a9b6c597a154d4b2dfcf8fff90699ec"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matrix-org/synapse"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/synapse/releases/tag/v0.31.1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-21T22:50:51Z",
"nvd_published_at" : "2018-06-13T14:29:00Z"
}
}