The consumer price index (CPI) in Canada rose 4.0 percent year on year in August, according to data from Statistics Canada on Tuesday.