We present ISO-SWS spectroscopy of eight strong infrared sources with large extinction through the diffuse interstellar medium. These are five late-type Wolf-Rayet stars, the blue hypergiant Cyg OB2 #12 and the Galactic Center Sources 3 and 4. The spectra show a number of absorption features that can be ascribed to interstellar dust and gas. Features at 3.0, 3.4, 4.66 and 5.95 mu m were already known from ground and airborne observations, while features at 4.27 and 6.21 mu m are for the first time observed by ISO. We ascribe the 3.0, 4.27 and 4.66 mu m features to H(2)O ice, CO(2) ice and gaseous CO, respectively, located in dense clouds along four lines-of-sight in our study. Based on an excellent correspondence with the well-known emissio...