The Consumer Price Index rose 3.4% in July over the past 12 months, cooling slightly from 3.5% in June, the Bureau of Labor Statistics said Wednesday.