Not only is it illegal, it is a felony punishable by up to five years in state prison. See M.G.L. ch. 90 section 24B (allowing for a fine of up to $500 or five years in state prison). Note that Attorney Davis is also correct as there are two statutes which cover possession of a fake ID. However, it is within the discretion of the police which crime to charge you with. Obviously the law is aimed at serious criminals, but as a former prosecutor I can tell you I have seen people charged under the felony statute simply for possessing a fake ID they use to get into bars.

DISCLAIMER: This answer is provided in response to a "hypothetical" question and provided for general, informational purposes and does not create an attorney/client relationship. The information presented is not legal advice and may change based additional information and research. It is recommended that you speak to an attorney to discuss your specific legal issues. This is not intended to constitute legal advertising or solicitation, but rather to educate.