STM32 Digital Inputs allowed voltage range
This note is present in many STM32 datasheets (from stm32f030rc below):

Despite the fact that is not a current in/out of the GPIO pin itself and that information on precise current and voltage values is not available in the notes, it may be a problem.