Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4147: CWE-457 Use of uninitialized variable in MongoDB Inc MongoDB Server

0
High
VulnerabilityCVE-2026-4147cvecve-2026-4147cwe-457
Published: Tue Mar 17 2026 (03/17/2026, 15:50:21 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB Inc
Product: MongoDB Server

Description

CVE-2026-4147 is a high-severity vulnerability in MongoDB Server versions 7. 0, 8. 0, and 8. 2, involving the use of uninitialized stack memory. An authenticated user with read privileges can exploit this flaw by issuing specially crafted filemd5 commands to read limited amounts of uninitialized stack memory. This vulnerability does not require user interaction or elevated privileges beyond read access, making it easier to exploit within compromised or authorized accounts. Although no known exploits are currently in the wild, the vulnerability poses a risk of information disclosure that could aid further attacks. MongoDB Server is widely used globally, especially in enterprise and cloud environments, increasing the potential impact. Mitigation involves applying patches once available and restricting read role assignments to trusted users. Organizations should also monitor for unusual filemd5 command usage and consider additional access controls.

AI-Powered Analysis

AILast updated: 03/17/2026, 18:28:10 UTC

Technical Analysis

CVE-2026-4147 is a vulnerability classified under CWE-457 (Use of Uninitialized Variable) affecting MongoDB Server versions 7.0, 8.0, and 8.2. The flaw arises from the improper handling of stack memory during the execution of the filemd5 command, which calculates the MD5 hash of files stored in the database. An authenticated user with the read role can issue specially crafted filemd5 commands that cause the server to return limited portions of uninitialized stack memory. This memory leakage can potentially expose sensitive data residing in stack variables, which may include cryptographic keys, internal pointers, or other confidential information. The vulnerability requires no user interaction and no elevated privileges beyond read access, making it relatively easy to exploit by insiders or attackers who have obtained read credentials. The CVSS 4.0 base score is 7.1 (high), reflecting the network attack vector, low attack complexity, no privileges required beyond read, and high confidentiality impact. Integrity and availability are not impacted. No patches were linked at the time of disclosure, and no known exploits have been reported in the wild. However, the presence of uninitialized memory disclosure can facilitate further attacks such as privilege escalation or data exfiltration. MongoDB Server is widely deployed in enterprise, cloud, and web application environments, making this vulnerability relevant to a broad range of organizations worldwide.

Potential Impact

The primary impact of CVE-2026-4147 is unauthorized disclosure of sensitive information through leakage of uninitialized stack memory. This can compromise confidentiality by exposing internal server data that might include cryptographic material or application secrets. Attackers with read access can leverage this information to escalate privileges, bypass security controls, or conduct targeted attacks against the affected systems. Since the vulnerability requires only read role authentication, any compromised or insider account with read permissions is sufficient to exploit it. This broadens the attack surface, especially in environments with multiple users or third-party integrations. Although integrity and availability are not directly affected, the confidentiality breach can lead to significant downstream risks, including data breaches and regulatory non-compliance. Organizations relying heavily on MongoDB for critical data storage, especially in sectors like finance, healthcare, and government, face increased risk. The lack of known exploits currently reduces immediate threat but does not eliminate the potential for future weaponization.

Mitigation Recommendations

1. Monitor MongoDB usage logs for unusual or excessive filemd5 command invocations, especially from users with read roles. 2. Restrict read role assignments strictly to trusted and necessary users; implement the principle of least privilege. 3. Apply vendor patches promptly once they become available to address the uninitialized memory handling in the filemd5 command. 4. Consider implementing network segmentation and access controls to limit exposure of MongoDB instances to only authorized systems and users. 5. Use encryption at rest and in transit to reduce the impact of any leaked data. 6. Conduct regular audits of user permissions and review authentication mechanisms to detect and prevent unauthorized access. 7. Employ runtime application self-protection (RASP) or database activity monitoring tools that can detect anomalous command usage patterns. 8. If patching is delayed, consider disabling or restricting the filemd5 command usage via MongoDB configuration or role-based access control where feasible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mongodb
Date Reserved
2026-03-13T17:18:01.671Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69b99a3b771bdb1749cb0c8b

Added to database: 3/17/2026, 6:15:23 PM

Last enriched: 3/17/2026, 6:28:10 PM

Last updated: 3/18/2026, 7:05:37 AM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses