diff --git a/php-81/Dockerfile b/php-81/Dockerfile
index 4cc97f62..ee2e067d 100644
--- a/php-81/Dockerfile
+++ b/php-81/Dockerfile
@@ -141,7 +141,7 @@ RUN mkdir -p ${INSTALL_DIR}/bref/ssl && curl -Lk -o ${CA_BUNDLE} ${CA_BUNDLE_SOU
 # Needed by:
 #   - php
 #   - libnghttp2
-ENV VERSION_XML2=2.11.6
+ENV VERSION_XML2=2.12.4
 ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
 RUN set -xe; \
     mkdir -p ${XML2_BUILD_DIR}; \
diff --git a/php-82/Dockerfile b/php-82/Dockerfile
index e3fc886b..a2a3b0dc 100644
--- a/php-82/Dockerfile
+++ b/php-82/Dockerfile
@@ -141,7 +141,7 @@ RUN mkdir -p ${INSTALL_DIR}/bref/ssl && curl -Lk -o ${CA_BUNDLE} ${CA_BUNDLE_SOU
 # Needed by:
 #   - php
 #   - libnghttp2
-ENV VERSION_XML2=2.11.6
+ENV VERSION_XML2=2.12.4
 ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
 RUN set -xe; \
     mkdir -p ${XML2_BUILD_DIR}; \
diff --git a/php-83/Dockerfile b/php-83/Dockerfile
index 77968877..9a0f13ba 100644
--- a/php-83/Dockerfile
+++ b/php-83/Dockerfile
@@ -141,7 +141,7 @@ RUN mkdir -p ${INSTALL_DIR}/bref/ssl && curl -Lk -o ${CA_BUNDLE} ${CA_BUNDLE_SOU
 # Needed by:
 #   - php
 #   - libnghttp2
-ENV VERSION_XML2=2.11.6
+ENV VERSION_XML2=2.12.4
 ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
 RUN set -xe; \
     mkdir -p ${XML2_BUILD_DIR}; \