Skip to content

Commit 9747869

Browse files
Faraz32123Muhammad Faraz  Maqsood
andauthored
fix: Update MongoDB to v7.0.28 (#1325)
This upgrade resolves a critical upstream security issue https://jira.mongodb.org/browse/SERVER-115508. MongoDB lets clients use network compression (zlib, snappy, zstd). A flaw in the server's zlib implementation allows an unauthenticated client to send a malformed compressed message that causes MongoDB to read and return uninitialized heap memory. When compressed, MongoDB's wire protocol includes: - a header - a length field - compressed data The vulnerability arises when the length in the compressed data header does not match the length in the protocol header. MongoDB does not correctly validate this mismatch, which may lead to reading beyond the intended buffer and leaking uninitialized memory. Upgrading to v7.0.28 includes the upstream fix and eliminates this risk. Co-authored-by: Muhammad Faraz Maqsood <faraz.maqsood@A006-01130.local>
1 parent b2ebd5c commit 9747869

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [BugFix] Update MongoDB to v7.0.28, resolving a critical upstream security issue https://jira.mongodb.org/browse/SERVER-115508. (by @Faraz32123)

docs/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This configuration parameter defines which Caddy Docker image to use.
7575

7676
This configuration parameter defines which Meilisearch Docker image to use.
7777

78-
- ``DOCKER_IMAGE_MONGODB`` (default: ``"docker.io/mongo:7.0.7"``)
78+
- ``DOCKER_IMAGE_MONGODB`` (default: ``"docker.io/mongo:7.0.28"``)
7979

8080
This configuration parameter defines which MongoDB Docker image to use.
8181

tutor/commands/upgrade/compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def upgrade_from_quince(context: click.Context, config: Config) -> None:
227227
click.echo(fmt.title("Upgrading from Quince"))
228228
upgrade_mongodb(context, config, "5.0.26", "5.0")
229229
upgrade_mongodb(context, config, "6.0.14", "6.0")
230-
upgrade_mongodb(context, config, "7.0.7", "7.0")
230+
upgrade_mongodb(context, config, "7.0.28", "7.0")
231231

232232

233233
def upgrade_mongodb(

tutor/commands/upgrade/k8s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def upgrade_from_quince(config: Config) -> None:
315315
click.echo(fmt.title("Upgrading from Quince"))
316316
upgrade_mongodb(config, "5.0.26", "5.0")
317317
upgrade_mongodb(config, "6.0.14", "6.0")
318-
upgrade_mongodb(config, "7.0.7", "7.0")
318+
upgrade_mongodb(config, "7.0.28", "7.0")
319319

320320

321321
def upgrade_mongodb(

tutor/templates/config/defaults.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ DOCKER_IMAGE_CADDY: "docker.io/caddy:2.7.4"
1919
# https://hub.docker.com/r/getmeili/meilisearch/tags
2020
DOCKER_IMAGE_MEILISEARCH: "docker.io/getmeili/meilisearch:v1.8.4"
2121
# https://hub.docker.com/_/mongo/tags
22-
DOCKER_IMAGE_MONGODB: "docker.io/mongo:7.0.7"
22+
DOCKER_IMAGE_MONGODB: "docker.io/mongo:7.0.28"
2323
# https://hub.docker.com/_/mysql/tags
2424
DOCKER_IMAGE_MYSQL: "docker.io/mysql:8.4.0"
2525
DOCKER_IMAGE_PERMISSIONS: "{{ DOCKER_REGISTRY }}overhangio/openedx-permissions:{{ TUTOR_VERSION }}"

0 commit comments

Comments
 (0)