Skip to content

fix: backport base image 2.2.10 and symfony advisories to 2.7.x - #15492

Merged
ChiragAgg5k merged 2 commits into
2.7.xfrom
backport-2-7-image-cves
Nov 11, 2026
Merged

ChiragAgg5k merged 2 commits into
2.7.xfrom
backport-2-7-image-cves

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Backport to 2.7.x so the next patch release ships a clean server image. Both changes are already on main.

Why a backport: releases are tagged from X.Y.x, and 2.7.x (= 2.7.1) still builds on appwrite/base:2.2.7 with symfony/http-client 7.4.19. main has the fixes but is ~1000 commits ahead, so they would otherwise wait for 2.8.0. The 2.7-nightly channel also rebuilds from this branch, and appwrite/base:2.2.7 is an immutable tag, so nightly does not pick the fixes up on its own.

Change From main Fixes
appwrite/base 2.2.7 → 2.2.10 (+ xdebug) #15249, #14956 perl (2 critical), libexpat, curl/libcurl, docker-cli, docker-cli-compose, rsync, golang.org/x/net in git-remote-entire
symfony/http-client 7.4.19 → 7.4.23, symfony/serializer 8.1.8 → 8.1.11 (lock only, cherry-pick of 5ca229f) 5ca229f CVE-2026-121971 and the serializer advisory
SwooleRequestTest expectations for Swoole 6.2.5 (2.2.10 moves 6.2.3 → 6.2.5) #14956 keeps the http package tests green

Trivy (--severity HIGH,CRITICAL --ignore-unfixed): appwrite/appwrite:2.6.2 21, appwrite/base:2.2.9 10 (perl, rsync, docker-cli), appwrite/base:2.2.10 0. These are the 20 open trivy-image-appwrite alerts on appwrite/helm-chart.

Related: appwrite-labs/cloud#6671

abnegate and others added 2 commits November 11, 2026 13:48
composer audit fails on advisories published 2026-11-04 for
symfony/http-client < 7.4.23 and symfony/serializer < 8.1.11.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5ca229f)
Backport of #15249 and #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.
@luxor-code-review

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

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR updates the runtime base image to 2.2.10 (which ships Swoole 6.2.5) and rewrites the two spoofed-upload tests in packages/http/tests/SwooleRequestTest.php so they assert the client-supplied server path never appears in tmp_name or tmpfiles, instead of the pre-6.2.5 neutralized shape (tmp_name === '', UPLOAD_ERR_CANT_WRITE). A assertFileExists teardown check is added to the nested-field variant, confirming the genuine sibling upload survives request teardown. The request-neutralization guard itself is unchanged. Note: the single-shot sweep pass failed to publish, so full-diff coverage rests on the lens, domain, and holistic scans; the one candidate finding (vacuous negated assertions under Swoole >= 6.2.5) was adjudicated at low severity, confidence 78, just under the reporting threshold.

Files Change
Dockerfile Bumps appwrite/base to 2.2.10 in every build stage, including the xdebug variant, with no change to EXPOSE, CMD, or privilege semantics.
packages/http/tests/SwooleRequestTest.php Replaces positive spoofed-upload assertions with negated ones tolerant of both pre- and post-6.2.5 Swoole behavior, and adds an assertFileExists check in the nested-field test.

Reviewed commit: aadac64

@appwrite

appwrite Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The Docker build now uses appwrite/base 2.2.10, including its matching xdebug image. The lockfile updates Symfony HTTP client and serializer dependencies, and the Swoole upload tests reflect the parser behavior in Swoole 6.2.5.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 3
File Change
Dockerfile Bumps the production and xdebug base images to appwrite/base 2.2.10.
packages/http/tests/SwooleRequestTest.php Adjusts spoofed-upload expectations for the Swoole 6.2.5 fix while checking that the server target survives.
composer.lock Updates Symfony HTTP client, serializer, and related contracts packages.

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

@github-actions

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.

@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

@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing 2.7.x (before) → backport-2-7-image-cves (after).

Metric Before After Change
🚀 Requests/sec 196.52 196.35 ⚪ -0.1%
⏱️ Latency P50 86.73 ms 88.78 ms ⚪ +2.4%
⏱️ Latency P95 210.95 ms 201.56 ms ⚪ -4.4%
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 88.78 201.56 12,540 196.35 -9.39
Account 169.41 296.56 660 11.01 +4.59
TablesDB 85.52 158.27 6,820 109.08 -0.08
Storage 82.34 188.07 3,300 54.45 -0.6
Functions 125.88 232.8 1,760 29.83 -44.07

Top API waits (after)

API request Max wait (ms)
tablesdb.rows.create 479.66
storage.buckets.create 456.96
storage.files.create 445.7
functions.variables.create 433.55
tablesdb.rows.delete 392.54

@ChiragAgg5k
ChiragAgg5k merged commit c12cd8c into 2.7.x Nov 11, 2026
70 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the backport-2-7-image-cves branch November 11, 2026 14:13
@ChiragAgg5k ChiragAgg5k self-assigned this Nov 12, 2026
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.

2 participants