LSA-2026-002: Harbor static file server reads files outside its directory
When Liquidsoap serves files over HTTP with harbor.http.static or
output.harbor.hls, anyone who can reach its harbor port can read any file the
Liquidsoap process can open, such as your scripts and the passwords in them.
- Published: 5 December 2026
- Affected: Liquidsoap 2.0.0 to 2.4.6, and 2.5.0 release candidates, when
using
harbor.http.static()oroutput.harbor.hls() - Fixed in: Liquidsoap 2.4.7
-
Severity: High (CVSS 3.1: 7.5,
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) - TOC
What to do
-
Check whether your scripts serve files through harbor:
grep -rnE "harbor.http.static|output.harbor.hls" /path/to/your/scriptsIf nothing matches, you are not affected.
- Update to Liquidsoap 2.4.7: see where to get the fix. If you cannot, for instance because you use your distribution’s package, stop serving files through harbor.
- Change the secrets your Liquidsoap process could read if its harbor port was reachable from networks you do not trust: passwords written in your scripts, API keys, private keys of your TLS certificates.
What is the problem?
harbor.http.static() serves the files of a directory over HTTP.
output.harbor.hls() uses it to serve its playlists and segments. It builds
the file name from the requested path, but does not check that the result
stays inside that directory. A request containing .. segments walks out of
it:
curl --path-as-is http://your-server:8000/../../../../etc/passwd
The percent-encoded form, %2e%2e, works too, so a reverse proxy that cleans
up literal ../ segments does not reliably protect you.
The request needs no password, and harbor listens on all network interfaces by default. The attacker gets the content of any file that the user running Liquidsoap can read.
Are you affected?
You are affected if all of the following apply:
-
You run Liquidsoap 2.0.0 to 2.4.6, or a 2.5.0 release candidate. To check:
liquidsoap --version - Your scripts serve files through harbor:
harbor.http.static(...)oroutput.harbor.hls(...). - Someone you do not trust can reach the harbor port used by those operators, directly or through a reverse proxy.
You are not affected if you use:
output.file.hls()and serve its directory with a web server,- harbor only for source clients (
input.harbor), listeners (output.harbor) or your own handlers (harbor.http.register).
If you cannot update
Stop using harbor.http.static() and output.harbor.hls(), and serve the
files with a regular web server instead. For HLS, replace
output.harbor.hls(...) with output.file.hls(...), which writes the same
playlists and segments to a directory, and serve that directory with nginx,
Caddy or any other web server.
If you need to keep them for now, make sure only trusted machines can reach their harbor port, for instance with a firewall rule.
Where to get the fix
| 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.
There is no fix for older releases, including those shipped by distributions: the fix is too large for their stable updates. Update to 2.4.7 from the links above, or stop serving files through harbor.
Change in 2.4.7: files are checked by their real path, so symbolic links inside the served directory that point outside of it are no longer followed.
Credits
Reported by NotAFlightRisk through GitHub’s private vulnerability reporting. Thank you!
Changes to this page
- 5 December 2026: first published.
