diff --git a/12/bookworm/Dockerfile b/12/bookworm/Dockerfile
index c9f6baeea762db99dceb7a0ddcf084fb93fe113a..cff8863b42c64885a62efcd63aca9aa139ede46a 100644
--- a/12/bookworm/Dockerfile
+++ b/12/bookworm/Dockerfile
@@ -89,7 +89,7 @@ RUN set -ex; \
 ENV PG_MAJOR 12
 ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
 
-ENV PG_VERSION 12.22-1.pgdg120+1
+ENV PG_VERSION 12.22-2.pgdg120+1
 
 RUN set -ex; \
 	\
diff --git a/12/bullseye/Dockerfile b/12/bullseye/Dockerfile
index 098f6841295b3fa461f4dba3a36be2b4d464664d..4bb12a3eb4fb8d339117f548856c3d0ab8841e96 100644
--- a/12/bullseye/Dockerfile
+++ b/12/bullseye/Dockerfile
@@ -89,7 +89,7 @@ RUN set -ex; \
 ENV PG_MAJOR 12
 ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
 
-ENV PG_VERSION 12.22-1.pgdg110+1
+ENV PG_VERSION 12.22-2.pgdg110+1
 
 RUN set -ex; \
 	\
diff --git a/versions.json b/versions.json
index 11cf4b6a294f50c7866d15a490b49106eee2effa..d5f9761bb3af90544d562a91d32e86f87481d0c3 100644
--- a/versions.json
+++ b/versions.json
@@ -8,7 +8,7 @@
         "ppc64el",
         "s390x"
       ],
-      "version": "12.22-1.pgdg120+1"
+      "version": "12.22-2.pgdg120+1"
     },
     "bullseye": {
       "arches": [
@@ -17,7 +17,7 @@
         "ppc64el",
         "s390x"
       ],
-      "version": "12.22-1.pgdg110+1"
+      "version": "12.22-2.pgdg110+1"
     },
     "debian": "bookworm",
     "major": 12,