In a large pan, mix the tomato sauce with the vegetable stock. Stir in the carrot and bring to the boil, then simmer gently for 5 minutes.
Add the pasta to the soup and cook for 8 minutes. Five minutes before the end of cooking, add the cabbage and cannellini beans. Stir the pesto into the soup to serve.