Security Release
This release fixes three security problems. Everyone running Erugo 0.2.15 or earlier should upgrade.
Security fixes
- PHP2Shell (CVE-2026-109618 and CVE-2026-109619). The image ran PHP 8.3.14 on Alpine 3.19, which is end of life and no longer gets PHP updates. It now uses Alpine 3.24 with PHP 8.3.37, which fixes these unauthenticated remote code execution bugs in PHP-FPM. The build now fails if PHP is older than 8.3.36, and
session.upload_progress.enabledis turned off, as PHP's advisory recommends. - SMTP settings readable by any logged-in user. The settings API let any logged-in user read admin settings, including the SMTP username and password. Reverse-share guests get a login token too, so anyone with a reverse-share invite link could read them. Settings now have an explicit list of what's public, and everything else is admin-only.
- Disabled and unverified accounts could still log in. Login didn't check whether an account was active, so a user an admin had disabled could still sign in, and so could a self-registered user who hadn't verified their email. Login, token refresh and SSO sign-in now refuse inactive accounts. A wrong password now returns 401 instead of a server error.
Other changes
- Caddy moves from 2.7 to 2.11.9 with the new Alpine base. The Caddyfile is unchanged.
Upgrading
Pull the new image and restart:
docker compose pull
docker compose up -dThe image is wardy784/erugo:0.2.16, also tagged latest, for amd64 and arm64.
If your instance has users you don't fully trust, or you've sent reverse-share invites, change your SMTP password after upgrading, since it could have been read before this release.
Credits
Thanks to @anyingiit (#294) and @jasonpsimon (#297) for the Alpine and PHP changes, and to @RZA-SF for reporting the settings and login problems (#273, #274).
Full changes: #307