Is Nextcloud 33.0.10 Docker affected by CVE-2026-111497 (Brotli)?

Hello,

I would like to confirm whether the official Nextcloud Docker image is affected by CVE-2026-111497 related to Google Brotli.

Environment:

  • Nextcloud Server: 33.0.10

  • Docker image: nextcloud:33.0.10-apache

  • Base OS: Debian 13 (trixie)

  • PHP: 8.4.27

  • Apache: 2.4.69

  • OpenSSL: 3.5.7-1~deb13u3

Inside the current official Nextcloud image, the installed Brotli package is:

libbrotli1 1.1.0-2+b7

After updating the Debian package indexes:

Installed: 1.1.0-2+b7

Candidate: 1.1.0-2+deb13u1

The candidate comes from Debian trixie-security.

According to Debian Security, the newer 1.1.0-2+deb13u1 package contains the security fix for CVE-2026-111497.

I also confirmed that curl inside the Nextcloud container has Brotli support.

My questions are:

  1. Does the Nextcloud security team consider Nextcloud Server 33 or the official Docker image affected by CVE-2026-111497?

  2. Is there a remotely reachable code path in Nextcloud where untrusted Brotli-compressed data can reach the vulnerable Brotli decoder?

  3. Is an updated/rebuilt nextcloud:33.0.10-apache image containing the Debian security-fixed Brotli package planned?

  4. Until the Docker image is rebuilt, is disabling public Internet access recommended, or is the vulnerable library not exploitable through normal Nextcloud HTTP/WebDAV traffic?

  5. Would you recommend waiting for the official image rebuild rather than upgrading libbrotli1 manually inside the container?

I prefer to stay with the official Nextcloud Docker image and avoid maintaining a custom image unless necessary.

Thank you.

I don’t know about NC itself, but at least for Apache, mod_brotli is not enabled by default:

$ docker run -it nextcloud:33.0.10-apache ls -li /etc/apache2/mods-available/ | grep brotli
137985 -rw-r--r-- 1 root root   64 Dec  5  2025 brotli.load

$ docker run -it nextcloud:33.0.10-apache ls -li /etc/apache2/mods-enabled/ | grep brotli

$

But if you’re using the NC Whiteboard app, you should update:

To answer your second question directly (“Is there a remotely reachable code path in Nextcloud where untrusted Brotli-compressed data can reach the vulnerable Brotli decoder?”):

While inbound HTTP/WebDAV requests to Apache are not decoded via Brotli by default (mod_brotli is disabled, and even when enabled it only compresses outbound responses unless BROTLI_DECOMPRESS is explicitly configured as an input filter), the reachable code path inside nextcloud:33.0.10-apache is outbound HTTP fetching via PHP ext-curl / libcurl4:

  1. How libbrotli1 is reached in Nextcloud:
    Nextcloud’s HTTP client (IClientService wrapping Guzzle) defaults to decode_content => true, which sets CURLOPT_ENCODING = "" in libcurl. Because libcurl inside the Debian 13 (Trixie) container is linked against libbrotli1 (1.1.0-2+b7), every server-side HTTP fetch advertises Accept-Encoding: deflate, gzip, br and automatically passes any remote server’s Content-Encoding: br response stream directly into libbrotli1’s Brotli decoder.
  2. Which Nextcloud features trigger that decoder path:
    Any feature where Nextcloud fetches remote HTTP responses — including URL link previews in Talk/Text, Federated Cloud Sharing (OCM) lookups, Calendar WebCal (.ics) subscriptions, or the News (RSS) app — allows a remote HTTP endpoint to return a crafted Content-Encoding: br payload to libcurl.
  3. Practical recommendation until the official image rebuilds:
    • You do not need to take your Nextcloud instance offline, because unauthenticated inbound WebDAV/login requests do not invoke the Brotli decoder.
    • However, because patching libbrotli1 inside a running container (docker exec ... apt-get upgrade) is wiped on container recreation, the cleanest zero-maintenance bridge until the upstream nextcloud:33.0.10-apache image layer is rebuilt on Docker Hub is a 2-line Dockerfile wrapper in your compose.yaml:
      FROM nextcloud:33.0.10-apache
      RUN apt-get update && apt-get install -y --only-upgrade libbrotli1 && rm -rf /var/lib/apt/lists/*
      
    • Verify with docker compose exec app dpkg-query -W libbrotli1 that 1.1.0-2+deb13u1 is active, and restart Apache (apache2ctl graceful) so PHP’s loaded libcurl.so maps the patched libbrotlidec.so.1 in memory.