In this paper, we assign the newly reported state X(3842) to be a D-wave ˉcc meson, and study its mass and decay constant with QCD sum rules by considering the contributions of vacuum condensates up to dimension-6 in the operator product expansion. The predicted mass MX(3842)=(3.844+0.0675−0.0823±0.020) GeV is in agreement with the experimental data MX(3842)=(3842.71±0.16±0.12) MeV from the LHCb collaboration. This result supports assigning X(3842) as the 13D3 charmonium meson. In this case, its predicted strong decay width with the 3P0 decay model is compatible with the experimental data.