Depends on what you mean by "legally speaking". The citizenship oath does require allegiance to the United States, but unlike in some countries, there is no law requiring naturalized citizens to renounce other citizenships as a condition of naturalization. So both practically speaking and legally speaking, dual citizenship is permitted.