Suppose we have $X \sim Be(p_1)$, $Y \sim Be(p_2)$ and $corr(X,Y) = r$.
How does the joint distribution table look like?
For example, if $r = 0$ it is $$ \begin{array}{c|c|c} \cdot & T & F \\ \hline T & p_1p_2 & p_1(1-p_2) \\ \hline F & (1-p_1)p_2 & (1-p_1)(1-p_2) \\ \end{array} $$
Let $R=Cov(X,Y)= r*\sqrt{p_1(1-p_1)}*\sqrt{p_2(1-p_2)}$
Let $0\leqslant a,b,c,d \leqslant 1$ be the respective probabilities of TT, TF, FT and FF.
We need to solve the system:
$a+b=p_1$
$a+c=p_2$
$a+b+c+d=1$
$a=R+p_1p_2$
We get:
$a=R+p_1p_2$
$b=p_1(1-p_2)-R$
$c=p_2(1-p_1)-R$
$d=1+R-p_1-p_2+p_1p_2$
Thanks to @Henry for corrections.