Step 1: Understand the median vector.
Since \(CD\) is the median from vertex \(C\), point \(D\) is the midpoint of \(AB\).
Therefore,
\[
\overrightarrow{CD}
=
\frac{1}{2}\left(\overrightarrow{CA}+\overrightarrow{CB}\right)
\]
Step 2: Dot multiply with \(\overrightarrow{CA}\).
We need to find
\[
\overrightarrow{CA}\cdot \overrightarrow{CD}
\]
Substituting the value of \(\overrightarrow{CD}\),
\[
\overrightarrow{CA}\cdot \overrightarrow{CD}
=
\overrightarrow{CA}\cdot
\frac{1}{2}\left(\overrightarrow{CA}+\overrightarrow{CB}\right)
\]
\[
=
\frac{1}{2}\left(\overrightarrow{CA}\cdot \overrightarrow{CA}
+
\overrightarrow{CA}\cdot \overrightarrow{CB}\right)
\]
Step 3: Use the magnitude of \(\overrightarrow{CA}\).
Given,
\[
|\overrightarrow{CA}|=b
\]
So,
\[
\overrightarrow{CA}\cdot \overrightarrow{CA}=|\overrightarrow{CA}|^2=b^2
\]
Thus,
\[
\overrightarrow{CA}\cdot \overrightarrow{CD}
=
\frac{1}{2}\left(b^2+\overrightarrow{CA}\cdot \overrightarrow{CB}\right)
\]
Step 4: Find \(\overrightarrow{CA}\cdot \overrightarrow{CB}\).
We know,
\[
\overrightarrow{AB}
=
\overrightarrow{CB}-\overrightarrow{CA}
\]
Taking magnitudes,
\[
|\overrightarrow{AB}|^2
=
|\overrightarrow{CB}-\overrightarrow{CA}|^2
\]
Since
\[
|\overrightarrow{AB}|=c,
\]
we get
\[
c^2=a^2+b^2-2\overrightarrow{CA}\cdot \overrightarrow{CB}
\]
Step 5: Solve for \(\overrightarrow{CA}\cdot \overrightarrow{CB}\).
From
\[
c^2=a^2+b^2-2\overrightarrow{CA}\cdot \overrightarrow{CB},
\]
we get
\[
2\overrightarrow{CA}\cdot \overrightarrow{CB}=a^2+b^2-c^2
\]
\[
\overrightarrow{CA}\cdot \overrightarrow{CB}
=
\frac{a^2+b^2-c^2}{2}
\]
Step 6: Substitute in the required expression.
\[
\overrightarrow{CA}\cdot \overrightarrow{CD}
=
\frac{1}{2}
\left[
b^2+\frac{a^2+b^2-c^2}{2}
\right]
\]
\[
=
\frac{1}{2}
\left[
\frac{2b^2+a^2+b^2-c^2}{2}
\right]
\]
\[
=
\frac{a^2+3b^2-c^2}{4}
\]
Step 7: Final conclusion.
Therefore,
\[
\boxed{\frac{1}{4}(a^2+3b^2-c^2)}
\]