A vulnerability has been detected in the Apple iPhone that could allow an attacker to take control of the handset.