CVE-2014-3230
Description
LWP::Protocol::https 6.04-6.06 disables SSL certificate verification when HTTPS_CA_DIR or HTTPS_CA_FILE env vars are set, allowing MITM attacks.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
LWP::Protocol::https 6.04-6.06 disables SSL certificate verification when HTTPS_CA_DIR or HTTPS_CA_FILE env vars are set, allowing MITM attacks.
Vulnerability
The LWP::Protocol::https module (part of libwww-perl) versions 6.04 through 6.06, when using IO::Socket::SSL as the SSL socket class, mishandles the HTTPS_CA_DIR and HTTPS_CA_FILE environment variables. Instead of only disabling hostname verification (as intended for compatibility with Crypt::SSLeay), the code sets SSL_verify_mode to 0, completely disabling server certificate validation [1][3]. This affects all applications using LWP::UserAgent with HTTPS and these environment variables set.
Exploitation
An attacker with network access (e.g., man-in-the-middle position) can exploit this by intercepting HTTPS connections. No authentication is required; the attacker only needs to set the HTTPS_CA_DIR or HTTPS_CA_FILE environment variable to any value (or the victim's environment already has it set). The victim's application then accepts any SSL certificate presented by the attacker, including self-signed or invalid certificates [3][4].
Impact
Successful exploitation allows the attacker to decrypt, read, and modify HTTPS traffic between the victim and legitimate servers. This leads to disclosure of sensitive data (e.g., credentials, session tokens) and potential injection of malicious content. The attacker gains the ability to impersonate any HTTPS server to the victim, with no certificate validation.
Mitigation
The fix was proposed in pull request #14 [2] and released in LWP::Protocol::https version 6.07 (2014-06-10). Users should upgrade to version 6.07 or later. As a workaround, avoid setting HTTPS_CA_DIR or HTTPS_CA_FILE environment variables when using IO::Socket::SSL, or switch to Crypt::SSLeay as the SSL backend. The vulnerability is not listed in CISA KEV as of 2025.
- security - Re: Debian Bug#746579: libwww-perl: HTTPS_CA_DIR or HTTPS_CA_FILE disables peer certificate verification for IO::Socket::SSL
- CVE-2014-3230 - don't disable verification if only hostnames should not ... by noxxi · Pull Request #14 · libwww-perl/LWP-Protocol-https
- security - Debian Bug#746579: libwww-perl: HTTPS_CA_DIR or HTTPS_CA_FILE disables peer certificate verification for IO::Socket::SSL
- security - Re: Debian Bug#746579: libwww-perl: HTTPS_CA_DIR or HTTPS_CA_FILE disables peer certificate verification for IO::Socket::SSL
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
3- Range: >=6.04, <=6.06
- libwww-perl/LWP::Protocol::httpsv5Range: 6.04 through 6.06
Patches
1bcc46ce2dab5Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
5- www.openwall.com/lists/oss-security/2014/05/02/8mitrex_refsource_MISC
- www.openwall.com/lists/oss-security/2014/05/04/1mitrex_refsource_MISC
- www.openwall.com/lists/oss-security/2014/05/06/8mitrex_refsource_MISC
- bugs.debian.org/cgi-bin/bugreport.cgimitrex_refsource_MISC
- github.com/libwww-perl/lwp-protocol-https/pull/14mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.