{"id":"CVE-2023-41318","published":"2023-09-08T19:51:20Z","modified":"2024-09-26T14:03:33Z","title":"Unsafe media served inline on download endpoints in matrix-media-repo","vendor":"turt2live","product":"matrix-media-repo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00516,"percentile":0.44857,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/turt2live/matrix-media-repo/security/advisories/GHSA-5crw-6j7v-xc72","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/turt2live/matrix-media-repo/commit/77ec2354e8f46d5ef149d1dcaf25f51c04149137","tags":["x_refsource_MISC"]},{"url":"https://github.com/turt2live/matrix-media-repo/commit/bf8abdd7a5371118e280c65a8e0ec2b2e9bdaf59","tags":["x_refsource_MISC"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script","tags":["x_refsource_MISC"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":8.97},{"name":"CVSS severity","points":2.87}]},"vendorSlug":"turt2live","affectedVersions":[{"vendor":"turt2live","product":"matrix-media-repo","versions":["< 1.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-26T13:57:19.688359Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/turt2live/matrix-media-repo","vulnerableRanges":["<1.3.0"],"patched":["1.3.0"],"from":["GHSA-5crw-6j7v-xc72","GO-2023-2053"],"provenance":"source"}],"summary":{"text":"The flaw in matrix-media-repo, a multi-domain media repository for the Matrix chat ecosystem from turt2live, is that uploaded media is served with an inline Content-Disposition header on download, which allows scripts embedded in SVG content to execute. An attacker with low privileges (an account able to upload media) can exploit this by getting a victim to open a crafted download link, which requires user interaction and results in script execution in the victim's browser context, with a limited impact on confidentiality.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:07Z"},"euvd":{"id":"EUVD-2023-2431","exploited":false,"provenance":"source"}}