Let 𝒞C be a category with an involution ∗. Suppose that φ:X→Xφ:X→X is a morphism and (φ1,Z,φ2)(φ1,Z,φ2) is an (epic, monic) factorization of φφ through ZZ, then φφ is core invertible if and only if (φ∗)2φ1(φ∗)2φ1 and φ2φ1φ2φ1 are both left invertible if and only if ((φ∗)2φ1,Z,φ2)((φ∗)2φ1,Z,φ2), (φ∗2,Z,φ∗1φ∗φ)(φ∗2,Z,φ∗1φ∗φ) and (φ∗φ∗2,Z,φ∗1φ)(φ∗φ∗2,Z,φ∗1φ) are all essentially unique (epic, monic) factorizations of (φ∗)2φ(φ∗)2φ through ZZ. We also give the corresponding result about dual core inverse. In addition, we give some characterizations about the coexistence of core inverse and dual core inverse of an RR-morphism in the category of RR-modules of a given ring RR.