Liquidsoap security advisories

Security advisories for Liquidsoap.

View on GitHub

All advisories

LSA-2026-001: TLS server identity not verified

Liquidsoap’s OpenSSL transport does not check that a server’s certificate matches its name, so an attacker who controls the network path between Liquidsoap and your streaming server can pose as that server and capture your source password and stream.

What to do

  1. Check whether your scripts use the OpenSSL transport:

    grep -rn "http.transport.ssl" /path/to/your/scripts
    

    With Liquidsoap 2.0.x or 2.1.x, also search for protocol="https". If nothing matches, you are not affected.

  2. Update to Liquidsoap 2.4.7, or to your distribution’s update: see where to get the fix.
  3. Change your source passwords if you have been streaming over networks you do not trust.

If you cannot update right away, see until you can update.

What is the problem?

When Liquidsoap connects to a server over HTTPS using its OpenSSL transport (http.transport.ssl()), it checks that the server’s certificate was issued by a trusted authority, but not that it was issued for the server it is connecting to. Any valid certificate is accepted for any server, including a free certificate for a domain the attacker owns.

Someone able to intercept or redirect your connection can therefore pose as your streaming server. The connection is still encrypted, but to the attacker. They receive what Liquidsoap sends:

This is a high bar for an attacker. The flaw cannot be exploited on its own, from anywhere on the internet: the attacker must first make your connection reach their machine instead of your server. That means fooling your DNS so that your server’s name resolves to their address, or controlling a network your traffic goes through. Without that, Liquidsoap connects to your real server and nothing happens.

Liquidsoap 2.0.x and 2.1.x are worse: they do not check the certificate at all, so even a self-signed certificate is accepted.

Are you affected?

You are affected if all of the following apply:

  1. You run Liquidsoap 2.4.6 or earlier, or a 2.5.0 release candidate. To check:

    liquidsoap --version
    
  2. Your scripts connect to a server over HTTPS through the OpenSSL transport:
    • output.icecast(transport=http.transport.ssl(), ...),
    • icy.update_metadata(transport=http.transport.ssl(), ...),
    • with Liquidsoap 2.0.x or 2.1.x: output.icecast(protocol="https", ...).

    To check, search your scripts for http.transport.ssl (and, with 2.0.x or 2.1.x, for protocol="https").

  3. The connection crosses a network you do not fully control, for instance:
    • streaming to an Icecast or Shoutcast server hosted elsewhere, over the internet,
    • streaming from a laptop or a remote studio on a shared or public network,
    • a setup where the server’s hostname is resolved through a DNS server you do not operate.

    The attacker needs to be in a position to redirect your traffic: a rogue Wi-Fi access point, a compromised router, DNS spoofing, or a hosting or internet provider’s network. Nobody can exploit this remotely without that position.

You are not affected by this issue if you use:

Until you can update

If your Liquidsoap was built with ocaml-tls, switch to its transport. To check, look for tls : yes in:

liquidsoap --build-config | grep -E "^ *- (ssl|tls) "

Our packages and Docker images include it; most distribution packages do not. Then replace:

output.icecast(transport=http.transport.ssl(), ...)

with:

output.icecast(transport=http.transport.tls(), ...)

Otherwise, only stream over HTTPS through a network you trust, for instance a VPN or an SSH tunnel to your server.

Where to get the fix

Liquidsoap releases

Where Version Link
GitHub release 2.4.7 v2.4.7
Debian, Ubuntu, Alpine, RPM 2.4.7 Release assets
Docker 2.4.7 savonet/liquidsoap:v2.4.7
Windows 2.4.7 v2.4.7
opam 2.4.7 opam install liquidsoap.2.4.7, or pin it until it is published
Homebrew 2.4.7 brew upgrade liquidsoap, once the formula update is merged

Until 2.4.7 is published in the opam repository, opam users can pin the release:

opam pin add -n liquidsoap-lang git+https://github.com/savonet/liquidsoap.git#v2.4.7
opam pin add liquidsoap git+https://github.com/savonet/liquidsoap.git#v2.4.7

Once it is published, remove the pins with opam unpin liquidsoap liquidsoap-lang.

If you are testing a 2.5.0 release candidate, switch to the latest 2.5.x rolling release, which includes the fix.

Distributions

Distributions ship older versions, patched by their maintainers. Update your system packages once the update below is available.

Distribution Release Package updated Status
Debian 12 bookworm ocaml-cry Patch sent: Debian #1156468
Debian 13 trixie liquidsoap Patch sent: Debian #1156467
Debian testing, sid liquidsoap Patch sent: Debian #1156467
Ubuntu 22.04 LTS ocaml-cry Patch sent: LP #2190920
Ubuntu 24.04 LTS liquidsoap Patch sent: LP #2190919
Ubuntu 26.04 LTS liquidsoap Patch sent: LP #2190919
Ubuntu 26.10 liquidsoap Patch sent: LP #2190919
Raspberry Pi OS follows Debian as Debian As Debian
NixOS 26.05, 26.11 liquidsoap Update submitted: nixpkgs #598057
Homebrew macOS, Linux liquidsoap Update submitted: homebrew-core #329981

Credits

Reported by Nigel Smart in a private message on our Discord. Thank you!

Changes to this page

Liquidsoap