cve.bz

CVE-2023-5968 mattermost mattermost: Improper Encoding or Escaping of Output

4.9 mediumEPSS 0.6%Fix available

Medium (4.9) in mattermost mattermost. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/mattermost/mattermost-server/v6 5.3.2-0.20230825233148-f787fd63368a, 7.8.12.

On this page
Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body.

Severity

CVSS 3.1

4.9 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-116 Improper Encoding or Escaping of Output
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • github.com/mattermost/mattermost-server/v6 (Go): fixed in 7.8.12, 5.3.2-0.20230825233148-f787fd63368a
  • github.com/mattermost/mattermost/server/v8 (Go): fixed in 8.0.4, 8.1.3, 9.0.1, 8.0.0-20230825233148-f787fd63368a
  • github.com/mattermost/mattermost-server/v5 (Go): fixed in 5.3.2-0.20230825233148-f787fd63368a
  • github.com/mattermost/mattermost-server (Go): fixed in 5.3.2-0.20230825233148-f787fd63368a
  • Vendor advisory: https://mattermost.com/security-updates

Ask an AI about this CVE

Show the promptExplain CVE-2023-5968 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5968?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5968?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-5968 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Mattermostthrough 7.8.11
Mattermostthrough 8.0.3
Mattermostthrough 8.1.2
Mattermostthrough 9.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost-server/v6>=5.4.0-rc1 <7.8.127.8.12
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost/server/v8>=8.0.0 <8.0.48.0.4
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost/server/v8>=8.1.0 <8.1.38.1.3
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost/server/v8>=9.0.0 <9.0.19.0.1
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost/server/v8<8.0.0-20230825233148-f787fd63368a8.0.0-20230825233148-f787fd63368a
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost-server/v6<5.3.2-0.20230825233148-f787fd63368a5.3.2-0.20230825233148-f787fd63368a
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost-server/v5<5.3.2-0.20230825233148-f787fd63368a5.3.2-0.20230825233148-f787fd63368a
GHSA-r67m-mf7v-qp7jGogithub.com/mattermost/mattermost-server<5.3.2-0.20230825233148-f787fd63368a5.3.2-0.20230825233148-f787fd63368a

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON