The movie was originally about the unsuccessful decade-long manhunt for Osama bin Laden. The screenplay was completely re-written after bin Laden was killed.
James Gandolfini, who portrays former CIA head Leon Panetta, sent a note to Panetta before the film came out: "I'm very sorry about everything. I apologize. You're like my father, so you'll find something to be angry about, but please let me know." For months, silence. Then, as the film was in the middle of awards season in early January, screenwriter Mark Boal told Gandolfini, "Leon Panetta would like your phone number because he doesn't know how to get in touch with you." The actor was surprised. "He's the head of the CIA! He can't find me? Come on, really?!"