ZoneMinder is a free, open source closed-circuit television software application. Prior to 1.38.4, detaintPath() in web/includes/functions.php can be bypassed with a PHP stream-wrapper path when sanitizing modal.php input. A remote unauthenticated attacker can submit such a path through the affected input and potentially read unauthorized local files through local file inclusion. This issue is fixed in version 1.38.4.
https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-wgqf-6fjf-7gxw
https://github.com/ZoneMinder/zoneminder/releases/tag/1.38.4
https://github.com/ZoneMinder/zoneminder/pull/4991
https://github.com/ZoneMinder/zoneminder/commit/c5f24a1d1fb42a047a51ecf71cc39bc3e33f61ba
https://github.com/ZoneMinder/zoneminder/commit/6c98ed5f12fc8849b4ee30e691866f7c8883d458