Carbonaceous chondrites record the action of water at some point of their petrological history. These meteorites are usually connected to low albedo asteroid, which present visible/near-IR absorption explained by iron related absorption within phyllosilicates and oxides. In order to obtain quantitative insight into the mineralogy of iron-bearing phases, we have measured X-ray absorption near-edge spectroscopy at the iron K-edge of matrix from carbonaceous chondrites. This method enables to constrain the redox state and environment of iron in these meteorites. For this study, we selected seven CM chondrites and the CI Orgueil, expected to span a range of aqueous alteration degrees. Our analysis of the pre-edge features show that the redox state of Orgueil (CI) is dominated by octahedral Fe and that the Fe3+/(Fe3++Fe2+) atomic ratio is above 80%. Full-inversion of the spectra suggests that the iron budget is dominated by iron oxides, with additional contributions from phyllosilicate. In the case of the CM, the iron speciation appears different that in the case of Orgueil. Cronstedtite is identified from the inversion of the spectra, and suggested by the presence of significant amount of tetrahedral Fe3+. Within the CM chondrites, a trend of aqueous alteration appears presents, and which is roughly correlated to the scheme defined by Rubin et al. (2007). This trend is characterized by an increase in the amount of iron oxides. Two shock metamorphosed CM are present in our dataset (PCA 91008, WIS 91600). If WIS 91600 does not appear distinguishable, from the CM trend, in the case of PCA 91008, shock metamorphism did impact the pre-edge intensity and an increased amount of anhydrous silicates is found. Although the matrix was dehydrated, significant amount of Fe3+ is still present, providing a memory of the aqueous alteration.