CVE-2023-41318CWE-79

Unsafe media served inline on download endpoints in matrix-media-repo

Medium · published September 8, 2023

CVSS v3.1
4.1
EPSS
1%
Percentile
43.1
In the wild
Unconfirmed
What it is

matrix-media-repo is a highly customizable multi-domain media repository for the Matrix chat ecosystem. In affected versions an attacker could upload a malicious piece of media to the media repo, which would then be served with `Content-Disposition: inline` upon download. This vulnerability could be leveraged to execute scripts embedded in SVG content. Commits `77ec235` and `bf8abdd` fix the issue and are included in the 1.3.0 release. Operators should upgrade to v1.3.0 as soon as possible. Operators unable to upgrade should override the `Content-Disposition` header returned by matrix-media-repo as a workaround.

The record
Technical detail
CVSS v3.1
4.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00516 · 43.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2023-09-08T19:51Z
EPSS history
Timeline
  • 08 SEP 19:51Z
    Unsafe media served inline on download endpoints in matrix-media-repo
    cvelistv5