Is this illegal?

Usually the terms "tamper" or "alter" are used in statutes concerning vehicle VINs and what is illegal.

That leaves open for interpretation what constitutes tampering or altering.

Replacing a damaged or missing VIN tag on a legally owned vehicle with that same VIN, could be argued is neither.