Many comments here vastly overstate the seriousness of this. For it to be used as an attack, the attacker needs general write access to your database. You probably have much bigger issues on your hands if that is the case.
If they have write access they can already just set the hash to a known value for the same result.
It’s a bug certainly but of very little practical security concern.