Two different samples of the Ce-Ru-Ge ternary system of nearly the same composition, Ce3Ru4Ge13 and CeRuGe3, have been studied, as well as the compound Y3Co4Ge13, which contained a nonmagnetic rare earth as the reference material. Combined x-ray and neutron-diffraction studies of CeRuGe3 and an x-ray study of Ce3Ru4Ge13 show that we are dealing with internally distorted (probably 3D modulated) crystals with variable composition, i.e., Ce4-xRu4Ge12+x and ranging from at least x=0 (1:1:3) to x=1 (3:4:13). We have measured the de magnetic susceptibility, the ac susceptibility, the zero-magnetic-field heat capacity, the magnetic heat capacity in fields ranging from 0 to 9.85 T, and the electrical resistivity. The paramagnetic susceptibility and x-ray crystallography data indicate that the Ce4-xRu4Ge12+x alloys cotain both trivalent cerium and tetravalent cerium in a 1 to 3 ratio. As far as we are aware, this is the first time such a valence situation has been reported for a cerium compound. In addition, the heat-capacity results show that Ce4-xRu4Ge12+x is. heavy fermion with gamma varying from 428 to 592 mJ/mol Ce3+K2 at the 1:1:3 and 3:4:13 compositions, respectively. Zero-field and magnetic-field heat capacity, and ac magnetic susceptibility data suggest that CeRuGe3 is a spin-glass system below similar to 5 K, which is consistent with the specific features of its crystal structure. Y3Co4Ge13 displays normal metallic behavior.