Probability of off flavors from the temperature rise depends upon how long the fermentation has been going, the yeast you are using, and how soon you were able to cool the beer. An increase like this in the first couple of days of fermentation is not good unless the strain of yeast used can handle a high fermentation temperature. Most ale yeasts aren't meant for temperatures this high.
A swamp cooler will help control temperature swings.