According Google, Nexus devices will receive at least three years of security update since its release. The Nexus 5 appeared on November 2013, so we should get the security patches at least until November 2016. After November, Google may continue updating this phone or maybe not, nobody knows.