OpenConnect Vulnerability: Man-in-the-Middle Attack Risk Due to X509_check_ Function Mismanagement

openconnect Updated 02 Oct 2025

Summary

23/04/2020
N/A
No i
Unrated
Not published

DEBIAN-CVE-2020-12105: OpenConnect through 8.08 mishandles negative return values from X509_check_ function calls, which might assist attackers in performing man-in-the-middle attacks. Affects openconnect versions 8.10-2 – 9.12-3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenConnect is an open-source VPN client that enables secure connections to VPN servers. It is widely used for its compatibility with various VPN protocols and its ability to provide secure internet access. However, versions of OpenConnect up to 8.08 are vulnerable to a specific issue that can be exploited by attackers, potentially compromising the security of the VPN connection.

Vulnerability Detail

The vulnerability identified as CVE-2020-12105 arises from OpenConnect mishandling negative return values from X509_check_ function calls. This flaw can allow attackers to perform man-in-the-middle attacks, intercepting and manipulating the data transmitted between the client and the VPN server. The issue originates from improper error handling in the code, which fails to adequately address negative return values, leading to potential security breaches.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using OpenConnect versions up to 8.08 until they can update to a patched version. Additionally, consider using alternative VPN clients that do not exhibit this vulnerability.

Conclusion

The OpenConnect vulnerability CVE-2020-12105 poses a significant risk by allowing potential man-in-the-middle attacks due to improper handling of function return values. Users are strongly advised to update to a patched version to ensure their VPN connections remain secure.

See every vulnerability recorded for openconnect →

Share this vulnerability

FAQ

CVE-2020-12105 is a vulnerability in OpenConnect that allows for potential man-in-the-middle attacks due to improper handling of return values from X509_check_ function calls.

You can check your version of OpenConnect by running the command 'openconnect --version' in your terminal. If it is 8.08 or earlier, it is vulnerable.

Failing to address this vulnerability could allow attackers to intercept and manipulate your VPN traffic, compromising sensitive data and privacy.

Yes, you can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just a manifest file.

More information can be found in the official CVE database or by visiting the Debian security advisory related to CVE-2020-12105.

Related vulnerabilities

Recent vulnerabilities recorded for openconnect.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback