Brotli security update

Note

These steps apply only to Opsview 6.10.1 to 6.12.6. An upcoming Opsview upgrade will install the fixed Brotli library automatically. You do not need to follow the steps on this page after that upgrade.

On Opsview Cloud, ITRS manages and updates the Orchestrator, so no action is required on it. However, you must still carry out the mitigation steps below on each of your Collectors.

ITRS has reviewed a recently disclosed vulnerability in Brotli, CVE-2026-111497, also known as node2shell, http2shell, or broccoli2shell. The vulnerability is an out-of-bounds write in the Brotli decoder, the part of the library that reads compressed data. This means the library can write data outside the memory area reserved for it. Specially crafted Brotli-compressed data can corrupt memory, expose memory contents, cause a denial of service, or potentially let a malicious party run code on the host. Brotli versions 1.0.3 to 1.2.0 are affected. Brotli version 1.2.1 fixes the issue. For more information, see the CVE record.

How Opsview is affected Copied

Opsview includes Brotli 1.1.0 in its Python environment, which is installed in /opt/opsview/python3 by the opsview-python3-modules package. Python libraries that Opsview uses to make web requests, such as urllib3, requests, and aiohttp, use Brotli automatically when it is installed. This creates two ways that a malicious party could send data to the vulnerable library:

The following components are not affected or have a separate fix:

Temporary mitigation Copied

Warning

This procedure restarts Opsview. Carry out these steps only during a planned maintenance window.

Until an Opsview release includes the fixed library, install Brotli 1.2.1 into the Opsview Python environment to mitigate the vulnerability. The install command checks the package against the SHA-256 hash in the requirements file, so it installs only the expected Brotli package for Python 3.9 on x86_64 (64-bit Intel and AMD) systems. Do not remove the hash from the requirements file.

Carry out these steps on every Collector. For Opsview On-Premises, also carry out these steps on the Orchestrator.

Before you start, note the following:

Install Brotli 1.2.1 Copied

Use this procedure when the Opsview host can connect to PyPI.

  1. Make sure a backup is available before you change the system.

  2. Save the following requirements file as /tmp/brotli-1.2.1.txt:

    Brotli==1.2.1 \
        --hash=sha256:ddc832886517c5009863209a4a292c4353967cd304ba55822d533e0d59eb6a60
    
  3. Install the Brotli package with umask 0022 set. This makes the installed files readable by all users:

    sudo sh -c 'umask 0022; /opt/opsview/python3/bin/pip3 install --upgrade --no-deps --only-binary=:all: --require-hashes -r /tmp/brotli-1.2.1.txt'
    
  4. List the upgraded files. Ensure that the Brotli files are readable by all users, or at least by the opsview user:

    sudo find /opt/opsview/python3/ -iname "*brotli*" -ls
    # example output:
    # 42055340      4 -rw-r--r--   1 root     root         1970 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/brotli.py
    # 42055352      0 drwxr-xr-x   3 root     root          120 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/brotli-1.2.1.dist-info
    # 360875071     4 -rw-r--r--   1 root     root         1644 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/__pycache__/brotli.cpython-39.pyc
    # 41974449   5052 -rwxr-xr-x   1 root     root      5169536 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/_brotli.cpython-39-x86_64-linux-gnu.so
    

Confirm the installation Copied

  1. Confirm that Brotli 1.2.1 is installed. The following command must print 1.2.1:

    sudo -u opsview /opt/opsview/python3/bin/python3 -c "import brotli; print(brotli.__version__)"
    

    If you see this error: PermissionError: [Errno 13] Permission denied: '/opt/opsview/python3/lib/python3.9/site-packages/brotli.py' update the permissions of the Brotli files so that the opsview user can read them.

  2. Restart Opsview so that its processes load the new library:

    sudo /opt/opsview/watchdog/bin/opsview-monit restart all
    
  3. Confirm that Opsview is running and that you can log in.

Install Brotli without internet access Copied

Use this procedure when the Opsview host cannot connect to PyPI. Download the package on another machine that has internet access and Python 3 installed.

  1. Make sure a backup is available before you change the system.

  2. On the Opsview host, save the following requirements file as /tmp/brotli-1.2.1.txt:

    Brotli==1.2.1 \
        --hash=sha256:ddc832886517c5009863209a4a292c4353967cd304ba55822d533e0d59eb6a60
    
  3. Copy /tmp/brotli-1.2.1.txt to the connected machine.

  4. On the connected machine, download the package:

    python3 -m pip download --no-deps --only-binary=:all: --python-version 39 --implementation cp --abi cp39 --platform manylinux2014_x86_64 --require-hashes -r /tmp/brotli-1.2.1.txt -d /tmp/brotli-1.2.1
    
  5. Copy the /tmp/brotli-1.2.1.txt file and the /tmp/brotli-1.2.1 directory to the same locations on the Opsview host.

  6. On the Opsview host, install the package from the copied files with umask 0022 set. This makes the installed files readable by all users:

    sudo sh -c 'umask 0022; /opt/opsview/python3/bin/pip3 install --upgrade --no-index --no-deps --only-binary=:all: --require-hashes --find-links=/tmp/brotli-1.2.1 -r /tmp/brotli-1.2.1.txt'
    
  7. List the upgraded files. Ensure that the brotli files are readable by all users, or at least by the opsview user:

    sudo find /opt/opsview/python3/ -iname "*brotli*" -ls
    # example output:
    # 42055340      4 -rw-r--r--   1 root     root         1970 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/brotli.py
    # 42055352      0 drwxr-xr-x   3 root     root          120 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/brotli-1.2.1.dist-info
    # 360875071     4 -rw-r--r--   1 root     root         1644 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/__pycache__/brotli.cpython-39.pyc
    # 41974449   5052 -rwxr-xr-x   1 root     root      5169536 Nov  4 11:42 /opt/opsview/python3/lib/python3.9/site-packages/_brotli.cpython-39-x86_64-linux-gnu.so
    
  8. Continue with Confirm the installation.

Reduce exposure until the next upgrade Copied

If you are unable to upgrade the Brotli library to 1.2.1 with the mitigation steps, take these actions to reduce risk until you upgrade to an Opsview release that includes the fixed library:

["Opsview On-Premises", "Opsview Cloud"] ["Release Notes"]

Was this topic helpful?