Heat olive oil in a large pot over medium heat.
Add chopped onion, garlic, carrots, and celery; sauté until softened.
Stir in the diced tomatoes and cook for a few minutes.
Pour in the broth and bring to a boil.
Add the cannellini and kidney beans.
Add the pasta and cook according to package instructions.
Season with salt and pepper to taste.
Reduce heat and simmer for 10 minutes.
Adjust the consistency with more broth if needed.
Serve hot, garnished with fresh basil.