In a Wheatstone bridge, for null deflection in the galvanometer, the following condition must be satisfied:
\[
\frac{R_{AB}}{R_{BC}} = \frac{R_{DA}}{R_{CD}}
\]
where:
- \( R_{AB} = 20 \, \Omega \),
- \( R_{BC} = 10 \, \Omega \),
- \( R_{DA} = 12 \, \Omega \),
- \( R_{CD} \) is the unknown resistance we need to find.
Substitute the known values into the equation:
\[
\frac{20}{10} = \frac{12}{R_{CD}}
\]
Simplifying the equation:
\[
2 = \frac{12}{R_{CD}}
\]
Solving for \( R_{CD} \):
\[
R_{CD} = \frac{12}{2} = 6 \, \Omega
\]
Thus, the resistance in the CD arm should be \( 6 \, \Omega \).
\[
\boxed{6 \, \Omega}
\]