Zac Efron appears to be making major efforts to keep clean after news broke last month of his stays in rehab earlier this year.

The actor, 25, was spotted getting cozy with his hairspray co-star Brittany Snow, 27, Thursday Oct. 10 at the Los Angeles Haunted Hayride. Efron was seen wrapping his arms around Snow, hugging her from behind.

See the photo of the two here.

The two were attending the Hayride with a group of fellow celebs and friends, including Dancing With The Stars Pro Derek Hough and his sister Julianne, as well as Hairspray director Adam Shankman.

"Great time last night with great friends," Derek captioned a photo he posted on Instagram. "Love this time of year."

Efron's last serious relationship was with his High School Musical co-star Vanessa Hudgens, whom he dated for four years before the couple split in late 2010.

Enstars reported the news last month of Efron's secret rehab stints earlier this year. The actor reportedly sought treatment for addiction to alcohol and cocaine.

According to US Weekly, Snow was last reported to be dating Teen Wolf's Tyler Hoechlin.

Snow has had her own share of troubles, and revealed in 2007 that she had battled anorexia, depression and self-mutilation throughout her teen years.

Snow and Efron first met in 2007 on the set of Hairpsray, a musical about big dreams amid the turmoil of racial tension in the 1960s. The film adaptation of the Broadway musical also starred Nikki Blonsky, Elijah Kelly, Amanda Bynes and John Travolta.

Snow and Efron's characters were romantically involved in the movie.