It may well be considered a security flaw for any country to allow foreign nationals to purchase any real estate.
Incidentally, the practice also drives up prices for citizens, leading to housing crises.
But a policy that allows anyone with a foreign allegiance to set up shop next to a military base is courting disaster.