diff --git a/docker/ubuntu_20_04_base b/docker/ubuntu_20_04_base
index 57449befa45c3448837ecb0b1be14b7a333eadd5..12d94cfb44dd1983b9dea74241d0f311c79ee77b 100644
--- a/docker/ubuntu_20_04_base
+++ b/docker/ubuntu_20_04_base
@@ -14,4 +14,4 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -
 # The formatter needs a binary named 'clang-format', not 'clang-format-12'.
 # Same for clang-tidy-12.
     && ln -sf clang-format-12 /usr/bin/clang-format \
-    && python3 -m pip install gcovr cmake-format
\ No newline at end of file
+    && python3 -m pip install gcovr==5.0 cmake-format
\ No newline at end of file
diff --git a/docker/ubuntu_22_04_base b/docker/ubuntu_22_04_base
index 014988585a6dba412e39aa66ad7301ebbd493a5e..ccaf7009fd8df99c4e3cb8b9b9aebd4bd8c45304 100644
--- a/docker/ubuntu_22_04_base
+++ b/docker/ubuntu_22_04_base
@@ -14,4 +14,4 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -
 # The formatter needs a binary named 'clang-format', not 'clang-format-12'.
 # Same for clang-tidy-12.
     && ln -sf clang-format-12 /usr/bin/clang-format \
-    && python3 -m pip install gcovr cmake-format
\ No newline at end of file
+    && python3 -m pip install gcovr==5.0 cmake-format
\ No newline at end of file