Let $p$ be a prime $\geq 7$.
$p^2-1=(p+1)(p-1)$. Both $(p-1)$ and $(p+1)$ are divisible by $2$ and they are two consecutive even numbers. So, either one of the two must be divisible by $4$. So, $8 \mid (p^2-1)$. Again, by Euler's theorem, $p^2 \equiv 1 \pmod3$. Thereby, $24 \mid (p^2-1)$, for all prime $p \geq 7$.
To prove that $24$ is the greatest common divisor:
For $p=7$, $p^2-1=48$. So, the only other possible $\gcd$ is going to be $48$. But for $p=11$, $p^2-1=120$ and $48 \nmid 120$.
Therefore $\gcd\{p^2-1: p $ is a prime $ \geq 7 \}=24$.
Is this correct? Kindly verify.