Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx NGINX2Root: New Remote Code Execution Vulnerabilities in nginx Require Urgent Patching

Discussion in 'Nginx and PHP-FPM news & discussions' started by pamamolf, Nov 19, 2026 at 3:27 AM.

  1. pamamolf

    pamamolf Well-Known Member

    4,130
    429
    83
    May 31, 2014
    Ratings:
    +842
    Local Time:
    4:44 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    nginx2root is a collection of 5 critical CVEs, the most impactful of which allows an unauthenticated attacker to execute commands on an affected nginx server with HTTP/2 enabled.

    Nginx is one of the most widely deployed web servers in the world. Finding an unauthenticated remote code execution bug in it has long been a holy grail for security researchers. The Xint research team recently found five. Each one leads to remote code execution on its own, but they affect different configurations.

    Xint also found a separate vulnerability in the Linux kernel which can be chained with any of the nginx vulnerabilities to gain root privileges on the host. Together, we call these six vulnerabilities nginx2root.

    If you run nginx, update to 1.31.9

    The most impactful of the five findings, CVE-2026-123007, allows an unauthenticated attacker to execute commands on an affected nginx server with HTTP/2 enabled. The commands run with the privileges of the nginx worker process that handles the request.


    We chained this vulnerability with a separate flaw in the Linux kernel's SCTP subsystem to gain root privileges on the host. In our tests, the chain also escaped a Docker container running nginx and obtained root on the underlying host.

    In the video below, we use CVE-2026-123007 to execute commands as the nginx worker inside a container, then use the kernel vulnerability to escalate to root on the host.

    Affected versions
    Each one of the five nginx vulnerabilities are independent attack paths and do not need to be chained together. They differ in what configuration is affected.

    [​IMG]

    For CVE-2026-123634, the table shows the setup we tested, which uses the mirror directive. Other nginx features that create subrequests, such as SSI, may reach the same bug, so turning off mirror alone does not make a server safe.

    CVE-2026-123007 has been present since nginx introduced HTTP/2 in 2015, more than a decade ago. Every official release from 1.9.5 through 1.31.8 contains the vulnerable code, including the master branch on Nov 10, 2026. Even servers running recent releases therefore need the same checks for patch status and HTTP/2 exposure as older installations.

    What to do
    Update to 1.31.9

    Source:
    NGINX2Root: New Remote Code Execution Vulnerabilities in nginx Require Urgent Patching - Xint Blog | Insights from Offensive Security Researchers
     
  2. Jon Snow

    Jon Snow Premium Member Premium Member

    938
    192
    43
    Jun 30, 2017
    Ratings:
    +301
    Local Time:
    10:44 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    I was just coming here to post this.
     
  3. eva2000

    eva2000 Administrator Staff Member

    60,551
    12,627
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,292
    Local Time:
    12:44 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yup cmupdate + centmin.sh menu option 4 to 1.31.9 update ASAP

    writing up announcement and email for this right now
     
  4. eva2000

    eva2000 Administrator Staff Member

    60,551
    12,627
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,292
    Local Time:
    12:44 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  5. redbot

    redbot Dreaming of Debmin Mod Premium Member

    57
    14
    8
    Mar 30, 2020
    Ratings:
    +32
    Local Time:
    8:44 AM
    I know this year has been more work but I really appreciate what you're doing eva2k!