A backdoor is a deliberate remote-access vulnerability that the creator intended to use for illegitimate access.
The same code, but intentional, is a bug and vulnerability, but not a backdoor. Same security implications, but a big difference wrt. culpability, appropriate punishment, and expectations of future behavior.