The sensitive appetite leads us to desire pleasant things we do not have, e.g., the desire to eat when we are hungry or to warm ourselves when we are cold. These desires are good in themselves; but often they exceed the limits of reason and drive us to covet unjustly what is not ours and belongs to another or is owed to him.
CCC 2539
The tenth commandment forbids greed and the desire to amass earthly goods without limit. It forbids avarice arising from a passion for riches and their attendant power. It also forbids the desire to commit injustice by harming our neighbor in his temporal goods:
When the Law says, "You shall not covet," these words mean that we should banish our desires for whatever does not belong to us. Our thirst for another's goods is immense, infinite, never quenched. Thus it is written: "He who loves money never has money enough." (Roman Catechism, III, 37; cf. Sir 5:8)
It is not a violation of this commandment to desire to obtain things that belong to one's neighbor, provided this is done by just means. Traditional catechesis realistically mentions "those who have a harder struggle against their criminal desires" and so who "must be urged the more to keep this commandment":
... merchants who desire scarcity and rising prices, who cannot bear not to be the only ones buying and selling so that they themselves can sell more dearly and buy more cheaply; those who hope that their peers will be impoverished, in order to realize a profit either by selling to them or buying from them... physicians who wish disease to spread; lawyers who are eager for many important cases and trials (Roman Catechism, III, 37).
The tenth commandment requires that envy be banished from the human heart. When the prophet Nathan wanted to spur King David to repentance, he told him the story about the poor man who had only one ewe lamb that he treated like his own daughter and the rich man who, despite the great number of his flocks, envied the poor man and ended by stealing his lamb (Cf. 2 Sam 12:14). Envy can lead to the worst crimes (Cf. Gen 4:3-7; 1 Kings 21:1-29). "Through the devil's envy death entered the world" (Wis 2:24):
We fight one another, and envy arms us against one another.... If everyone strives to unsettle the Body of Christ, where shall we end up? We are engaged in making Christ's Body a corpse.... We declare ourselves members of one and the same organism, yet we devour one another like beasts (St. John Chrysostom, Hom. in 2 Cor. 27, 3-4 PGPatrologia Graeca (J. P. Migne) 61, 588).
Envy is a capital sin. It refers to the sadness at the sight of another's goods and the immoderate desire to acquire them for oneself, even unjustly. When it wishes grave harm to a neighbor it is a mortal sin:
St. Augustine saw envy as "the diabolical sin." (Cf. St. Augustine, De catechizandis rudibus 4, 8 PLPatrologia Latina (J. P. Migne) 40, 315-316) "From envy are born hatred, detraction, calumny, joy caused by the misfortune of a neighbor, and displeasure caused by his prosperity." (St. Gregory the Great Moralia in Job 31, 45: PLPatrologia Latina (J. P. Migne) 76, 621)
Envy represents a form of sadness and therefore a refusal of charity; the baptized person should struggle against it by exercising good will. Envy often comes from pride; the baptized person should train himself to live in humility:
Would you like to see God glorified by you? Then rejoice in your brother's progress and you will immediately give glory to God. Because his servant could conquer envy by rejoicing in the merits of others, God will be praised (St. John Chrysostom, Hom. in Rom. 71, 5: PGPatrologia Graeca (J. P. Migne) 60, 448).
The economy of law and grace turns men's hearts away from avarice and envy. It initiates them into desire for the Sovereign Good; it instructs them in the desires of the Holy Spirit who satisfies man's heart.
The God of the promises always warned man against seduction by what from the beginning has seemed "good for food... a delight to the eyes... to be desired to make one wise." (Gen 3:6)
The Law entrusted to Israel never sufficed to justify those subject to it; it even became the instrument of "lust." (Cf. Rom 7:7) The gap between wanting and doing points to the conflict between God's Law which is the "law of my mind," and another law "making me captive to the law of sin which dwells in my members." (Rom 7:23; cf. 7:10)
"But now the righteousness of God has been manifested apart from law, although the law and the prophets bear witness to it, the righteousness of God through faith in Jesus Christ for all who believe." (Rom 3:21-22) Henceforth, Christ's faithful "have crucified the flesh with its passions and desires"; they are led by the Spirit and follow the desires of the Spirit (Gal 5:24; cf. Rom 8:14, 27).