Utilising encryption in CBC mode must always be accompanied by a MAC, or it is vulnerable to several attacks.
An example bitflipping attack which exploits this was recently written here:
https://github.com/technion/matasano_challenge/blob/master/set2/chal16/chal16.rb