There was a vulnerability in the iPhone that could allow it to be hacked by sending it an SMS. In theory this would allow hackers to take control of your iPhone quite easily.
Apple has responded with a patch (called 3.0.1) that fixes the vulnerability. It can be downloaded and installed using iTunes.
Apple has more info here.