We reported a couple of months ago a proof-of-concept allowing a modified phone charger to inject malware into a non-jailbroken iPhone without user intervention.
Apple said the issue had been fixed in the latest beta of iOS 7, which has already been released to software developers.
“We would like to thank the researchers for their valuable input,” Apple spokesman Tom Neumayr said.
The hack worked by embedding a tiny Linux computer into a charger. In the latest beta, a message pops up to warn users that they are connecting to a computer rather than a charger.