Expired pointer dereference in MongoDB driver for PHP and MongoDB driver for C - CVE-2025-12119

 

Expired pointer dereference in MongoDB driver for PHP and MongoDB driver for C - CVE-2025-12119

Published: December 15, 2025


Vulnerability identifier: #VU119959
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-12119
CWE-ID: CWE-825
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to expired pointer dereference within the mongoc_bulk_operation_t() function. A remote attacker can pass specially crafted input to the application and read parts of the memory on the system. 


Affected software

MongoDB driver for PHP
MongoDB driver for C
openEuler
mongo-c-driver-devel
mongo-c-driver-debugsource
mongo-c-driver-help
mongo-c-driver
libbson
libbson-devel
mongo-c-driver-debuginfo

How to mitigate CVE-2025-12119

Install updates from vendor's website.

MongoDB driver for PHP - update to 1.21.2
MongoDB driver for C - addressed in versions 1.30.6, 2.1.2
mongo-c-driver-devel - update to 1.30.6-1
mongo-c-driver-debugsource - update to 1.30.6-1
mongo-c-driver-help - update to 1.30.6-1
mongo-c-driver - update to 1.30.6-1
libbson - update to 1.30.6-1
libbson-devel - update to 1.30.6-1
mongo-c-driver-debuginfo - update to 1.30.6-1

External References

Related Security Bulletins