In a previous post I mentioned that Augustine of Hippo developed a just war theory. Here is a summary of his just war theory. This information is drawn from dogmadoctrineblog.org.
A “just reason for going to war may be defending the innocent from attacks, the punishment of a perceived evil, and the recovery of kidnapped persons or stolen property.”
I believe that the country of Ukraine fits each of those categories.