Skip to content

fix: bump base image to 2.2.9 for curl, docker-cli and libexpat CVEs - #15249

Merged
ChiragAgg5k merged 2 commits into
mainfrom
fix/base-2.2.8
Nov 3, 2026
Merged

ChiragAgg5k merged 2 commits into
mainfrom
fix/base-2.2.8

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Bumps appwrite/base from 2.2.7 to 2.2.9 (and the matching -xdebug tag) to clear HIGH CVEs in the runtime image.

trivy image --severity HIGH,CRITICAL:

Package 2.2.7 2.2.9 CVE
curl, libcurl 8.22.0-r0 8.23.0 CVE-2026-92392
docker-cli 29.8.2-r1 29.9.2 CVE-2026-78669, CVE-2026-111943
docker-cli-compose 5.1.4-r2 5.6.1 CVE-2026-111943
libexpat 2.9.0-r0 2.10.0 CVE-2026-117610, CVE-2026-118370

2.2.9 reports no HIGH or CRITICAL findings.

2.2.8 is skipped on purpose. It moved Swoole to 6.2.4, which unlinks the path named by a client-supplied Swoole-Upload-File multipart part header even after packages/http clears $request->tmpfiles; SwooleRequestTest::testSpoofedUploadIsNeutralized failed on this PR's first commit because of it. 2.2.9 (appwrite/docker-base#135) holds Swoole at 6.2.3, adds an image test for this case, and stops the dependency automation from selecting 6.2.4. On the published 2.2.9 image, Swoole reports 6.2.3 and a standalone repro keeps the target file.

Related: appwrite-labs/cloud#6671

@luxor-code-review

luxor-code-review Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR is a routine base-image version bump. It updates appwrite/base from 2.2.7 to 2.2.8 in three places: the FROM appwrite/base:2.2.8 AS base production stage, the FROM appwrite/base:2.2.8-xdebug AS xdebug stage, and the accompanying comment explaining that the base tag ships without XDebug while the -xdebug sibling guarantees an ABI match.

Files Change
Dockerfile Bumps appwrite/base from 2.2.7 to 2.2.8 in the base and xdebug build stages, and updates the comment referencing the old version.

Reviewed commit: f11f938

@appwrite

appwrite Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The image-tag updates are consistent across the production and XDebug stages, with no issues found.

Updates the Docker build to use appwrite/base:2.2.9 for the base stage and appwrite/base:2.2.9-xdebug for the development XDebug stage. Updates the adjacent comment to match the new base version.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
Dockerfile Bumps the regular and XDebug base-image tags to 2.2.9 and updates the version-specific comment.

Reviewed cfd3a1c · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot 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

luxor-code-review[bot]
luxor-code-review Bot previously approved these changes Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

6 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (3)
  • php.appwrite.secret-compare-timing (1)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → fix/base-2.2.8 (after).

Metric Before After Change
🚀 Requests/sec 196.28 198.11 ⚪ +0.9%
⏱️ Latency P50 89.46 ms 87.76 ms ⚪ -1.9%
⏱️ Latency P95 203.55 ms 204.91 ms ⚪ +0.7%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 87.76 204.91 12,540 198.11 +1.36
Account 161.17 324.87 660 11.12 +13.9
TablesDB 84.94 159.79 6,820 110.99 -3.45
Storage 80.72 183.68 3,300 55.34 -1.6
Functions 123.53 243.5 1,760 30.18 +8.76

Top API waits (after)

API request Max wait (ms)
account.name.update 574.59
tablesdb.rows.create 442.14
account.prefs.update 396.98
functions.variables.update 366.09
functions.variables.create 359.31

@ChiragAgg5k
ChiragAgg5k marked this pull request as draft November 3, 2026 12:35
appwrite/base:2.2.7 ships curl/libcurl 8.22.0 (CVE-2026-92392) and docker-cli 29.8.2 / docker-cli-compose 5.1.4 (CVE-2026-78669, CVE-2026-111943), all HIGH. 2.2.8 carries the fixed packages; a trivy scan of it reports none of them.
2.2.8 ships Swoole 6.2.4, which deletes the path named by a client-supplied Swoole-Upload-File multipart header even after tmpfiles is cleared (caught by SwooleRequestTest::testSpoofedUploadIsNeutralized). 2.2.9 holds Swoole at 6.2.3 and carries the same patched curl, docker-cli and libexpat.
@ChiragAgg5k ChiragAgg5k changed the title fix: bump base image to 2.2.8 for curl and docker-cli CVEs fix: bump base image to 2.2.9 for curl, docker-cli and libexpat CVEs Nov 3, 2026
@ChiragAgg5k
ChiragAgg5k marked this pull request as ready for review November 3, 2026 13:35
@ChiragAgg5k

Copy link
Copy Markdown
Member Author

Moved to appwrite/base 2.2.9, which holds Swoole at 6.2.3 (appwrite/docker-base#135). Verified on the published image: Swoole 6.2.3, the spoofed-upload repro keeps the target file, and trivy reports no HIGH or CRITICAL findings.

@luxor-code-review

luxor-code-review Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This change updates the Dockerfile only: the FROM appwrite/base:2.2.7 / 2.2.7-xdebug tags are bumped to 2.2.9 and the accompanying comment is updated to match. No application code, extension configuration, or build steps are touched.

Files Change
Dockerfile Base image tags bumped 2.2.7 → 2.2.9 for both runtime and xdebug variants, with comment updated.

Reviewed commit: cfd3a1c

@luxor-code-review
luxor-code-review Bot dismissed their stale review November 3, 2026 13:37

Superseded by a newer Tenki approval on this pull request.

@ChiragAgg5k
ChiragAgg5k merged commit 3318452 into main Nov 3, 2026
69 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/base-2.2.8 branch November 3, 2026 14:21
@ChiragAgg5k ChiragAgg5k self-assigned this Nov 4, 2026
huangyingting pushed a commit to repomesh/appwrite that referenced this pull request Nov 12, 2026
Backport of appwrite#15249 and appwrite#14956. 2.7.1 ships appwrite/base 2.2.7, which Trivy flags for perl, libexpat, curl, docker-cli, docker-cli-compose, rsync and golang.org/x/net (20 HIGH/CRITICAL). 2.2.9 still carries the perl, rsync and docker-cli findings; 2.2.10 scans clean.
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