SarahPalinBookCocaine230.jpgTalk about going rogue.

A new book, The Rogue: Searching for the Real Sarah Palin, claims the politician cheated on her husband, Todd, with his business partner Brad Hanson in a six-month affair.

When Todd found out about the trysts, he ended the business relationship.

In addition, the book alleges that in 1987, a 20-something Palin had a one-night stand with basketball star Glen Rice while she was a sports reporter and he was playing in a college basketball tournament.

There are also accusations of cocaine use. Supposedly, before Palin became governor of Alaska, she and hubby Todd were into the drug. The book's author, Joe McGinniss, describes an incident in which Palin snorted the drug off of an oil drum.

McGinnis has been working on the unauthorized biography since 2009 -- he even moved into a rental home next to the Palins in Alaska.