[GH-ISSUE #3366] [Self-hosted] Refresh container runtimes and support security upgrades without regenerating profiles #3227

Open
opened 2026-11-07 17:57:57 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Kwentin3 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3366

Related: #3233 (outdated OpenVPN image). This report covers other self-hosted components and the upgrade workflow.

An audit of an existing Linux/amd64 self-hosted deployment on 2026-11-01 found outdated container userspace and embedded runtimes. Updating the VPS packages alone does not update them. Please refresh the server images and provide a supported security-upgrade path that preserves existing server/client identities and profiles.

Observed versions

These are runtime observations from that deployment, cross-checked against AmneziaVPN 5.0.3.0, commit de93650a90739b87bb47a632872ea9d0adc9412f, and the referenced parent-image sources. They are not a claim that every fresh installation using mutable latest tags has identical contents.

Component Observed before remediation Maintenance gap
Xray Alpine 3.15.11; Xray 26.7.28 / Go 1.26.5; OpenSSL 1.1.1w The 5.0.3 installer Dockerfile pins Alpine 3.15 and Xray 26.7.28. An APK upgrade within the old branch does not migrate the base or replace the pinned Xray release.
AmneziaWG Alpine 3.19.9; tools v3.1.20260812; static daemon built with Go 1.25.12 The parent Dockerfile still builds with Go 1.25.12. Refreshing only the runtime base leaves the old Go/C runtime inside the static executable.
AmneziaDNS Unbound 1.22.0, built with OpenSSL 3.3.2 The installer inherits mvance/unbound:latest. Updating Debian's libssl package does not replace Unbound's private embedded OpenSSL. Later Unbound security advisories include fixes absent from 1.22.0.
MTProxy Debian 12; libssl3 3.0.19-1~deb12u2, libc6 2.36-9+deb12u13 Newer vendor security packages were available. The native parent copies the daemon separately, so runtime packages can be refreshed without rebuilding the proxy.
SOCKS5 Minimal image with Debian glibc 2.36-9+deb12u9, without a full package database Checking only the BusyBox/3proxy versions misses the bundled loader/libc. Please include these files in the image's dependency inventory and update process.

For AWG, this was verified beyond version strings: the official amd64 parent manifest sha256:c68009d33df3aef4654db72bf1a7880cfa0a631fe866c50d9ae3dd34ddd7c13a contained daemon SHA-256 6177066f0e35b1cb44945136d9a10841dd3ce30fdf16009c9a815cd943a982fe, matching the deployed binary. Its registry-attached build provenance points to source commit b5928efb6ca19f0153958460c3d141f04abc5c2e. This is a provenance/byte match, not a claim of independent signature verification.

Requested behavior

  1. Publish refreshed server images on supported bases, rebuilding static Go components with a supported, patched toolchain as well as updating OS libraries.
  2. Provide a documented upgrade-existing-server operation that preserves keys, peer/client profiles, ports, DNS settings and persistent data. Keep security upgrades distinct from removing/reprovisioning a protocol, and make replacement of administrator-managed components explicit.
  3. Expose installed component/toolchain versions and image identities, and periodically rebuild/check images against vendor advisories. Include embedded libraries and scratch-image dependencies, not only the package-manager inventory.
  4. Validate actual protocol readiness after upgrading, with rollback, and document host-kernel updates separately from container updates.

Local validation of the approach

Manual remediation retained the existing keys/profiles and protocol settings: Xray and AWG were moved to Alpine 3.24.3; the same AWG source and unchanged Go modules were rebuilt with Go 1.27.3; MTProxy received 29 native Debian package updates; the SOCKS image received the complete matching Debian libc6 payload 2.36-9+deb12u14 while preserving the proxy binary/configuration. DNS was separately updated to Unbound 1.26.2 / OpenSSL 3.5.9 with its existing resolver policy preserved.

Validation passed for ordinary AmneziaWG reconnect/websites/larger download, public VLESS/Reality and SOCKS HTTPS with remote DNS and verified TLS, and UDP/TCP DNSSEC positive/negative queries. An MTProxy reqPQ/resPQ exchange also passed; a logged-in Telegram session was not tested.

These results are compatibility evidence from one deployment, not a proposal to adopt every local workaround or proof that every version-level CVE match is remotely exploitable. No exploitation or compromise is claimed. The practical request is an upstream-maintained update path so users do not have to maintain these replacements themselves.

Originally created by @Kwentin3 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3366 Related: #3233 (outdated OpenVPN image). This report covers other self-hosted components and the upgrade workflow. An audit of an existing Linux/amd64 self-hosted deployment on 2026-11-01 found outdated container userspace and embedded runtimes. Updating the VPS packages alone does not update them. Please refresh the server images and provide a supported security-upgrade path that preserves existing server/client identities and profiles. ### Observed versions These are runtime observations from that deployment, cross-checked against AmneziaVPN **5.0.3.0, commit `de93650a90739b87bb47a632872ea9d0adc9412f`**, and the referenced parent-image sources. They are not a claim that every fresh installation using mutable `latest` tags has identical contents. | Component | Observed before remediation | Maintenance gap | | --- | --- | --- | | Xray | Alpine 3.15.11; Xray 26.7.28 / Go 1.26.5; OpenSSL 1.1.1w | The [5.0.3 installer Dockerfile](https://github.com/amnezia-vpn/amnezia-client/blob/de93650a90739b87bb47a632872ea9d0adc9412f/client/server_scripts/xray/Dockerfile) pins Alpine 3.15 and Xray 26.7.28. An APK upgrade within the old branch does not migrate the base or replace the pinned Xray release. | | AmneziaWG | Alpine 3.19.9; tools `v3.1.20260812`; static daemon built with Go 1.25.12 | The [parent Dockerfile](https://github.com/amnezia-vpn/amneziawg-go/blob/b5928efb6ca19f0153958460c3d141f04abc5c2e/Dockerfile) still builds with Go 1.25.12. Refreshing only the runtime base leaves the old Go/C runtime inside the static executable. | | AmneziaDNS | Unbound 1.22.0, built with OpenSSL 3.3.2 | The [installer inherits `mvance/unbound:latest`](https://github.com/amnezia-vpn/amnezia-client/blob/de93650a90739b87bb47a632872ea9d0adc9412f/client/server_scripts/dns/Dockerfile). Updating Debian's libssl package does not replace Unbound's private embedded OpenSSL. Later [Unbound security advisories](https://nlnetlabs.nl/projects/unbound/security-advisories/) include fixes absent from 1.22.0. | | MTProxy | Debian 12; libssl3 `3.0.19-1~deb12u2`, libc6 `2.36-9+deb12u13` | Newer vendor security packages were available. The [native parent](https://github.com/amnezia-vpn/MTProxy/blob/512bc66f07787afc664b35bb88abb1118574a475/Dockerfile) copies the daemon separately, so runtime packages can be refreshed without rebuilding the proxy. | | SOCKS5 | Minimal image with Debian glibc `2.36-9+deb12u9`, without a full package database | Checking only the BusyBox/3proxy versions misses the bundled loader/libc. Please include these files in the image's dependency inventory and update process. | For AWG, this was verified beyond version strings: the official amd64 parent manifest `sha256:c68009d33df3aef4654db72bf1a7880cfa0a631fe866c50d9ae3dd34ddd7c13a` contained daemon SHA-256 `6177066f0e35b1cb44945136d9a10841dd3ce30fdf16009c9a815cd943a982fe`, matching the deployed binary. Its registry-attached build provenance points to source commit `b5928efb6ca19f0153958460c3d141f04abc5c2e`. This is a provenance/byte match, not a claim of independent signature verification. ### Requested behavior 1. Publish refreshed server images on supported bases, rebuilding static Go components with a supported, patched toolchain as well as updating OS libraries. 2. Provide a documented **upgrade-existing-server** operation that preserves keys, peer/client profiles, ports, DNS settings and persistent data. Keep security upgrades distinct from removing/reprovisioning a protocol, and make replacement of administrator-managed components explicit. 3. Expose installed component/toolchain versions and image identities, and periodically rebuild/check images against vendor advisories. Include embedded libraries and scratch-image dependencies, not only the package-manager inventory. 4. Validate actual protocol readiness after upgrading, with rollback, and document host-kernel updates separately from container updates. ### Local validation of the approach Manual remediation retained the existing keys/profiles and protocol settings: Xray and AWG were moved to Alpine 3.24.3; the same AWG source and unchanged Go modules were rebuilt with Go 1.27.3; MTProxy received 29 native Debian package updates; the SOCKS image received the complete matching Debian libc6 payload `2.36-9+deb12u14` while preserving the proxy binary/configuration. DNS was separately updated to Unbound 1.26.2 / OpenSSL 3.5.9 with its existing resolver policy preserved. Validation passed for ordinary AmneziaWG reconnect/websites/larger download, public VLESS/Reality and SOCKS HTTPS with remote DNS and verified TLS, and UDP/TCP DNSSEC positive/negative queries. An MTProxy `reqPQ`/`resPQ` exchange also passed; a logged-in Telegram session was not tested. These results are compatibility evidence from one deployment, not a proposal to adopt every local workaround or proof that every version-level CVE match is remotely exploitable. No exploitation or compromise is claimed. The practical request is an upstream-maintained update path so users do not have to maintain these replacements themselves.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3227
No description provided.