Catholic Church forbids all abortions.
No it does not forbid ALL abortions. Neither does it forbid ALL capital punishment. In extreme cases, either may be sanctioned.