This investigation presents an image encryption system and its security analysis, it is based on cellular automata and a substitution box. The joint of these two techniques, allow to encrypt digital images with a high adjacent redundancy and pass different statistical and differential tests and cryptanalytic attacks. The synchronization phenomenon of cellular automata, is sensitive to initial conditions, therefore has been used in Pseudo Random Number Generators (PRNG) and cryptosystems. In this system, the synchronization phenomenon is used to change the coefficients of the pixels, but the process is not equal for each bit, thus the s-box is used to make the system robust and for compliance with the bit independence criterion among others.