Unity has disclosed a major security flaw affecting engine versions since 2017, impacting Android, Windows, and Mac games.