Improperly controlled model selection in the license and generic JSON import of Hermine before 0.7.1 allows an authenticated user with the license or generic import permission to create or overwrite arbitrary database objects, including a superuser account, via a crafted JSON file.
Upgrade to version 0.7.1 or later. Until then, remove the cube.import_license and cube.import_generic permissions from every user and group that should not have administrator access.