CVE-2023-41318
Unsafe media served inline on download endpoints in matrix-media-repo
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
Matrix-media-repo es un repositorio de medios multidominio altamente personalizable para el ecosistema de chat de Matrix. En las versiones afectadas, un atacante podría cargar un contenido malicioso en el repositorio de contenidos, que luego se entregaría con "Content-Disposition: inline" al descargarlo. Esta vulnerabilidad podría aprovecharse para ejecutar scripts incrustados en contenido SVG. Los commits `77ec235` y `bf8abdd` solucionan el problema y se incluyen en la versión 1.3.0. Los operadores deben actualizar a la versión 1.3.0 lo antes posible. Los operadores que no puedan actualizar deben anular el encabezado "Content-Disposition" devuelto por Matrix-media-repo como workaround.
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2023-08-28 CVE Reserved
- 2023-09-08 CVE Published
- 2024-09-14 EPSS Updated
- 2024-09-26 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script | Third Party Advisory |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/turt2live/matrix-media-repo/security/advisories/GHSA-5crw-6j7v-xc72 | 2023-09-13 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Turt2live Search vendor "Turt2live" | Matrix-media-repo Search vendor "Turt2live" for product "Matrix-media-repo" | < 1.3.0 Search vendor "Turt2live" for product "Matrix-media-repo" and version " < 1.3.0" | - |
Affected
|