Yesterday we tagged security bugfix releases for Flow, so enjoy 3.0.12, 3.1.10, 3.2.13, 3.3.13, or 4.0.6.
If you had used entity security and wanted to secure entities not just based on the user's role, but on some property of the user (like the company he belongs to), entity security did not work properly together with the doctrine query cache. This could lead to other users re-using SQL queries from the cache which were built for other users; and thus users could see entities which were not destined for them.
More details are available in a blog post.
The Flow releases 3.3.13 and 4.0.6 contain some non-security fixes as well.
Thanks to @sebastian for doing the hard work of fixing the issue and releasing the new versions.