Skip to content
OpenAdvisories
Medium · 4.1 CVE-2025-4573 EUVD-2025-18095GHSA-4r67-4x4p-fprgGO-2025-3756

LDAP Injection in Mattermost Enterprise Edition When Using Active Directory

Published Jun 11, 2025 · Updated Jun 11, 2025 · Assigned by Mattermost

Description

Mattermost versions 10.7.x <= 10.7.1, 10.6.x <= 10.6.3, 10.5.x <= 10.5.4, 9.11.x <= 9.11.13 fail to properly validate LDAP group ID attributes, allowing an authenticated administrator with PermissionSysconsoleWriteUserManagementGroups permission to execute LDAP search filter injection via the PUT /api/v4/ldap/groups/{remote_id}/link API when objectGUID is configured as the Group ID Attribute.

Affected products

VendorProductAffectedFixed
Mattermost Mattermost 10.7.0 – ≤ 10.7.1, 10.6.0 – ≤ 10.6.3, 10.5.0 – ≤ 10.5.4, 9.11.0 – ≤ 9.11.13 10.8.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250612T141001-1.1 openSUSE-SU-2025:15225-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/mattermost/mattermost-server >= 10.7.0, < 10.7.2 10.7.2 GHSA-4r67-4x4p-fprg
Go github.com/mattermost/mattermost-server >= 10.6.0, < 10.6.4 10.6.4 GHSA-4r67-4x4p-fprg
Go github.com/mattermost/mattermost-server >= 10.5.0, < 10.5.5 10.5.5 GHSA-4r67-4x4p-fprg
Go github.com/mattermost/mattermost-server >= 9.11.0, < 9.11.14 9.11.14 GHSA-4r67-4x4p-fprg
Go github.com/mattermost/mattermost-server >= 9.11.0+incompatible, < 9.11.14+incompatible · >= 10.5.0+incompatible, < 10.5.5+incompatible · >= 10.6.0+incompatible, < 10.6.4+incompatible · >= 10.7.0+incompatible, < 10.7.2+incompatible 9.11.14+incompatible, 10.5.5+incompatible, 10.6.4+incompatible, 10.7.2+incompatible GO-2025-3756
Go github.com/mattermost/mattermost-server/v5 all versions — GO-2025-3756
Go github.com/mattermost/mattermost-server/v6 all versions — GO-2025-3756
Go github.com/mattermost/mattermost/server/v8 < 8.0.0-20250414112942-77892234944b 8.0.0-20250414112942-77892234944b GHSA-4r67-4x4p-fprg

Advisories 2

References