Socat shipped a hard-coded 1024-bit DH "prime" that was not prime
Socat 1.7.3.0 and 2.0.0-b8 used a hard-coded 1024-bit Diffie-Hellman modulus for its OpenSSL mode that turned out to be composite. Santiago Zanella-Béguelin (Microsoft Vulnerability Research) reported it; socat 1.7.3.1 and 2.0.0-b9 replaced it with a freshly generated 2048-bit prime.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
With a composite modulus, the group's structure splits along the factors, so discrete logs can be far easier than in a prime field of the same size, and whoever knows the factorization holds a potential backdoor. The socat advisory said the effective strength was weaker than intended and that a backdoor could not be ruled out; how the value was originally chosen was never explained. The CVE (CVE-2016-2217) says the flaw makes it easier for remote attackers to obtain the shared secret.
The case is usually cited with the 2016 work on trapdoored DH parameters (hidden SNFS primes, deliberately composite moduli) as evidence that hard-coded DH parameters deserve scrutiny. It is a product bug, not a weakness in DH.
Sources
- announcementSocat security advisory 7 (oss-security, 1 Feb 2016)oss-security, openwall.com
- announcementSocat security advisory 7 (project page)socat, dest-unreach.org
- cveCVE-2016-2217MITRE, cve.org