Skip to content

infra: the AppImage base ships curl 7.61.1 + brotli 1.0.6 (both EOL; brotli is in CVE-2026-111497 range), blocking the #2211 restore #2774

Closed

Description

@zackees

The glibc-2.28 AppImage bundles three libraries that are past their support life, and one of them is now a security gate: libbrotlidec 1.0.6, libcurl 7.61.1 (2018) and OpenSSL 1.1.1k — all inherited from the AlmaLinux 8 base, none of them pinned or rebuilt by this repo.

Evidence (from the released artifact, obs-studio-rust-v0.1.0-beta.20261028, sha256 817338ae…d9d752b7)

Unpacked with --appimage-extract, then read the binaries:

  • usr/bin/obs-studio-rust-gui → NEEDED libcurl.so.4, RPATH $ORIGIN/../lib.
  • usr/lib/libcurl.so.4 → libcurl/7.61.1 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.6 …, host x86_64-redhat-linux-gnu, NEEDED libbrotlidec.so.1.
  • usr/lib/libbrotlidec.so.1 → BrotliDecoderVersion() = 0x1000006 = 1.0.6.

Neither brotli nor curl has a recipe in obs-rust/obs-studio-libs (recipes/linux/ has fdk-aac, ffmpeg, glib, headers, libdatachannel, libvpl, pipewire, qrcodegen, qt6). The base supplies them: build-aux/appimage/manylinux/Dockerfile installs libcurl-devel/openssl-devel from AlmaLinux 8 and rebuilds libcurl from AlmaLinux's own source RPM (so that it is --with-ca-fallback), which keeps the default --with-brotli and its 1.0.6 libbrotlidec.

Why it matters

Suggested scope

  1. Add brotli.sh and curl.sh recipes to obs-studio-libs recipes/linux/ (pinned sources: brotli ≥ 1.2.1, curl 8.x), built against the glibc-2.28 toolchain — the same way Qt/FFmpeg/PipeWire arrive — and drop the Dockerfile's AlmaLinux source-RPM rebuild in favour of the pinned prefix (--with-brotli against the pinned brotli, --with-ca-fallback kept).
  2. Verify in the AppImage: curl_version() reports the pinned build, BrotliDecoderVersion() is out of the vulnerable range, check-glibc-floor.py still passes (the floor is about GLIBC_ symbols the files require), and test-appimage.sh passes across the stock containers (AlmaLinux 8, Ubuntu 22.04/24.04, Arch).
  3. Then restore: brotli back on outgoing calls (CURLOPT_ACCEPT_ENCODING "") once CVE-2026-111497 is fixed #2211 can revert its three call sites in one PR with this issue's version output as the evidence.

Not in scope: the macOS build (it links the OS /usr/lib/libcurl.4.dylib) and the .deb (the distro's libcurl4t64).

Refs #2211, #926, #2182.

Activity

  1. added
    infra
    on Oct 28, 2026
  2. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Progress: the brotli half is built, published and in a PR — obs-rust/obs-studio-libs#22 (build/2774-brotli-1.2.1).

    • New recipes/linux/brotli.sh pins brotli 1.2.1 (first release past CVE-2026-111497's 1.0.3–1.2.0 range) and builds it into /opt/obs-deps/brotli in the digest-pinned manylinux_2_28 image. build.sh builds it by default, and summaries.json gains its one-line summary.
    • Built and packed locally: brotli-1.2.1-linux-x86_64-glibc2.28-release.tar.zst, 443,768 bytes, sha256 eb4f2214dbc91eb1529e4a61499fce26ae03c06dde10935cdc6e8cf0d1b0793d; BrotliDecoderVersion() from the extracted artifact is 0x1002001 = 1.2.1 (the base's 1.0.6 is 0x1000006), glibc floor still 2.28. Published as release brotli-1.2.1 (uploaded asset digest matches) and recorded in brotli/manifest.json plus the root Index on the assets branch (dad22f7), resolving over plain HTTPS.
    • Tests: tests/test_brotli_recipe.py keeps the pin out of the vulnerable range and the recipe in build.sh's default list. uv run --group dev pytest 28 passed; ruff check and ruff format --check clean.

    Remaining on this issue, in order:

    1. A pinned curl 8.x recipe in obs-studio-libs (suggested scope item 1's other half). An upstream build must keep --with-ca-fallback's effect — or, since the RPM spec is what sets the RHEL CA-bundle path, build upstream without --with-ca-bundle so OpenSSL's default verify paths (and SSL_CERT_FILE) are used; that needs verifying against AppRun's host-bundle behaviour before the RPM rebuild is dropped. OpenSSL 1.1.1k is the third EOL library and its replacement is a separate, larger change.
    2. The consumer wiring, tracked as its own slice so a worker can take it: the AppImage image must fetch the brotli artifact into /opt/obs-deps/brotli, expose it on PKG_CONFIG_PATH/CMAKE_PREFIX_PATH when the libcurl RPM is rebuilt, and bundle the resulting libbrotli*.so in the AppImage; then verify curl_version()/BrotliDecoderVersion() in the artifact and run test-appimage.sh across AlmaLinux 8/Ubuntu 22.04/24.04/Arch. That needs an appimage image rebuild, which is why it is not in libobs: Preserve extensions and UTF-8 boundaries in generated filenames #22.

    I am not claiming the rest of this issue; #22 is the brotli slice only.

  3. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Merged: obs-rust/obs-studio-libs#22 landed on main as 48369d8 at 11:54Z — recipes/linux/brotli.sh (brotli 1.2.1), build.sh's default tool list, summaries.json, and tests/test_brotli_recipe.py. The artifact it built is published as release brotli-1.2.1 (sha256 eb4f2214…b0793d, BrotliDecoderVersion() = 1.2.1) and catalogued on the assets branch (dad22f7).

    The consumer wiring is now tracked as #2782 and this issue is blocked on it, so the remaining AppImage verification has a home. Still open here: the pinned curl 8.x recipe (the other half of the suggested scope).

  4. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    /ready

    Triage: Ready, for the remaining half only (the pinned curl 8.x recipe); the brotli half and the #2782 consumer wiring are already merged.

  5. added
    ready
    P2
    size:M
    on Oct 28, 2026
  6. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: pinned curl 8.x recipe (AppImage EOL curl/brotli)

    Plan (one PR per repo, in order):

    1. obs-rust/obs-studio-libs main: add recipes/linux/curl.sh pinned to a curl 8.x tarball (--with-brotli against the published brotli 1.2.1 prefix, --with-ca-fallback kept), wire it into build.sh's default tool list + summaries.json, build it in the linux stack image, publish the labeled rN artifact and the assets index entry.
    2. obs-rust/obs-studio: drop build-aux/appimage/manylinux/Dockerfile's AlmaLinux source-RPM rebuild in favour of the pinned prefix, and consume both pins through deps.lock.json.
    3. Verify in the built AppImage: curl_version() reports the pinned 8.x build, BrotliDecoderVersion() is outside CVE-2026-111497's 1.0.3-1.2.0 range, check-glibc-floor.py still passes, and test-appimage.sh passes on AlmaLinux 8 / Ubuntu 22.04 / Ubuntu 24.04 / Arch (an appimage.yaml platform_tests=true dispatch, since PR CI builds no app).

    Both PRs stay unmerged for the maintainer. First PR (the recipe) expected this tick; the consumer PR follows once the artifact is published and resolved through the repo's own lock parser.

  7. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Progress (worker tick, obs-studio3): the pinned curl is built, published and wired; the AppImage lane on the consumer PR is running now.

    Part 1 — obs-rust/obs-studio-libs (recipes/linux): merged as 0c6b4401c (PR #23)

    • curl.sh pins 8.23.0 (2026-10-14) and keeps the bug: AppImage (glibc 2.28 base): HTTPS requests fail on non-RHEL hosts because the bundled libcurl looks for /etc/pki/tls/certs/ca-bundle.crt #1085 contract: --with-ca-fallback + --without-ca-bundle --without-ca-path, so no RHEL /etc/pki/tls/certs/ca-bundle.crt is compiled in and the SSL_CERT_FILE AppRun points at is honoured. Brotli is --with-brotli=/opt/obs-deps/brotli (the pinned 1.2.1, not the base's 1.0.6).

    • openssl.sh pins 3.5.9 (the LTS line) because curl 8.18+ refuses OpenSSL older than 3.0 — the base's EOL 1.1.1k cannot back a pinned libcurl. That is one finding beyond the issue's scope text, which said "pinned sources: brotli ≥ 1.2.1, curl 8.x": the newest usable-with-1.1.1 curl is 8.17.0 (2025-11), so the honest choice was OpenSSL 3.5 + current curl rather than an 11-month-old curl. Both libs are symbol-versioned (OPENSSL_3.0.0 / OPENSSL_1_1_0), so the base's 1.1.1k that Qt Network still links can coexist in one process.

    • Artifacts published and asserted in the manylinux_2_28 image (glibc 2.28):

      artifact size sha256
      curl-8.23.0-linux-x86_64-glibc2.28-release.tar.zst 864045 a4f803b5…81335b1
      openssl-3.5.9-linux-x86_64-glibc2.28-release.tar.zst 6438715 d8fe8a82…3b41958f

      curl_version() from the built prefix: curl 8.23.0 (x86_64-pc-linux-gnu) libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.3.2 brotli/1.2.1; soname still libcurl.so.4; NEEDED libssl.so.3 libcrypto.so.3 libbrotlidec.so.1. GitHub's computed asset digests match the local sha256s, and the root assets index + both tool manifests are live over raw HTTPS.

    Part 2 — obs-rust/obs-studio: PR #2802 (draft)

    • deps.lock.json gains both tools; build-aux/appimage/manylinux/Dockerfile deletes the source-RPM rebuild and puts the two prefixes first on CMAKE_PREFIX_PATH/PKG_CONFIG_PATH/LD_LIBRARY_PATH, with an in-image assertion (pkg-config --modversion libcurl = 8.23.0, ldd resolves both prefixes, no RHEL CA path in libcurl.so.4).
    • RED 9f7d13cc1 (ci/test_appimage_curl_deps.py + the reworked brotli pin) fails 6 ways on master; GREEN 509274cb7 is the lock/Dockerfile change and the three ci/test_appimage_* modules pass (10 tests).
    • Acceptance is the appimage.yaml platform_tests=true dispatch on the branch — run 40702201374, started 14:03Z. It must show curl_version() reporting the pinned build, BrotliDecoderVersion() out of 1.0.3–1.2.0, check-glibc-floor.py still 2.28, and test-appimage.sh green on AlmaLinux 8 / Ubuntu 22.04 / 24.04 / Arch. The PR stays a draft until that run's job table is pasted there.

    Still open after this: the AppImage's other OpenSSL consumer (Qt Network) stays on the base's 1.1.1k, so 1.1.1k is the last EOL library in the artifact and the #2211 gate is unaffected by it. Reported separately if the maintainer wants it pinned.

  8. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Landed. The AppImage now ships a supported libcurl and TLS runtime; the artifact itself was unpacked and read after the green lane.

    Merged / published

    • obs-rust/obs-studio-libs#23 → 0c6b4401c: recipes/linux/curl.sh (curl 8.23.0, --with-ca-fallback with --without-ca-bundle --without-ca-path, --with-brotli=/opt/obs-deps/brotli) and recipes/linux/openssl.sh (3.5.9 LTS). Releases curl-8.23.0 and openssl-3.5.9, plus the assets index entries, verified over raw HTTPS.
    • obs-rust/obs-studio#2802: the manylinux Dockerfile consumes both through deps.lock.json; the AlmaLinux source-RPM rebuild is gone. Queued for merge.

    App lane — appimage.yaml platform_tests=true, run 40704567551: success. Image, Configure, Build, AppDir, AppImage, host-library loader, NixOS and almalinux:8 / ubuntu:22.04 / ubuntu:24.04 / archlinux:latest all pass.

    Measured from the built AppImage (downloaded the run's artifact, --appimage-extract, read the libraries' own symbols):

    usr/lib/libcurl.so.4     libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.2.11 brotli/1.2.1
    usr/lib/libbrotlidec.so.1  BrotliDecoderVersion() = 1.2.1
    check-glibc-floor        all 250 ELF files run on glibc 2.28 with GLIBCXX_3.4.25
    probe-https (bare ubuntu:22.04)  fetched 5179 bytes from https://localhost:18443/
                                    with verification on (libcurl/8.23.0 OpenSSL/3.5.9 …)
    

    So scope items 1 and 2 of this issue are done for libcurl: pinned build, pinned brotli, CA-fallback contract intact, glibc floor still 2.28, all four stock containers green.

    What is left, and why this issue stays open: the AppImage still contains the base's EOL libssl.so.1.1 / libcrypto.so.1.1 — ls squashfs-root/usr/lib now shows both pairs (libssl.so.1.1 + libssl.so.3). Those 1.1 libraries are Qt Network's, not libcurl's. Replacing them means rebuilding Qt 6 against a pinned OpenSSL 3 prefix (and re-checking anything else that links 1.1), which is materially bigger than this unit — I have not attempted it. Anyone picking it up should start from the pinned openssl prefix that now exists in obs-studio-libs, since Qt's recipe would consume it the same way curl does.

    Note for #2211: its gate ("the Brotli on every shipped artifact is past the vulnerable range") is now satisfied by the artifact above — BrotliDecoderVersion() is 1.2.1 in the AppImage. I have commented there with this evidence, but the revert of the Accept-Encoding stop-gap is that issue's call, not mine.

  9. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Releasing: the curl/TLS half — landed in obs-studio-libs#23 and obs-studio#2802 (merged 14:45Z, app lane run 40704567551 green).

    The issue stays open for the remaining unit only: the AppImage still bundles the base's EOL libssl.so.1.1/libcrypto.so.1.1 for Qt Network. Releasing the claim so another worker can take that unit (start from the pinned openssl 3.5.9 prefix in obs-studio-libs).

  10. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: #2774 remaining unit (the AppImage still ships EOL OpenSSL 1.1.1)

    Evidence from the AppImage built for #2802 (artifact of run 40704567551, unpacked with --appimage-extract):

    • usr/lib/libssl.so.1.1 / libcrypto.so.1.1 are still in the bundle: OpenSSL 1.1.1k FIPS 25 Mar 2021.
    • The pinned libssl.so.3 / libcrypto.so.3 (3.5.9) are there too, for the pinned libcurl 8.23.0.
    • The reason 1.1.1 is still pulled in is not Qt: readelf -d usr/lib/libdatachannel.so.0.24 lists NEEDED libssl.so.1.1 and libcrypto.so.1.1. No other ELF in the bundle needs 1.1.1, and libqopensslbackend.so / libQt6Network.so.6 link no OpenSSL (they dlopen it, so they take the 3.5.9 in the same directory once 1.1.1 is gone). The remaining unit is therefore the libdatachannel recipe, not the Qt side.

    Plan (one PR per repo, in order):

    1. obs-rust/obs-studio-libs main: build recipes/linux/libdatachannel.sh against the pinned /opt/obs-deps/openssl (3.5.9) prefix instead of the base image's 1.1.1, with a recipe test that fails while the recipe still takes the base OpenSSL. Republish the libdatachannel-0.24.6 artifact and its assets index entry.
    2. obs-rust/obs-studio: bump the libdatachannel pin in build-aux/appimage/manylinux/deps.lock.json, add a check that the built AppDir contains no libssl.so.1.1 / libcrypto.so.1.1 (RED against the current pin), and verify on an appimage.yaml dispatch that the bundle ships only OpenSSL 3.5.9, test-appimage.sh still passes, and check-glibc-floor.py still passes.

    Both PRs stay unmerged for the maintainer. First PR (the recipe) expected this tick.

  11. self-assigned this
    on Oct 28, 2026
  12. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Progress (worker tick, obs-studio4): the 1.1.1 source is not Qt itself but the libraries around it; the libdatachannel half is fixed and published, the krb5 half is filed as #2815.

    Root cause (from the artifact of run 40704567551, unpacked with --appimage-extract)

    • usr/lib/libssl.so.1.1 / libcrypto.so.1.1 are the base's OpenSSL 1.1.1k.
    • readelf -d usr/lib/libdatachannel.so.0.24 -> NEEDED libssl.so.1.1, libcrypto.so.1.1.
    • readelf -d usr/lib/libQt6Network.so.6 -> NEEDED libgssapi_krb5.so.2, and the base's libkrb5/libk5crypto/libkrb5support need libcrypto.so.1.1. Qt Network itself links no OpenSSL (it dlopens it and takes the first versioned soname), so with 1.1.1 present it stayed on it.

    Landed / open

    • obs-rust/obs-studio-libs#24: the libdatachannel recipe builds against /opt/obs-deps/openssl (3.5.9) and asserts libssl.so.3 and no libssl.so.1 at build time; build.sh builds openssl first. uv run pytest: 43 passed.
    • Artifact republished under libdatachannel-0.24.6 (1114574 bytes, sha256 98f2536522f69c8e3abe8dfa2564b460f65a056a8c744cb34f91d07627a2f129), assets catalog updated (913c520). readelf -d on the unpacked artifact: NEEDED libssl.so.3, libcrypto.so.3.
    • #2814: bumps the deps.lock.json pin to that sha (one-line consumer change, evidence in the PR).
    • #2815: the remaining 1.1.1 sources — Qt Network's GSSAPI/krb5 chain. Proposed fix: build Qt with -DFEATURE_gssapi=OFF (OBS never uses Negotiate auth), which drops krb5 and with it the 1.1.1 TLS libraries; the check_appdir.py gate that fails a bundle containing any 1.1.1 soname lands with that fix (drafted, held so it does not fail every AppImage build in the meantime).

    #2774 closes with #2814; the last 1.1.1 source is tracked in #2815.

  13. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Closing: both halves this issue tracked are now dispatched to their own fixes, and neither is left in the AppImage base.

    Fixed and merged

    Split out, not lost

    • The remaining 1.1.1 source is the krb5 stack behind libQt6Network.so.6's NEEDED libgssapi_krb5.so.2: filed as #2815 with the readelf evidence and the preferred fix (-DFEATURE_gssapi=OFF in obs-studio-libs recipes/linux/qt6.sh). That issue also holds the check_appdir.py guard, which stays unlanded until the bundle is actually clean so it does not fail every AppImage build.

    What is not verified here

    • No AppImage has been rebuilt since #2814 merged, so the "no libssl.so.1.* in the bundle" observation is expected from the dependency graph (readelf showed libdatachannel as the only 1.1.1 consumer) rather than measured on a new artifact. The next AppImage run is the check; a failure there belongs to #2815, not to this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2infrareadysize:M

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions