In 2011, she played Lenore Case, a journalist, in the remake of the 1940s film The Green Hornet. Directed by Michel Gondry, Diaz starred alongside Seth Rogen, Jay Chou, and Christoph Waltz in the superhero action comedy film. Released to mixed to negative reviews from critics, who called it an "overblown, interminable and unfunny update", the film ended its theatrical run on April 21, 2011, with a worldwide gross total of $228 million. The same year, she played opposite Justin Timberlake and Jason Segel in Jake Kasdan's adult comedy Bad Teacher. In the film, Diaz plays an immoral, gold-digging Chicago-area middle school teacher at the fictional John Adams Middle School who curses at her students, drinks heavily, and smokes marijuana. Again, it received mostly negative reviews from critics who felt that "in spite of a promising concept and a charmingly brazen performance from Diaz, Bad Teacher is never as funny as it should be. " A commercial hit however, the R-rated comedy grossed $216 million worldwide. Also in 2011, Diaz was listed among CEOWorld magazine's Top Accomplished Women Entertainers.
In 1992, when Diaz was 19, she was photographed and videotaped topless for an S&M leather fashion lingerie editorial by John Rutter, photographer, and Clifford Wright, as producer for an editorial for Max Magazine Italy. They were never released. Rutter approached Diaz in 2003, ahead of the release of Charlie's Angels: Full Throttle, offering to sell the pictures and video to her for $3. 5m before attempting to sell them to prospective buyers. He stated that he was offering her first right of refusal to them; she saw it as attempted blackmail and sued him. In July 2004, the 30-minute video of the photoshoot, entitled She's No Angel, was released on a Thailand website. Rutter denied releasing it. On July 26, 2005, Rutter was convicted of attempted grand theft, forgery, and perjury. On September 16, 2005, Rutter was sentenced to more than three years in prison right after under mysterious circumstances his photoshop expert and partner was murdered in a break in and the photos and video temporarily disappeared with the hard drive.