Security advisories

Check which installations are affected and what to do on each server.

1.4.7: the security fixes, with an upgrade that works

1.4.4, 1.4.5 and 1.4.6 are not recommended. They contain real security fixes, and every one of them stays in 1.4.7. But they also broke upgrades. On Windows Server, the service-file protection could leave the files under bin and runtime with empty access-control lists, so an administrator could no longer read EasyDevOps.exe and the service would not start. On Linux the service could stop with a database error and never start again, and the rollback did not bring it back. 1.4.7 repairs those failures without undoing one security change: a security fix that breaks install, update, repair or an administrator's access is a failed fix, so availability and security are both requirements now.

For an npm installation, update with npm install -g easy-devops@1.4.7 (on Windows Server, from an Administrator PowerShell). A source installation updates the checkout that runs the service to the 1.4.7 release. Confirm ezz --version reports 1.4.7.

If you updated to 1.4.4, 1.4.5 or 1.4.6

  1. Install 1.4.7 as above, then recover the service. Windows Server, in an Administrator PowerShell: ezz service recover and ezz service status. ezz service status must show the same version on Service version and CLI version, and C:\ProgramData\easy-devops\logs\EasyDevOps.out.log must start with Easy DevOps daemon v1.4.7.
  2. Linux: ezz service recover, which asks for sudo unless you are root, then ezz service status. systemctl status easy-devops must report active, and journalctl -u easy-devops -n 50 must not repeat Failed to initialize database.
  3. If ezz itself cannot run, use the manual recovery — the Windows icacls reset and the SYSTEM fallback, or the Linux read-only database check with the safe fix for each result. It is in Troubleshooting: the service stopped after updating to 1.4.4–1.4.6, and in the 1.4.7 changelog.

Nothing else is needed: do not reinstall, do not delete the database, and do not re-run the update to "make sure". If the CLI was updated with npm but the service still reports the older version, that is version drift — run ezz service repair as administrator and see the service runs an older version than the CLI. A daemon that crashes with EPERM while renaming jobs.owner is fixed in 1.4.7 as well.

The 1.4.5 and 1.4.6 security update

1.4.4 and earlier are affected by the remaining issues fixed in 1.4.5. The security audit covered 1.4.3. Version 1.4.4 fixed the deployment, Windows permission, private-key and runtime findings in its advisory. Version 1.4.5 completes the audit and also fixes Windows Server repair and status failures when the existing wrapper cannot be opened. Version 1.4.6 finished the uninstall work described below. All of these fixes are in 1.4.7, which replaces their upgrade instructions with the recovery steps above.

What the security update requires

Use the dashboard directly on the server or through a local HTTPS reverse proxy or secure tunnel. The dashboard no longer listens on a network interface; remote access goes through a local HTTPS proxy or an SSH tunnel. Pair remote Hubs over https. Hub permissions are stricter: certificate paths and raw Advanced nginx content need nginx.config.view, deployment diagnostics need deploy.logs, and raw Advanced nginx edits need nginx.config.edit.

For a custom Windows nginx or SSL directory, an administrator must also set the matching machine environment variable, EASY_DEVOPS_APPROVED_NGINX_DIR or EASY_DEVOPS_APPROVED_SSL_DIR, to its existing absolute directory before a repair.

On Linux, custom certificate or nginx configuration paths must be inside the supported Easy DevOps roots. If this server used paths outside those roots, move the files and update the dashboard settings before the next certificate operation or update. The nginx -t check and managed-certificate inventory report any path that is still unsupported.

What changed

  • Deployment-generated PM2 configuration, launchers and release metadata now live in an engine-owned directory outside the app checkout. They use exclusive temporary files and atomic replacement, so links in a repository cannot redirect those writes.
  • Windows ACL grant and revoke operations call the permissions tool with a direct argument list. Only approved, canonical, existing directories are accepted, and links, reparse points, system trees, and container roots are refused. Recursive ACL repair also refuses hard-linked files before a protected tree is reset.
  • Windows Server data migration refuses linked, reparse-pointed, and non-directory source or destination paths, and hard-linked destination files, before copying. A hard-linked source file is only read. The Server mode marker uses exclusive creation and atomic replacement. Windows reinstall removes the registered service through the service manager before replacing the wrapper, waits for the service record to disappear, and stops on an unknown service state.
  • Windows Server uninstall now displays each operation and fails a stage that runs longer than five minutes. Removal uses one preflighted recursive permission operation instead of one process per object. Keeping data performs no copy or move. Moving data copies and verifies user files only, excludes runtime and wrapper folders, and keeps a backup. A copy, verification, activation, or deadline failure restores the live source before the database is reopened. If Windows blocks a rollback, the error names both paths so the data remains recoverable.
  • Windows nginx commands treat paths from settings as literal PowerShell values, so path characters cannot be evaluated as another command.
  • Linux nginx error-log views use a bounded reader with direct arguments, and backend URLs with embedded usernames or passwords are refused before configuration is written.
  • Raw Advanced nginx content requires nginx.config.edit. Typed values that become nginx configuration reject line breaks, ;, {, and } before a file is written.
  • Changing an app's repository origin clears its stored token, so a token for the previous repository cannot be sent to the new one.
  • Site and ACME account private keys use private directories and 0600 files. Renewal replaces keys atomically, and renewal and service repair correct existing permissions.
  • Authenticated Git fetches keep tokens and their encoded forms in child-only environment configuration, away from process arguments and deployment logs.
  • The daemon resolves modules only inside its pinned runtime. Optional WebSocket accelerators use admin-owned throwing stubs, and service environments disable those accelerators explicitly. Install and repair replace the Windows runtime and wrapper folders instead of merging into old content, and every optional-package stub is recreated even when a previous package or link has the same name. Update and runtime update reapply the protections.
  • Linux systemd installation stages the unit in a fresh private directory with an exclusively created file and cleans it up after success or failure.
  • The updater validates the complete version before stopping anything and passes that validated value as a separate argument.
  • Deployment output is redacted before it is stored or sent. Log reads and retirement refuse links and changed parent directories. Logs and diagnostic fields written by versions before 1.4.5 are retired before Hub progress or purge backups can read them.
  • The Windows Node installer uses a private per-attempt directory and verifies the expected SHA-256 before launch. Linux installer helpers are bundled and hash-pinned. Automatic nvm-windows installation remains disabled unless a reviewed executable digest is configured, and a missing nvm installation fails closed.
  • Linux permission setup accepts only the dedicated Easy DevOps SSL and nginx configuration roots after checking links, ownership and writable ancestors.
  • Certificate issuance, deletion and purge share one lifecycle lock, which recovers safely when an owner process ID has been reused. Removal deletes only files recorded in the managed-artifact manifest, without recursive directory removal. Unrelated files, linked paths and unsafe roots are preserved.
  • Deleting a domain can retain a shared, unmanaged, or otherwise unsafe certificate while still deleting the domain. Reference checks follow renamed hard links and linked nginx configuration directories with cycle protection. The result explains why the certificate was retained and lists remaining configuration references by filename and line. If purge cannot finish certificate cleanup, it preserves the data directory and managed-artifact manifest.
  • An SSL directory that overlaps the data directory, including through a linked canonical path, is refused.
  • The dashboard, including passwordless mode, is reachable only on loopback. Remote sessions require a local HTTPS proxy or tunnel and use secure cookies. New remote Hub links require HTTPS.
  • Nginx log tails and deployment output use fixed byte and line limits, so large files and noisy builds cannot exhaust the daemon.
  • Failed setup-code guesses are counted atomically under concurrent requests. A stale empty or incomplete lock left by an interrupted process is recovered instead of blocking setup.
  • Hub pairing responses are read through a streaming 16 KiB limit and fail safely on invalid framing or stalled bodies.
  • Routine Hub telemetry uses explicit safe projections. Certificate paths and raw nginx settings require nginx.config.view, and deployment diagnostics require deploy.logs. A credential-bearing backend host saved by an older version is omitted before transmission.
  • Revoking Hub configuration access clears retained SSL path data. Revoking deployment-log access immediately removes diagnostics from the last deployment payload before process state is refreshed. Telemetry and commands already loading recheck the current grants before results or side-channel events are sent. Slow mutations recheck immediately before changing PM2, domains, certificates, deployments, hooks, or nginx, and queued progress is discarded when the permission revision changes. Permission refreshes run serially, so an older response cannot overwrite a newer revocation, and malformed permission maps are refused.
  • Windows service and access-control operations pass values as separate executable arguments. Elevated commands rebuild their environment from Windows and machine values, so inherited paths and Node loader settings cannot choose the tools, service locations, or modules used after elevation. Approved dedicated Easy DevOps directories beneath ProgramData remain supported, while system trees and container roots are refused. The data root is normalized to Administrators ownership before service and installing-account access is applied.
  • Dashboard updates reserve one run before checking the registry and use an atomic per-run worker claim. Persisted status, version, process ID and port fields are bounded and validated, a status file that grows after it is opened is rejected, and concurrent requests cannot launch overlapping updates.
  • Windows Server repair stops the service before checking its wrapper, reports an unreadable wrapper without replacing it, restores the service, and no longer ends with EPERM. Access-denied service files appear as unknown rather than as an absent installation. Service status reports each probe failure as a warning, and deletion waits until Windows has released the service registration.
  • 1.4.7 adds no new restriction to the list above. It repairs delivery: Windows code-tree protection keeps every file readable by SYSTEM and Administrators and verifies it after writing, the Linux unit is generated from a template with Environment= in [Service], the newly installed version runs its own setup before its service starts, and a rollback restores the package, the unit or XML and the runtime together, verified by the daemon heartbeat.