Skip to content

fix(docker): use appwrite/base 1.4.6 for brotli 1.2.1 - #14912

Merged
ChiragAgg5k merged 1 commit into
1.9.xfrom
fix/1.9.x-base-1.4.6
Oct 24, 2026
Merged

ChiragAgg5k merged 1 commit into
1.9.xfrom
fix/1.9.x-base-1.4.6

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Moves 1.9.x to appwrite/base:1.4.6 (appwrite/docker-base#128), which requires brotli-libs 1.2.1 and so fixes the Brotli decoder out-of-bounds write (CVE-2026-111497).

brotli-libs
appwrite/base:1.4.5 (1.9.9) 1.2.0-r1, vulnerable
appwrite/base:1.4.6 ≥ 1.2.1-r0, required at build time

Where it's reachable: libcurl (CURLOPT_ENCODING = '') and the Swoole coroutine client both decode br responses, and they fetch URLs users control: webhooks, avatar and favicon fetches, and migration sources. Appwrite only ever compresses its own responses, and storage doesn't offer Brotli.

Related: appwrite-labs/cloud#6671

1.4.5 ships brotli-libs 1.2.0-r1, whose decoder has an out-of-bounds write (CVE-2026-111497). libcurl and the Swoole client link it and decode br responses from user-controlled URLs (webhooks, avatars, favicons, migration sources).
@luxor-code-review

luxor-code-review Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 CHANGES.md still cites appwrite/base:1.4.5 (CHANGES.md) — The Dockerfile now pins FROM appwrite/base:1.4.6 (Dockerfile:20), but the 1.9.9 release notes in CHANGES.md still state the release ships appwrite/base:1.4.5, including its docker-base PR reference and PHP version.

This PR updates the Dockerfile to use the appwrite/base:1.4.6 image and pins ca-certificates to a newer Alpine package version, applying the upgrade in both the composer and base build stages for consistent TLS trust state.

Files Change
Dockerfile Base image bump to appwrite/base:1.4.6 plus versioned ca-certificates install in both build stages.

The change is minimal and self-contained; note that CHANGES.md may still reference the previous base image version and could be updated alongside a release.

Reviewed commit: 6272412

@ghost

ghost commented Oct 24, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The base-image update is a focused change, and the referenced image tag is available.

The Docker build now uses appwrite/base:1.4.6 as its runtime base image instead of 1.4.5. This applies the updated base image to the production and development stages derived from base.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
Dockerfile Bumps the base image to appwrite/base:1.4.6.

Reviewed 6272412 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 24, 2026
@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing 1.9.x (before) to fix/1.9.x-base-1.4.6 (after).

Before

Scenario P50 (ms) P95 (ms) Requests RPS
API total 14.28 130.31 185 32.27
Account 30.61 192.82 35 6.78
TablesDB 13.49 21.6 35 7.96
Storage 12.09 120.38 75 16.78
Functions 26.66 33.59 40 8.99

After

Scenario P50 (ms) P95 (ms) Requests RPS
API total 14.02 133.15 185 33.08
Account 29.03 153.94 35 6.93
TablesDB 13.33 19.45 35 8.09
Storage 12.34 121.27 75 16.98
Functions 24.74 34.02 40 9.16

Delta

Scenario P95 delta (ms)
API total +2.84
Account -38.88
TablesDB -2.15
Storage +0.89
Functions +0.44
Top API waits
API request Max wait (ms)
account.sessions.email.create 562.01
account.create 153.81
account.password.update 153.38

@ChiragAgg5k
ChiragAgg5k merged commit b4256c0 into 1.9.x Oct 24, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant