The Syrian Electronic Army (SEA) claimed responsibility for the breach in a Twitter post.
The link now appears to be working correctly. CNBC has reached out to the White House for comment, but has not yet received a response.
It's important to note that @BarackObama's official Twitter account, which has about 39 million followers, was not hacked, but the link shortener tool that the president's campaign team uses to share links on Twitter was breached.
The link shortener is a third-party tool used by Obama's Organizing for Action grass roots campaign and it is not affiliated with Twitter.
"It appears a custom, third-party URL shortener which OFA uses to produce vanity URLs was compromised, not the Twitter account," a Twitter spokesperson told CNBC.
In another Twitter post Monday, the SEA also said they had gained access to many of Obama's campaign email accounts.
The Syrian Electronic Army has claimed responsibility for several big attacks on media organizations. Most recently, SEA claimed to have been responsible for taking down The New York Times website in August. It also claimed it had taken down Twitter.com's domain registration in August.
(Read more:New York Times website likely taken down by malicious attack )
—By CNBC's Cadie Thompson. Follow her on Twitter
—Eamon Javers and Eli Langer contributed to this report.