It is not capitalism that is a problem here. As usual people are to blame. They can twist and taint every existing system: monarchy, communism, capitalism, democracy.
It doesn't matter if wrong people are in power. For example - if we are talking about free market economy them China illustrates this system better than current market situation in USA.
But it is usually an extremely small percentage of society. Consider...
You have a small group of people living off the land, with no formal government. They are probably family, or easily could be because of their internal group relationships.
When the group grows larger enough through having children, somebody in the group becomes a thief. Sooner or later he is caught and punished.
The thief becomes smarter, and gets together with other thieves and forms a "government." This is a government of thieves - strength in numbers.
The group of honest people need to form a government of their own to thwart the thieves. When they do, they start to realize the strength in government, but they don't see the flaw - that thieves can wiggle their way into the government and use it to enslave the whole group.
Common law is the law of the group while it still was small. Civil law is the law of the group when it becomes large and forms a government. In America, the people never gave themselves over to the authority of civil law. Not one living person is mentioned in the codes and statues.
The sin of the people is that they forgot that they still have common law that can override civil law. In America, this common law is built right into the formation of the Constitution, especially in Amendments 6, 7, 9, and 10. But it has its foundation in the Preamble to the Constitution.
Before civil law overruns everything, people who have common law as their foundation, need to adjust bad civil law, or eliminate it. Why? If they don't, they will become slaves to the people who run civil law.
Capitalism is an outgrowth of civil law.