A Microsoft researcher has discovered what some believe could be an intentional backdoor in the popular Socan networking utility.
The vulnerability, whose existence was brought to light earlier this week, affects Socat 1.7.3.0 and 2.0.0-b8. The issue has been addressed with the release of versions 1.7.3.1 and 2.0.0-b9.
Socat can be used to transfer data through an encrypted channel to protect it from traffic interception attempts. According to Socat developer Gerhard Rieger, if the Diffie-Hellman (DH) key exchange is used for the secure channel, an attacker could eavesdrop on communications because the 1024-bit DH p parameter is not prime (i.e. a number that can only be divided by 1 and itself).
“The effective cryptographic strength of a key exchange using these parameters was weaker than the one one could get by using a prime p. Moreover, since there is no indication of how these parameters were chosen, the existence of a trapdoor that makes possible for an eavesdropper to recover the shared secret from a key exchange that uses them cannot be ruled out,” Rieger explained.
Experts have analyzed the vulnerability and determined that the non-prime parameter was introduced by a researcher named Zhigang Wang in January 2015 with a patch designed to address an issue where Socat did not work in FIPS mode because a 1024-bit DH prime was required instead of a 512-bit prime.
Some experts believe this could be an intentional backdoor considering that it shouldn’t have been difficult to verify if the parameter was a prime.
A new parameter that is 2048 bits long has been generated for the new versions released by Socat developers. As a workaround, users can disable DH ciphers.
The decision to use a 2048-bit prime is probably wise considering that the authors of the attack method dubbed “Logjam” estimated that it would cost roughly $100 million to crack a 1024-bit prime, which is well within the financial resources of an intelligence agency.
Related: Nmap 7 Brings Faster Scans, Other Improvements
Related: Backdoor in Juniper Firewalls Enables Remote Access

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- Industry Reactions to Hive Ransomware Takedown: Feedback Friday
- US Reiterates $10 Million Reward Offer After Disruption of Hive Ransomware
- Hive Ransomware Operation Shut Down by Law Enforcement
- UK Gov Warns of Phishing Attacks Launched by Iranian, Russian Cyberspies
- Dozens of Cybersecurity Companies Announced Layoffs in Past Year
- Security Update for Chrome 109 Patches 6 Vulnerabilities
- New Open Source OT Security Tool Helps Address Impact of Upcoming Microsoft Patch
- Forward Networks Raises $50 Million in Series D Funding
Latest News
- Critical Vulnerability Impacts Over 120 Lexmark Printers
- BIND Updates Patch High-Severity, Remotely Exploitable DoS Flaws
- Industry Reactions to Hive Ransomware Takedown: Feedback Friday
- Microsoft Urges Customers to Patch Exchange Servers
- Iranian APT Leaks Data From Saudi Arabia Government Under New Persona
- US Reiterates $10 Million Reward Offer After Disruption of Hive Ransomware
- Cyberattacks Target Websites of German Airports, Admin
- US Infiltrates Big Ransomware Gang: ‘We Hacked the Hackers’
