An issue has been found in PowerDNS Recursor versions after 4.1.3 before 4.1.9 where Lua hooks are not properly applied to queries received over TCP in some specific combination of settings, possibly bypassing security policies enforced using Lua.
https://docs.powerdns.com/recursor/security-advisories/powerdns-advisory-2019-01.html