In a large pot, heat olive oil over medium heat.
Sauté onion and garlic until fragrant, about 3 minutes.
Add carrots and celery; cook for another 5 minutes.
Stir in zucchini, green beans, diced tomatoes, and cannellini beans.
Season with oregano, basil, salt, and pepper.
Pour in vegetable broth and bring to a boil.
Reduce heat and simmer for 15 minutes.
Add pasta and cook until tender, about 10 minutes.
Stir in spinach and cook for 2 more minutes until wilted.
Serve hot.