Controversial advertisements have injected race into the Democratic race for governor in the closing weeks of the primary campaign.