原始 OSV JSON{
"id": "GHSA-3hfw-x7gx-437c",
"aliases": [
"CVE-2021-41281"
],
"details": "### Impact\n\nSynapse instances with the media repository enabled can be tricked into downloading a file from a remote server into an arbitrary directory, potentially outside the media store directory.\n\nThe last two directories and file name of the path are chosen randomly by Synapse and cannot be controlled by an attacker, which limits the impact.\n\nHomeservers with the media repository disabled are unaffected. Homeservers configured with a federation whitelist are also unaffected.\n\n### Patches\nServer administrators should upgrade to 1.47.1 or later.\n\n### Workarounds\nServer administrators using a reverse proxy could, at the expense of losing media functionality, block the following endpoints:\n\n* `/_matrix/media/r0/download/{serverName}/{mediaId}`\n* `/_matrix/media/r0/download/{serverName}/{mediaId}/{fileName}`\n* `/_matrix/media/r0/thumbnail/{serverName}/{mediaId}`\n\nAlternatively, non-containerized deployments can be adapted to use the hardened systemd config, located at `contrib/systemd/override-hardened.conf`.\n\n### References\nn/a\n\n### For more information\n\nIf you have any questions or comments about this advisory, e-mail us at [email protected] .\n",
"summary": "Path traversal in Matrix Synapse",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.47.1"
}
]
}
],
"package": {
"name": "matrix-synapse",
"ecosystem": "PyPI"
}
}
],
"modified": "2024-09-24T15:47:18Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
}
],
"published": "2021-11-23T21:58:56Z",
"references": [
{
"url": "https://github.com/matrix-org/synapse/security/advisories/GHSA-3hfw-x7gx-437c",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41281",
"type": "ADVISORY"
},
{
"url": "https://github.com/matrix-org/synapse/commit/91f2bd090",
"type": "WEB"
},
{
"url": "https://github.com/matrix-org/synapse",
"type": "PACKAGE"
},
{
"url": "https://github.com/matrix-org/synapse/releases/tag/v1.47.1",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-436.yaml",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/EU7QRE55U4IUEDLKT5IYPWL3UXMELFAS",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/N3WY56LCEZ4ZECLWV5KMAXF2PSMUB4F2",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-11-23T20:15:00Z",
"github_reviewed_at": "2021-11-23T18:44:39Z"
}
}