Skip to content

bug: bundled Mbed TLS 3.6.4 has public advisories fixed in 3.6.7 (RTMPS certificate checks) #1121

Closed

Description

@rdoupe

Summary

Every platform bundles Mbed TLS 3.6.4. On Windows/macOS it comes from obs-deps 2026-08-26. In the AppImage, it comes from the obs-studio-libs ffmpeg artifact since #927/#1047; the current AppImage has Ubuntu's 3.6.5. OBS uses it for the RTMPS client (obs-outputs librtmp: certificate and hostname verification), for libsrt and librist crypto, and on Windows/macOS for WHIP DTLS through libdatachannel.

Mbed TLS 3.6.7 fixes public advisories on the RTMPS client path, among them CVE-2026-49300 (X.509 CA bit forgery through invalid basicConstraints), CVE-2026-25832, CVE-2026-50581, CVE-2026-50583 and CVE-2026-25834, plus CVE-2026-25833 for IPv6 server addresses.

Fix

  1. obs-studio-libs: Mbed TLS 3.6.7 in the ffmpeg artifact (r5, on top of r4 / obs-studio-libs#5), with libsrt and librist rebuilt against it. The obs-studio AppImage pin follows, with a probe that requires at least 3.6.7.
  2. obs-deps: the same bump for Windows and macOS, then rebuild libsrt, libdatachannel, FFmpeg and librist.

Validation (Linux AppImage, 3.6.4 vs 3.6.7, full UI)

  • RTMPS:
    • Good certificates stream with verified media: RSA, ECDSA, an intermediate chain, and TLS 1.2-only and 1.3-only servers.
    • Wrong hostname, untrusted CA, self-signed, expired and missing-intermediate certificates are all refused, with identical results on both versions.
    • A 60 s stream passes.
  • The host CA store parses identically.
  • SRT encryption works at pbkeylen 16/24/32 in both directions. RIST and FFmpeg checks pass.
  • Mbed TLS's own unit suites pass. The ABI only adds symbols.

Activity

  1. rdoupe commented on Oct 16, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    1. obs-studio-libs PR: Mbed TLS 3.6.7 (artifact r5), after obs-studio-libs#5 merges, since it builds on r4. Validated, see above.
    2. obs-studio PR: pin r5 plus a probe requiring >= 3.6.7.
    3. obs-deps PR: the same bump for Windows/macOS.
  2. added
    claimed
    on Oct 16, 2026
  3. rdoupe commented on Oct 18, 2026

    @rdoupe
    CollaboratorAuthor

    Progress: the AppImage recipe for Mbed TLS 3.6.7 is up as obs-rust/obs-studio-libs#6 (r5, on r4). On Windows/macOS, obs-rust/obs-deps#3 waits on obs-rust/obs-deps#5, which fixes obs-deps master's Windows FFmpeg build.

  4. rdoupe commented on Oct 20, 2026

    @rdoupe
    CollaboratorAuthor

    Still on this: obs-rust/obs-studio-libs#6 (Mbed TLS 3.6.7, CI green, mergeable) is waiting for review. The obs-studio side that picks up the new libs release follows once #6 merges and the release is published.

  5. added a commit that references this issue on Oct 20, 2026
  6. removed
    claimed
    on Oct 22, 2026
  7. zackees commented on Oct 23, 2026

    @zackees
    Member

    Picking up step 1's obs-studio half, since the claim is past 48 h and obs-rust/obs-studio-libs#6 is merged, @rdoupe. The r5 artifact was never published (the ffmpeg catalog still tops out at 8.1.2 r3), so I'm building recipes/linux/ffmpeg.sh at 432f4c4 under bosn, publishing it as ffmpeg 8.1.3 r5, then opening the obs-studio PR: the pin, plus a check that the AppDir's Mbed TLS is at least 3.6.7. Step 2 (obs-deps, Windows/macOS) stays yours.

  8. rdoupe commented on Oct 23, 2026

    @rdoupe
    CollaboratorAuthor

    Step 2 progress: obs-rust/obs-deps#3 (Mbed TLS 3.6.7 for Windows/macOS). Its only red job was the libvpx/NASM 3.02 Windows build, now fixed on obs-deps master by obs-rust/obs-deps#5; #3 needs a rebase or re-run on master to go green.

  9. 5 remaining items

  10. added
    ready
    on Oct 25, 2026
  11. vpacher commented on Oct 25, 2026

    @vpacher
    Member

    The Flatpak is not in the Fix list yet: it builds Mbed TLS 3.6.4 itself, in obs-rust/obs-deps-buildstream elements/components/mbedtls.bst (mbedtls-version: 3.6.4, the release tarball with ref: ec35b18a…d678110), and obs-studio uses its release 2026-09-24. It needs:

    1. obs-deps-buildstream: mbedtls-version: 3.6.7 with ref: a7e8bcbec0e6f761b4af24f25677626b35f762f68eef79c08677a363212d11f6 (the SHA-256 of mbedtls-3.6.7.tar.bz2; it matches GitHub's digest of the release asset), so libsrt and librist rebuild against it. Then a new buildstream release, and the Flatpak manifest's flatpak-* tarballs move to it.

    obs-rust/obs-deps#3 (Windows, macOS) merged today, but it needs a new obs-deps release too. #2372 (libsrt 1.5.7) needs the same two releases, so both can ship together: one obs-deps release, one buildstream release, and one obs-studio PR that moves CMakePresets.json and the Flatpak manifest.

  12. vpacher commented on Oct 25, 2026

    @vpacher
    Member

    Claiming: #1121 (the last step: the pins in obs-studio).

    Status:

    Left: after the next obs-deps and obs-deps-buildstream releases (the maintainer's date tags), one obs-studio PR bumps CMakePresets.json and the Flatpak manifest. That PR also closes #2372 and #2374, which need the same two releases. It adds a check that the bundled Mbed TLS is 3.6.7 or later on Windows, macOS and the Flatpak, RED on the current pins.

    The same obs-deps release also carries the Qt fix for #2290 and FFmpeg 8.1.3 for #1091 (Windows/macOS). If @zackees and @rdoupe want, the one pin PR can take those pins too, so CMakePresets.json changes once; otherwise I leave them alone.

  13. rdoupe commented on Oct 25, 2026

    @rdoupe
    CollaboratorAuthor

    One pin PR for all of these is fine from our side; changing CMakePresets.json once is better than three rebases. Thanks for taking it. zackees owns #2290, so whether the Qt pin goes in with it is his call.

  14. moved this from Ready to In progress in obs-rust Multiviewon Oct 25, 2026
  15. zackees commented on Oct 25, 2026

    @zackees
    Member

    Unblocked: obs-rust/obs-deps-buildstream 2026-10-25 is published with libsrt 1.5.7 and Mbed TLS 3.6.7 (obs-deps-buildstream#1), for both x86_64 and aarch64. Next: bump the Flatpak manifest's deps modules to that release (URLs and sha256 from its CHECKSUMS), then the SRT caller/listener check from this issue's acceptance criteria.

  16. moved this from In progress to Done in obs-rust Multiviewon Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1readysize:M

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions