Star Trek Into Darkness screenwriter Damon Lindelof has apologized for the scene, which was extremely gratuitous and unnecessary.
He said, “I copped to the fact that we should have done a better job of not being gratuitous in our representation of a barely clothed actress. We also had Kirk shirtless in underpants in both movies. Do not want to make light of something that some construe as misogynistic. What I’m saying is I hear you, I take responsibility and will be more mindful in the future.”
The scene in question (gratuitous Alice Eve in Star Trek Into Darkness photo):