I bought some sneakers 2nd hand and all was fine until I saw this after a day of wearing it. No idea what caused this damage. Maybe the previous owner didn’t wear them for a long time, maybe my medical insoles although that seems unlikely.

Can this be fixed? One shoe has it more worse then the other.