It only takes five days on average for attackers to exploit a vulnerability, according to a new report.