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.

While there is no evidence that the method has ever been used in the wild, Reuters reports that iOS 7 beta 4 contains a fix for the vulnerability … 

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.

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.