Mr Cameron, who is due to chair an emergency Cobra committee meeting later, said the murder of an innocent aid worker was "despicable and appalling".
"It is an act of pure evil. My heart goes out to the family of David Haines who have shown extraordinary courage and fortitude throughout this ordeal.
"We will do everything in our power to hunt down these murderers and ensure they face justice, however long it takes," the prime minister added.
'Grief and resolve'The Foreign Office is working to verify the video, which was released on Saturday night. It begins with a clip of Mr Cameron and then features a man who appears to be Mr Haines dressed in orange overalls, kneeling in front of a masked man holding a knife.
The victim says: "My name is David Cawthorne Haines. I would like to declare that I hold you, David Cameron, entirely responsible for my execution."
He says Mr Cameron had entered into a coalition with the US against the Islamic State "just as your predecessor Tony Blair did".
"Unfortunately it is we the British public that in the end will pay the price for our parliament's selfish decisions," he said.
The militant, who appears to have a British accent, is then recorded as saying: "This British man has to the pay the price for your promise, Cameron, to arm the Peshmerga against the Islamic State."