Koel
Koel: Authenticated Full-Read SSRF via Subsonic Internet Radio Stations
Koel is a free, open-source music streaming solution. Prior to 9.7.0, the Subsonic-compatible createInternetRadioStation.view and updateInternetRadioStation.view routes accept an authenticated user's streamUrl without the SafeUrl and HasAudioContentType checks used by the regular radio API. app/Http/Requests/Subsonic/CreateInternetRadioStationRequest.php and app/Http/Requests/Subsonic/UpdateInternetRadioStationRequest.php pass the stored URL through app/Services/RadioService.php to app/Services/Radio/RadioStreamProxy.php, where RadioStreamProxy::openStream() calls fopen($url, 'r', false, $context). Streaming /radio/stream/{id} returns the upstream response body, allowing access to loopback, RFC1918, Docker bridge, metadata, or other internal HTTP services reachable from the Koel server. This issue is fixed in version 9.7.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.7.0
Fixed in 9.7.0
Mitigation
Upgrade koel to 9.7.0 or later.
References
- Vendor advisory github.com/koel/koel/security/advisories/GHSA-…
- Patch github.com/koel/koel/pull/2545
- Patch github.com/koel/koel/commit/1331f335342b405e60…
1 more
- Release notes github.com/koel/koel/releases/tag/v9.7.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.