Legacy Code

Colloquially, legacy code is old, bad code written by someone else.

Michael Feathers, in Working Effectively with Legacy Code, defines "legacy code" as code written without tests (that's a paraphrase, not a quote).