Legitimate defense can be not only a right but a grave duty for someone responsible for another's life. Preserving the common good requires rendering the unjust aggressor unable to inflict harm. To this end, those holding legitimate authority have the right to repel by armed force aggressors against the civil community entrusted to their charge (St. Thomas Aquinas, SThSumma Theologiae (St. Thomas Aquinas) II-II, 64, 7, corp. art.).
CCC 2269
Capital Punishment
The State's effort to contain the spread of behaviors injurious to human rights and the fundamental rules of civil coexistence corresponds to the requirement of watching over the common good. Legitimate public authority has the right and duty to inflict penalties commensurate with the gravity of the crime. the primary scope of the penalty is to redress the disorder caused by the offense. When his punishment is voluntarily accepted by the offender, it takes on the value of expiation. Moreover, punishment, in addition to preserving public order and the safety of persons, has a medicinal scope: as far as possible it should contribute to the correction of the offender (Cf. Lk 23:40-43).
Recourse to the death penalty on the part of legitimate authority, following a fair trial, was long considered an appropriate response to the gravity of certain crimes and an acceptable, albeit extreme, means of safeguarding the common good.
Today, however, there is an increasing awareness that the dignity of the person is not lost even after the commission of very serious crimes. In addition, a new understanding has emerged of the significance of penal sanctions imposed by the state. Lastly, more effective systems of detention have been developed, which ensure the due protection of citizens but, at the same time, do not definitively deprive the guilty of the possibility of redemption.
Consequently, the Church teaches, in the light of the Gospel, that “the death penalty is inadmissible because it is an attack on the inviolability and dignity of the person” (Francis, Address to Participants in the Meeting organized by the Pontifical Council for the Promotion of the New Evangelization, 11 October 2017) and she works with determination for its abolition worldwide.
Intentional homicide
The fifth commandment forbids direct and intentional killing as gravely sinful. the murderer and those who cooperate voluntarily in murder commit a sin that cries out to heaven for vengeance (Cf. Gen 4:10).
Infanticide (Cf. GSGaudium et spes 51 # 3), fratricide, parricide, and the murder of a spouse are especially grave crimes by reason of the natural bonds which they break. Concern for eugenics or public health cannot justify any murder, even if commanded by public authority.
The fifth commandment forbids doing anything with the intention of indirectly bringing about a person's death. the moral law prohibits exposing someone to mortal danger without grave reason, as well as refusing assistance to a person in danger.
The acceptance by human society of murderous famines, without efforts to remedy them, is a scandalous injustice and a grave offense. Those whose usurious and avaricious dealings lead to the hunger and death of their brethren in the human family indirectly commit homicide, which is imputable to them (Cf. Am 8:4-10).
Unintentional killing is not morally imputable. But one is not exonerated from grave offense if, without proportionate reasons, he has acted in a way that brings about someone's death, even without the intention to do so.
Abortion
Human life must be respected and protected absolutely from the moment of conception.
From the first moment of his existence, a human being must be recognized as having the rights of a person - among which is the inviolable right of every innocent being to life (Cf. CDFCongregation for the Doctrine of the Faith, Donum vitae I, 1).
Before I formed you in the womb I knew you, and before you were born I consecrated you (Jer 1:5; cf. Job 10:8-12; Ps 22:10-11).
My frame was not hidden from you, when I was being made in secret, intricately wrought in the depths of the earth (Ps 139:15).
Since the first century the Church has affirmed the moral evil of every procured abortion.
This teaching has not changed and remains unchangeable.
Direct abortion, that is to say, abortion willed either as an end or a means, is gravely contrary to the moral law:
You shall not kill the embryo by abortion and shall not cause the newborn to perish (Didache 2, 2: SChSources Chrétiennes 248, 148; cf. Ep. Barnabae 19, 5: PGPatrologia Graeca (J. P. Migne) 2, 777; Ad Diognetum 5, 6: PGPatrologia Graeca (J. P. Migne) 2, 1173; Tertullian, Apol. 9: PLPatrologia Latina (J. P. Migne) 1, 319-320).
God, the Lord of life, has entrusted to men the noble mission of safeguarding life, and men must carry it out in a manner worthy of themselves.
Life must be protected with the utmost care from the moment of conception: abortion and infanticide are abominable crimes (GSGaudium et spes 51 # 3).
Formal cooperation in an abortion constitutes a grave offense.
The Church attaches the canonical penalty of excommunication to this crime against human life.
"A person who procures a completed abortion incurs excommunication latae sententiae," (CICCodex Iuris Canonici (Code of Canon Law), can. 1398) "by the very commission of the offense," (CICCodex Iuris Canonici (Code of Canon Law), can. 1314) and subject to the conditions provided by Canon Law (Cf. CICCodex Iuris Canonici (Code of Canon Law), cann. 1323-1324).
The Church does not thereby intend to restrict the scope of mercy.
Rather, she makes clear the gravity of the crime committed, the irreparable harm done to the innocent who is put to death, as well as to the parents and the whole of society.
The inalienable right to life of every innocent human individual is a constitutive element of a civil society and its legislation:
"The inalienable rights of the person must be recognized and respected by civil society and the political authority.
These human rights depend neither on single individuals nor on parents; nor do they represent a concession made by society and the state; they belong to human nature and are inherent in the person by virtue of the creative act from which the person took his origin.
Among such fundamental rights one should mention in this regard every human being's right to life and physical integrity from the moment of conception until death." (CDFCongregation for the Doctrine of the Faith, Donum vitae III.)
"The moment a positive law deprives a category of human beings of the protection which civil legislation ought to accord them, the state is denying the equality of all before the law.
When the state does not place its power at the service of the rights of each citizen, and in particular of the more vulnerable, the very foundations of a state based on law are undermined....
As a consequence of the respect and protection which must be ensured for the unborn child from the moment of conception, the law must provide appropriate penal sanctions for every deliberate violation of the child's rights." (CDFCongregation for the Doctrine of the Faith, Donum vitae III.)