Skip to content
Server Security Center
KEVhigh7.5

CVE-2025-14847: MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency

MongoDB and MongoDB Server · listed in the CISA catalog of actively exploited vulnerabilities since 2025-12-29.

CVSS v3.1 (Ubuntu)
7.5
high
EPSS (exploit probability, 30 days)
79%
higher than 99.5% of all CVEs
Added to CISA KEV
2025-12-29
US federal due date 2026-01-19
Ubuntu priority
high

What is CVE-2025-14847?

Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthenticated client. This issue affects all MongoDB Server v7.0 prior to 7.0.28 versions, MongoDB Server v8.0 versions prior to 8.0.17, MongoDB Server v8.2 versions prior to 8.2.3, MongoDB Server v6.0 versions prior to 6.0.27, MongoDB Server v5.0 versions prior to 5.0.32, MongoDB Server v4.4 versions prior to 4.4.30, MongoDB Server v4.2 versions greater than or equal to 4.2.0, MongoDB Server v4.0 versions greater than or equal to 4.0.0, and MongoDB Server v3.6 versions greater than or equal to 3.6.0.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • MongoDB Inc. MongoDB Server
    Affected
    • 3.6
    • 4.0
    • 4.2
    • ≥ 4.4, < 4.4.30
    • ≥ 5.0, < 5.0.32
    • ≥ 6.0, < 6.0.27
    • ≥ 7.0, < 7.0.28
    • ≥ 8.0, < 8.0.17
    • ≥ 8.2, < 8.2.3
    Fixed in
    • 4.4.30
    • 5.0.32
    • 6.0.27
    • 7.0.28
    • 8.0.17
    • 8.2.3

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

  • Ubuntu 20.04 LTS·mongodb

    fix via Ubuntu Pro

    Fixed: 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1

  • Ubuntu 18.04 LTS·mongodb

    fix via Ubuntu Pro

    Fixed: 1:3.6.3-0ubuntu1.4+esm2

Check and fix on a server

Run on each Ubuntu or Debian server. Replace mongodb with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="mongodb"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="mongodb"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Partial – limited control or information

Weakness: CWE-130 Improper Handling of Length Parameter Inconsistency

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.