There is a more down-to-earth definition. A newform $f=\sum_{n=1}^\infty a_n q^n$ of level $N$ and weight $k$ has CM if there is a quadratic imaginary field $K$ such that $a_p=0$ as soon as $p$ is a prime which is inert in $K$. The field $K$ is then unique (if the weight $k \geq 2$), and one says that $f$ has CM by K.
A quick way to see the uniqueness of $K$, as well as other basic properties, is to consider the $\ell$-adic ($\ell$-an auxiliary prime) Galois representation of dimension 2 attached to $f$ constructed by Deligne. If $\rho: G_{\mathbb Q} \rightarrow GL_2(\bar {\bf Q}_\ell)$ is that representation, one has tr $tr \rho (Frob_p) = a_p$$ \rho (Frob_p) = a_p$ (Eichler-Shimura) for all prime $p$ not dividing $N\ell$ (and $\rho$ is unramified at these primes, I should have said first). So for $p$ inert in $K$, tr $tr \rho Frob_p =0$$\rho (Frob_p) =0$, hence we deduce by Chebotarev and a little thought that $tr \rho=0$ on the complement on $G_K$ in $G_{\mathbb Q}$, and then by computing the hermitian product of the character of $\rho$ with itself theory argument, that the restriction of $G_{\mathbb Q}$ to $G_K$ is reducible, hence that by Frobenius reciprocity that $\rho$ is induced from a character of $G_K$. Again some elementary group theory/representation theory tells you that there is a unique subgroup $G'$ of index $2$ in $G_{\mathbb Q}$ such that $\rho_{|G'}$ is reducible, except when the projective image of $\rho$ in $K_4=(\mathbb Z/2)^2$, which is excluded because for $k \geq 2$ the projective image of $\rho$ is infinite. Hence the uniqueness of $K$, and many information gotten in the way on $\rho$. In weight $k=1$, the theory is roughly the same except from the very special modular forms whose projective image of $\rho$ is $K_4$, which have CM by two quadratic imaginary fieldfields $K$ and $K'$, and also by a third field $K''$ with is quadratic real, in the sense that $\rho_{|G_{K''}}$ is also reducible (but then we say that $f$ has RM by $K''$, not CM).