CVE-2013-2061: Infoleak
According to the upstream security report [1] the following flaw was found in OpenVPN 2.3.0 and earlier:
OpenVPN 2.3.0 and earlier running in UDP mode are subject to chosen ciphertext injection due to a non-constant-time HMAC comparison function. Plaintext recovery may be possible using a padding oracle attack on the CBC mode cipher implementation of the crypto library, optimistically at a rate of about one character per 3 hours. PolarSSL seems vulnerable to such an attack; the vulnerability of OpenSSL has not been verified or tested.
OpenVPN servers are typically configured to silently drop packets with the wrong HMAC. For this reason measuring the processing time of the packets is not trivial without a MITM position. In practice, the attack likely needs some target-specific information to be effective.
The severity of this vulnerability can be considered low. Only if OpenVPN is configured to use a null-cipher, arbitrary plain-text can be injected which can completely open up this attack vector.
A fix has been committed to git [2]; this is corrected in OpenVPN 2.3.1 and later.
[1] https://community.openvpn.net/openvpn/wiki/SecurityAnnouncement-f375aa67cc [2] https://github.com/OpenVPN/openvpn/commit/11d21349a4e7e38a025849479b36ace7c2eec2ee
Other sources
The openvpndecrypt function in crypto.c in OpenVPN 2.3.0 and earlier, when running in UDP mode, allows remote attackers to obtain sensitive information via a timing attack involving an HMAC comparison function that does not run in constant time and a padding oracle attack on the CBC mode cipher.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2013-2061?
CVE-2013-2061 is classified as a high severity vulnerability due to its potential for chosen ciphertext attack.
How do I fix CVE-2013-2061?
To fix CVE-2013-2061, upgrade to OpenVPN version 2.3.1 or later.
What versions of OpenVPN are affected by CVE-2013-2061?
CVE-2013-2061 affects OpenVPN versions 2.3.0 and earlier.
What type of attack does CVE-2013-2061 enable?
CVE-2013-2061 enables chosen ciphertext injection attacks in OpenVPN running in UDP mode.
Is OpenVPN running in TCP mode vulnerable to CVE-2013-2061?
No, OpenVPN running in TCP mode is not affected by CVE-2013-2061.