With physical access to the device. There still isn't an untethered jailbreak for iOS6. And even after a jailbreak, your data remains encrypted.
Jailbreak software uses 0-day attacks found by a small group of very skilled researchers/developers, which end up fixed in the next release. The same way you can root android.