Pasta is safe for dogs
Plain pasta is fine to feed your dog. It has little nutritional value and is mostly carbohydrates, so it should only be fed to your dog occasionally or it may cause weight gain. Some dogs are intolerant to grains and pasta may cause gastrointestinal issues for them.
It’s best to avoid giving your dog pasta if it’s covered in sauce. Depending on the sauce, there are often ingredients that can be dangerous to dogs. If you’re using butter and garlic, garlic is toxic to dogs and can cause anemia. Butter is salty and high in fat which contributes to obesity and can cause pancreatitis. Tomato sauces are also dangerous since they may be high in salt and they often contain onion or onion powder, along with garlic.