Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Local socket access (AV:L) and a trusted-CA certificate plus non-default PROXY-v2 config make it high-complexity (AC:H) with low prior privileges (PR:L); high C/I from role escalation, no availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
3DescriptionCVE.org
When PROXY protocol v2 is used on the Unix domain socket path, roles derived from X.509 client certificates may not be validated against the configured tlsCATrusts allow-list. This can result in unintended role assignments following MONGODB-X509 authentication. Affected scenarios require local access to the proxy Unix domain socket and a valid X.509 certificate issued by a trusted certificate authority.
AnalysisAI
Improper authorization in MongoDB Server allows a local attacker holding a valid trusted-CA X.509 certificate to obtain unintended database roles when PROXY protocol v2 is used over the Unix domain socket, because certificate-derived roles bypass the configured tlsCATrusts allow-list during MONGODB-X509 authentication. An attacker with local access to the proxy socket can therefore escalate to roles they were never granted, compromising confidentiality and integrity of data. Tracked via MongoDB SERVER-128387 and rated CVSS 4.0 7.2 (High); no public exploit identified at time of analysis and it is not listed in CISA KEV.
Technical ContextAI
The flaw lives in MongoDB's handling of the PROXY protocol v2 header when clients connect over a Unix domain socket, a deployment pattern used to preserve original client identity behind load balancers or sidecar proxies. During MONGODB-X509 authentication, MongoDB maps the certificate's subject/extensions to internal roles, and the tlsCATrusts setting is meant to constrain which issuing CAs and role assertions are honored. This is a CWE-863 (Improper Authorization) defect: the authorization decision that should validate certificate-derived roles against the tlsCATrusts allow-list is skipped in the PROXY-v2-over-UDS code path, so role claims embedded in or derived from a trusted-CA-issued certificate are accepted without the intended policy check. The result is an authorization gap rather than an authentication bypass in the strict sense - the certificate is still validated as trusted, but the roles it confers are not properly scoped.
RemediationAI
No vendor-released patch version is identified in the available data, so the fixed release must be confirmed directly from MongoDB via SERVER-128387 (https://jira.mongodb.org/browse/SERVER-128387) and applied once published. As compensating controls until patched: disable PROXY protocol v2 on the Unix domain socket path if it is not strictly required, since this specific code path is what skips the tlsCATrusts validation; restrict filesystem access to the proxy Unix domain socket (tighten socket file permissions and the containing directory) so that only trusted local principals can connect, which directly raises the bar set by the AV:L/local-access requirement; and audit issued client certificates and the tlsCATrusts allow-list, revoking or tightly scoping any trusted-CA certificates that could assert privileged roles. Trade-offs: disabling PROXY protocol v2 will break preservation of original client source identity behind a load balancer, and tightening socket permissions may disrupt legitimate co-located proxy/sidecar processes, so validate connectivity for authorized clients after changes.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log e
Memory corruption in MongoDB standalone mongod servers running with compute mode enabled allows remote attackers to cras
MongoDB 3.4.x before 3.4.10, and 3.5.x-development, has a disabled-by-default configuration setting, networkMessageCompr
A cross-site request forgery (CSRF) vulnerability in Jenkins MongoDB Plugin 1.3 and earlier allows attackers to gain acc
Same weakness CWE-863 – Incorrect Authorization
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-47794