diff --git a/php/8.4-ubuntu-apache/Dockerfile b/php/8.4-ubuntu-apache/Dockerfile
index 12eb0a1a41ebffdac89ad2c4ece0e12975cad228..3db6845e43919d50c12e3e2ede40d97ebc583864 100644
--- a/php/8.4-ubuntu-apache/Dockerfile
+++ b/php/8.4-ubuntu-apache/Dockerfile
@@ -116,7 +116,7 @@ RUN set -xe &&\
 
 # install pecl extensions for apcu, pcov, xdebug, and yaml
 RUN pecl channel-update pecl.php.net &&\
-    pecl install APCu-5.1.24 mongodb-1.21.0 opentelemetry-1.1.2 pcov-1.0.12 xdebug-3.4.2 yaml-2.2.4 \
+    pecl install APCu-5.1.24 mongodb-2.0.0 opentelemetry-1.1.2 pcov-1.0.12 xdebug-3.4.2 yaml-2.2.4 \
     &&\
     set -eux &&\
 # stript .debug files out of executables
diff --git a/php/8.5-ubuntu-apache/Dockerfile b/php/8.5-ubuntu-apache/Dockerfile
index 866a91359a5139ca5a0ef5cb53e57b60aa539ded..e81612e5b7a7c296a291eed53ef1d8aae6f2c09e 100644
--- a/php/8.5-ubuntu-apache/Dockerfile
+++ b/php/8.5-ubuntu-apache/Dockerfile
@@ -118,7 +118,7 @@ RUN set -xe &&\
 
 # install pecl extensions for apcu, pcov, xdebug, and yaml
 RUN pecl channel-update pecl.php.net &&\
-    pecl install APCu-5.1.24 mongodb-1.21.0 opentelemetry-1.1.2 pcov-1.0.12 xdebug-3.4.2 yaml-2.2.4 \
+    pecl install APCu-5.1.24 mongodb-2.0.0 opentelemetry-1.1.2 pcov-1.0.12 xdebug-3.4.2 yaml-2.2.4 \
     &&\
     set -eux &&\
 # stript .debug files out of executables