The home side led 1-0 at the interval courtesy of a deflected effort from Antoine Griezmann.
Ghilas added his second for Cordoba late on, but the scoring ended at 4-2.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
ATLETICO: Moya; Juanfran, Godin, Miranda, Siqueira; Gabi, Suarez, Koke; Turan, Mandzukic, Griezmann
CORDOBA: Carlos; Pantic, I.Lopez, Bouzon, Pinillos; Lopez Garai, Luso; Cartabia, Fidel; Ghilas, Xisco