CVE-2024-5629: USN-9458-1: PyMongo vulnerabilities

Vulnerability · Reported by Ubuntu Security Notices · · CWE-125

Severity
High Risk score 81/100
CVSS
8.1 v3.1 · from NVD
Exploit chance (EPSS)
0.66% Higher than 53% of CVEs
Known exploited
No Not in CISA KEV

Summary

It was discovered that PyMongo incorrectly handled malformed BSON data received from a server. A malicious server could possibly use this issue to obtain sensitive information from application memory. This issue only affected Ubuntu 14.04 LTS. (CVE-2024-5629) It was discovered that PyMongo incorrectly handled file identifiers in GridFS, which could cause them to be interpreted as query conditions. An authenticated user could possibly use this issue to obtain stored file content, delete stored file content, or rename unintended files. (CVE-2026-88029) It was discovered that PyMongo incorrectly handled key management endpoint values in client-side field level encryption. A user able to modify encryption key metadata could possibly use this issue to cause applications to connect to local sockets. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-96747) It was discovered that PyMongo incorrectly parsed connection strings. A remote attacker could possibly use this issue to cause applications to connect to servers of the attacker's choosing, resulting in the disclosure of limited information or altered results. This issue only

How this vulnerability can be exploited

This is a out-of-bounds read flaw (CWE-125). An attacker can exploit this vulnerability remotely over the network, without any login, and only if a user is tricked into an action (such as clicking a link or opening a file). Attack complexity is low, so no special conditions are needed. If successful, the attacker could read sensitive data and crash or disrupt the service.

Is it being exploited?

The EPSS model estimates a 0.66% chance this CVE will be exploited in the next 30 days, which is low and higher than 53% of all published CVEs.

Patch priority and what to do

Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Warn users about suspicious links and files that could trigger the flaw. 5) Review logs for signs of exploitation since the publication date.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

See what each part means in the official CVSS calculator ↗

Tags

CVE-2024-5629, Linux

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.