Everything will be wiped from your phone. You can restore your apps and data from the last backup you made.
This is an example of why it's a good idea to update iOS as soon as possible when new updates come out. The most recent update fixes the vulnerability that allowed this to happen to you.