Pope John XXIII
Mater et Magistra §34
Mater et Magistra: On Christianity and Social Progress
34 Pope Pius XI further emphasized the fundamental opposition between Communism and Christianity, and made it clear that no Catholic could subscribe even to moderate Socialism. The reason is that Socialism is founded on a doctrine of human society which is bounded by time and takes no account of any objective other than that of material well-being. Since, therefore, it proposes a form of social organization which aims solely at production, it places too severe a restraint on human liberty, at the same time flouting the true notion of social authority.
Source: Mater et Magistra (Vatican.va)