CVE-2023-41318 json
Unsafe media served inline on download endpoints in matrix-media-repo
published 2023-09-08 3 y ago modified 2026-09-10 1 mo ago also GHSA-5crw-6j7v-xc72 , GO-2023-2053 , EUVD-2023-2431
- cvss
- 4.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/turt2live/matrix-media-repo 1.3.0
- turt2live matrix-media-repo 1.3.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 4.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/turt2live/matrix-media-repo | <1.3.0 |
1.3.0 |
Affected products
- turt2live matrix-media-repo
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/turt2live/matrix-media-repo/commit/77ec2354e8f46d5ef149d1dcaf25f51c04149137
web, patch
-
github.com
/turt2live/matrix-media-repo/commit/bf8abdd7a5371118e280c65a8e0ec2b2e9bdaf59
web, patch
-
github.com
/turt2live/matrix-media-repo/security/advisories/GHSA-5crw-6j7v-xc72
web, vendor-advisory, advisory
-
developer.mozilla.org
/en-US/docs/Web/SVG/Element/script
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-41318
advisory
-
github.com
/turt2live/matrix-media-repo
package
Sources
- CVE List CVE-2023-41318
- GitHub Advisory GHSA-5crw-6j7v-xc72
- NVD CVE-2023-41318
- OSV GO-2023-2053
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.