# CVE-2025-20621: Webapp crash via object that can't be cast to String in Attachment Field

- Severity: Medium 6.5 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-01-16T18:16:28.042Z
- Modified: 2026-09-10T03:50:22.300Z
- Also known as: GHSA-w6xh-c82w-h997, GO-2025-3407
- Related: CGA-c98v-56mv-hwh5
- Weaknesses: CWE-1287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Mattermost

## Description

Mattermost versions 10.2.x <= 10.2.0, 9.11.x <= 9.11.5, 10.0.x <= 10.0.3, 10.1.x <= 10.1.3 fail to properly handle posts with attachments containing fields that cannot be cast to a String, which allows an attacker to cause the webapp to crash via creating and sending such a post to a channel.

(As written by CVE List.)

## Affected

- Mattermost Mattermost: from 10.2.0 up to 10.2.0; from 9.11.0 up to 9.11.5; from 10.0.0 up to 10.0.3; from 10.1.0 up to 10.1.3 (not affected: 10.3.0; 2.23.0; 10.2.1; 9.11.6; 10.0.4; 10.1.4)
- github.com/mattermost/mattermost/server/v8 (Go): from 10.2.0 before 10.2.1; from 10.1.0 before 10.1.4; from 10.0.0 before 10.0.4; from 9.11.0 before 9.11.6; before 8.0.0-20241127161322-25ff7a3779a5
- github.com/mattermost/mattermost-server (Go): from 9.11.0+incompatible before 9.11.6+incompatible; from 10.0.0+incompatible before 10.0.4+incompatible; from 10.1.0+incompatible before 10.1.4+incompatible; from 10.2.0+incompatible before 10.2.1+incompatible
- github.com/mattermost/mattermost-server/v5 (Go): all versions
- github.com/mattermost/mattermost-server/v6 (Go): all versions
- mattermost mattermost_server: from 9.11.0 before 9.11.6; from 10.0.0 before 10.0.4; from 10.1.0 before 10.1.4; 10.2.0

## Every score

- Mattermost: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://mattermost.com/security-updates> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-20621> (advisory)
- <https://github.com/mattermost/mattermost> (package)
- <https://github.com/advisories/GHSA-w6xh-c82w-h997> (advisory)

## Sources

- CVE List: [CVE-2025-20621](https://www.cve.org/CVERecord?id=CVE-2025-20621), CVE Terms of Use, modified 2025-01-16
- GitHub Advisory Database: [GHSA-w6xh-c82w-h997](https://github.com/advisories/GHSA-w6xh-c82w-h997), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3407](https://pkg.go.dev/vuln/GO-2025-3407), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-20621](https://nvd.nist.gov/vuln/detail/CVE-2025-20621), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-20621 · Whole record: https://cve.day/CVE-2025-20621.json · Rebuilt by cve.day 2026-11-25T22:58:53.358Z
