Update NGINX Security Patches on AlmaLinux 9 (NGINX2Root)
Update NGINX Security Patches on AlmaLinux 9 (NGINX2Root)
To protect AlmaLinux 9 servers against the recently reported NGINX2Root vulnerabilities, update NGINX to the latest security-patched version available from the official AlmaLinux repositories.
Important: AlmaLinux provides backported security fixes, meaning NGINX can remain on version 1.20.1 while receiving the latest security patches. Upgrading to NGINX 1.31.9 is not required when the installed AlmaLinux package contains the relevant fixes.
1. Check Current NGINX Version
nginx -v
rpm -q nginx2. Refresh Repository Metadata
sudo dnf clean metadata3. Update NGINX Packages
sudo dnf upgrade 'nginx*' -y4. Validate NGINX Configuration
sudo nginx -t5. Restart NGINX
sudo systemctl restart nginx6. Verify Installed Version and Service Status
rpm -q nginx
sudo systemctl status nginx7. Check Security Advisories
sudo dnf updateinfo list --security
sudo dnf updateinfo info --installedVerification: Confirm that the installed NGINX package includes the NGINX2Root security fixes by reviewing the applicable AlmaLinux security advisories.
Recommendation: Perform updates during a maintenance window, back up NGINX configuration files, and verify website functionality after restarting the service.