Geohot has released a jailbreak for the iPhone OS 3.1.2 dubbed as blackra1n. It is a software tool which can jailbreak (not unlock) all iPhone’s (iPhone (Edge), iPhone 3G and iPhone 3GS) and iPod touch’s (iPod touch 2G and 3G) running on firmware version 3.1.2. You can download the jailbreak software for iPhone OS 3.1.2 from here. Once you have downloaded Blackra1n, make sure to update your iTunes to the latest version.
Update: There is a warning associated with this, so read on and take note:
WARNING: Even though the GeoHot jailbreak supports 3.1.2 do not update if you are on iPhone OS 3.0.1 or 3.0. You will lose your unlock. Use PwnageTool to safely update to 3.1 without performing a baseband update. If you really must have 3.1.2 then wait for the next version of PwnageTool. If you have already updated to 3.1 or 3.1.2 without using PwnageTool then you’ve lost the ability to unlock for the time being. You can now use BlackRa1n to at least regain your jailbreak

Update: Blackra1n is also able to jailbreak iPhone OS 3.1. Thanks to commentator SimBech for confirming this.

