Pope Pius XI
Quadragesimo Anno §98
Quadragesimo Anno: On Reconstruction of the Social Order
98 There remains to Us, after again calling to judgment the economic system now in force and its most bitter accuser, Socialism, and passing explicit and just sentence upon them, to search out more thoroughly the root of these many evils and to point out that the first and most necessary remedy is a reform of morals.
Source: Quadragesimo Anno (Vatican.va)