StackPatch is liveSee product

Back to CVE digest
CVE-2026-42945 · cross-distro fix matrix

CVE-2026-42945: It was discovered that the nginx ngx_http_rewrite_module component

Affects 3 Linux releases across 50 (distro × package) combinations. First disclosed: 2026-05-14.

Fix per ecosystem

Each block below is a distro release where CVE-2026-42945 has a known fix. Run the listed command on that distro to remediate.

Ubuntu jammy

Source: Ubuntu USN

  • nginx→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx
  • libnginx-mod-http-auth-pam→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-auth-pam
  • libnginx-mod-http-cache-purge→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-cache-purge
  • libnginx-mod-http-dav-ext→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-dav-ext
  • libnginx-mod-http-echo→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-echo
  • libnginx-mod-http-fancyindex→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-fancyindex
  • libnginx-mod-http-geoip→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-geoip
  • libnginx-mod-http-geoip2→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-geoip2
  • libnginx-mod-http-headers-more-filter→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-headers-more-filter
  • libnginx-mod-http-image-filter→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-image-filter
  • libnginx-mod-http-ndk→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-ndk
  • libnginx-mod-http-perl→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-perl
  • libnginx-mod-http-subs-filter→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-subs-filter
  • libnginx-mod-http-uploadprogress→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-uploadprogress
  • libnginx-mod-http-upstream-fair→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-upstream-fair
  • libnginx-mod-http-xslt-filter→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-xslt-filter
  • libnginx-mod-mail→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-mail
  • libnginx-mod-nchan→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-nchan
  • libnginx-mod-rtmp→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-rtmp
  • libnginx-mod-stream→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-stream
  • libnginx-mod-stream-geoip→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-stream-geoip
  • libnginx-mod-stream-geoip2→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-stream-geoip2
  • nginx-common→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-common
  • nginx-core→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-core
  • nginx-doc→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-doc
  • nginx-extras→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-extras
  • nginx-full→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-full
  • nginx-light→ fixed in1.18.0-6ubuntu14.11USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-light

Ubuntu noble

Source: Ubuntu USN

  • nginx→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx
  • libnginx-mod-http-geoip→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-geoip
  • libnginx-mod-http-image-filter→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-image-filter
  • libnginx-mod-http-perl→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-perl
  • libnginx-mod-http-xslt-filter→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-xslt-filter
  • libnginx-mod-mail→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-mail
  • libnginx-mod-stream→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-stream
  • libnginx-mod-stream-geoip→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-stream-geoip
  • nginx-common→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-common
  • nginx-core→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-core
  • nginx-dev→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-dev
  • nginx-doc→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-doc
  • nginx-extras→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-extras
  • nginx-full→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-full
  • nginx-light→ fixed in1.24.0-2ubuntu7.8USN-8271-1
    sudo apt-get install --only-upgrade -y nginx-light

Ubuntu questing

Source: Ubuntu USN

  • nginx→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y nginx
  • libnginx-mod-http-geoip→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-geoip
  • libnginx-mod-http-image-filter→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-image-filter
  • libnginx-mod-http-perl→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-perl
  • libnginx-mod-http-xslt-filter→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-http-xslt-filter
  • libnginx-mod-mail→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-mail
  • libnginx-mod-stream→ fixed in1.28.0-6ubuntu1.3USN-8271-1
    sudo apt-get install --only-upgrade -y libnginx-mod-stream
Are YOU affected by CVE-2026-42945?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2026-42945dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)