Skip to content

restore: brotli back on outgoing calls (CURLOPT_ACCEPT_ENCODING "") once CVE-2026-111497 is fixed #2211

Closed

Description

@zackees

Why

The outgoing HTTP calls were pinned to Accept-Encoding: gzip, deflate in
place of "" as a stop-gap for the Brotli decoder flaw CVE-2026-111497
(private advisory: GHSA-c2vc-wwm8-6gx9). The empty string makes libcurl
advertise every encoding it was built with — br included — and our curl
builds link Brotli 1.2.0, inside the vulnerable range (Google Brotli
1.0.3 through 1.2.0, out-of-bounds write in c/dec/decode.c).

Disabling brotli on outgoing calls costs a little bandwidth on three paths
and buys us not parsing attacker-shaped brotli until the fix is everywhere.
This issue exists so the stop-gap has an expiry date instead of becoming the
answer.

The three places (revert all three together)

Site Path
file-updater shared/file-updater/file-updater/file-updater.c.h
remote text (GET) frontend/utility/RemoteTextThread.cpp.hpp
remote text (request) frontend/utility/RemoteTextThread.cpp.hpp

Each currently reads curl_easy_setopt(..., CURLOPT_ACCEPT_ENCODING, "gzip, deflate")
with a comment pointing at the advisory; restoring means going back to "".

Preconditions — all of them, verified, not assumed

  • The Brotli linked into our shipped binaries is past the vulnerable
    range (or carries the backported patch). Check the actual shipped
    artifacts, not the source: curl -V / ldd on the AppImage runtime,
    the CI image inventory (libbrotli1:amd64 1.2.0-3build1 today), the
    Windows/macOS dependency bundles, and whatever CEF/Qt pull in.
  • The distro/upstream advisory for our floor (glibc 2.28 AppImage base)
    lists a fixed package we can require.
  • CVE-2026-111497 is fixed in that package (fix version recorded here).

Definition of done

  • All three setopt calls go back to "" in one PR, with the
    linked-library evidence in the PR body (version output, not a claim).
  • The cmocka test test_file_updater_failure (which asserts the request
    does not list br on the wire) is updated in the same PR — it is
    supposed to fail after the revert; flip the assertion to expect brotli
    is again advertised, or retire it with a comment saying why.
  • The comments in the three files are removed in that same PR.
  • GHSA-c2vc-wwm8-6gx9 is updated/closed only after the revert is merged
    and the linked Brotli on the shipped artifacts is verified fixed.

Related: private advisory GHSA-c2vc-wwm8-6gx9. Reported alongside a Discord
thread where Volker flagged "brotli enabled for outgoing calls" and suggested
exactly this disable-then-restore sequence.

Activity

  1. changed the title [-]restore: brotli back on outgoing calls (Accept_ENCODING empty string) once CVE-2026-111497 is fixed[/-] [+]restore: brotli back on outgoing calls (CURLOPT_ACCEPT_ENCODING "") once CVE-2026-111497 is fixed[/+] on Oct 24, 2026
  2. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    Fix landed in PR #2213 (all three call sites pinned to gzip, deflate, wire-level assertion added). This issue stays open as the restore gate: nothing here reverts until the linked Brotli on the shipped artifacts is verified past the vulnerable range.

  3. added
    P3
    size:S
    on Oct 25, 2026
  4. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Triage: a restore gate, deliberately open. The stop-gap merged (#2213, all three call sites pinned to gzip, deflate with a wire-level assertion). Ready to act on only when its dependency is met: the Brotli that ships on every platform (obs-deps, obs-studio-libs, the Flatpak runtime) is outside the vulnerable range. Acceptance: that version pinned and confirmed per platform, then CURLOPT_ACCEPT_ENCODING "" restored with the assertion updated. P3, size:S. Leaving it un-/ready until then.

  5. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Coordinator triage (2026-10-27). The work is well specified; what stops it being Ready is the issue's own precondition block, which is unverified rather than unmet.

    "Brotli linked into our shipped binaries is past the vulnerable range" is the gate, and it cannot be checked from here: this is a property of the artifacts we ship (the AppImage runtime, the Windows/macOS bundles, what CEF and Qt pull in), not of this checkout. Today the CI image inventory records libbrotli1:amd64 1.2.0-3build1, which is inside the vulnerable range 1.0.3-1.2.0 unless that build carries the backport.

    Concrete next step, small enough to claim: one task that runs curl -V / ldd on a current AppImage release plus the Windows and macOS bundles and records the Brotli version each one reports, and checks the glibc-2.28 base's advisory for a fixed package version. Its result is the precondition itself - either "still vulnerable, keep the stop-gap and revisit when X ships" or "fixed in version Y, the revert is unblocked". Then this issue's own Definition of done applies unchanged.

    Until that evidence exists, the three setopt calls stay at gzip, deflate and this issue stays out of ready.

  6. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    /investigate

    The stop-gap is in and this issue is still the right place for its expiry, but it cannot be worked as written: the code it names has changed, and its one real gate cannot be checked from this repository.

    The three call sites no longer pass a literal. shared/file-updater/file-updater/file-updater.c.h:115 and frontend/utility/RemoteTextThread.cpp.hpp:70 and :155 all call obs_curl_accept_encoding(curl_version_info(CURLVERSION_NOW)), from shared/file-updater/file-updater/curl-accept-encoding.h:22. So "go back to """ is no longer a three-line revert of CURLOPT_ACCEPT_ENCODING values.

    "" alone is also now wrong, for a second reason. That header forbids it because the linked Brotli has CVE-2026-111497, but also because a libcurl built without zlib (Windows/Schannel) cannot decode gzip and asking for it broke the service list, capture list and YouTube calls (#2453). The helper therefore returns identity in that case. A restore has to keep that branch and add br only where the linked Brotli is fixed and the build still decodes what it advertises.

    Precondition 1 cannot be evaluated here. Nothing in the tree pins Brotli: git grep -i brotli origin/master -- build-aux returns nothing, and the AppImage's libcurl is rebuilt from AlmaLinux 8's own curl source package (build-aux/appimage/manylinux/Dockerfile:32-43), not from the Ubuntu image. Line 44 rebuilds its BuildRequires with dnf builddep on that SRPM, so whatever Brotli the shipped libcurl links is the one rpm -q libbrotli reports inside the manylinux image — record that number, not the CI image's. The libbrotli1:amd64=1.2.0-3build1 entries in docs/ci-evidence/ are the Ubuntu CI build image, not a shipped AppImage, so they do not answer it either.

    What is missing, concretely:

    • curl -V and ldd (or readelf -d) output from a released AppImage, the Windows zip, the macOS bundle and the Flatpak, each showing the Brotli version actually loaded by the shipped libcurl.
    • The fixed Brotli version we can require on the glibc 2.28 base — AlmaLinux 8's advisory, with this CVE listed as fixed in that package.
    • A decision on the restore form, because the two are not equivalent: pin the Brotli floor at build time and let the helper go back to asking for everything, or keep the helper and add br from a version it can read at runtime. Either way the identity branch for no-zlib builds stays.

    Tests that must change with the revert, once the above exists: test/cmocka/test_curl_accept_encoding.c:29 and :55 assert "gzip, deflate" and assert_false(lists_coding(enc, "br")), and test/cmocka/test_file_updater_failure.c:217-218 asserts on the wire that br is not advertised.

    Labels: no change — P3 and size:S still fit. This stays out of ready until the per-artifact Brotli version is recorded on the issue.

  7. added
    needs-investigation
    on Oct 27, 2026
  8. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Artifact check for precondition 1 (per-artifact Brotli versions), run against the latest release obs-studio-rust-v0.1.0-beta.20261023 (published 2026-10-23).

    Linux .deb — obs-studio-rust-gui and obs-modules/core/rtmp-services.so link libcurl.so.4, but the package bundles no libcurl and no Brotli (extracted and searched the whole package: no libcurl*, no libbrotli*). The Brotli version on this path is the host distro's, so the .deb cannot pin it.

    Linux AppImage — bundles its own:

    • usr/lib/libcurl.so.4 → libcurl 7.61.1, NEEDED libbrotlidec.so.1, libz.so.1
    • usr/lib/libbrotlicommon.so.1 → build string libbrotlicommon.so.1.0.6-1.0.6-4.el8_10.x86_64.debug

    So the AppImage ships Brotli 1.0.6-4.el8_10 from AlmaLinux 8, inside the vulnerable range 1.0.3–1.2.0. As of 2026-10-27 the AlmaLinux fix for this CVE is published for EL9 (brotli-1.0.9-10.el9_8.1, ALSA-2026:90495) and EL10 (brotli-1.1.0-8.el10_2.1, ALSA-2026:90449); I found no EL8 fixed package — EL8's current errata entry ALSA-2026:2389 still ships 1.0.6-4.el8_10, the same build as this AppImage. The shipped AppImage is therefore still vulnerable, and the stop-gap stays until AlmaLinux 8 publishes a fixed brotli.

    Windows x64 zip — bin/64bit/libcurl.dll is libcurl 8.12.1-DEV; no Brotli DLL is shipped and the DLL contains no Brotli symbols. This build does not advertise br at all, so the no-zlib branch already covers it.

    macOS dmg — not checked (cannot mount on this Linux host); still needs a run on macOS.

    Net: the gate in precondition 1 is not met for the AppImage (and the .deb cannot meet it by construction), so this stays out of ready; the concrete unblock is an AppImage rebuild after AlmaLinux 8 ships the fixed brotli. The restore-form decision in the third bullet is still open and still needs the maintainer.

  9. moved this from Triage to Investigating in obs-rust Multiviewon Oct 27, 2026
  10. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Artifact evidence for the two platforms the earlier check left open (same release, obs-studio-rust-v0.1.0-beta.20261023; assets verified against the release's SHA256SUMS):

    Asset Bundles libcurl Bundles Brotli Verdict
    Windows x64 zip bin/64bit/libcurl.dll, libcurl/8.12.1-DEV no *brotli*.dll; the DLL has zero Brotli/zlib/zstd strings and imports none — its only decoders are identity/none not affected on the HTTP path
    macOS arm64 dmg no copy; links the system /usr/lib/libcurl.4.dylib no *brotli* dylib in the bundle, zero brotli strings in the executable cannot be pinned from the dmg — the Brotli version is the host OS's
    Linux AppImage usr/lib/libcurl.so.4 7.61.1 libbrotlicommon.so.1 → build string 1.0.6-4.el8_10 1.0.6, inside 1.0.3–1.2.0: still vulnerable

    Two gaps remain that the artifact check cannot close: the Brotli copy vendored inside CEF (libcef.dll / Chromium Embedded Framework.framework) carries no version string, and the macOS dmg delegates to the host's libcurl so its Brotli version needs otool -L on a macOS host. Neither changes the net: the shipped Linux AppImage is still inside the vulnerable range and AlmaLinux 8 has no fixed brotli package yet (EL8's current errata still ships 1.0.6-4.el8_10), so precondition 1 stays unmet and the gzip, deflate stop-gap stays in place. Unblock is external: rebuild the AppImage once AlmaLinux 8 publishes the fixed package.

  11. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Blocked: external — waits on AlmaLinux 8 shipping a fixed brotli.

    The artifact check above closes the question for the platforms it can reach: the shipped Linux AppImage bundles brotli 1.0.6 (1.0.6-4.el8_10), inside the vulnerable 1.0.3–1.2.0 range, and EL8's current errata still ships that package; the Windows zip bundles no brotli at all; the macOS dmg delegates to the host's libcurl, and CEF's vendored copy carries no version string, so neither can be pinned from the release. None of that changes the net: the gzip, deflate stop-gap stays until a fixed brotli package exists and the AppImage is rebuilt.

    Marking claim-blocked so this stops re-listing as an open investigation. It is claimable again when the package is published, or sooner if a maintainer decides to bundle a patched brotli instead of waiting for EL8.

  12. 18 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3readysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions