#VU75604 Improper Certificate Validation in CPAN


Vulnerability identifier: #VU75604

Vulnerability risk: Medium

CVSSv3.1: 5.9 [CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-31484

CWE-ID: CWE-295

Exploitation vector: Local network

Exploit availability: No

Vulnerable software:
CPAN
Universal components / Libraries / Programming Languages & Components

Vendor: CPAN

Description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to missing verification of the TLS certificate when downloading distributions. A remote attacker can perform MitM attack and trick the application into downloading a malicious file.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

CPAN: 1.80 - 2.34


External links
http://github.com/andk/cpanpm/pull/175
http://www.openwall.com/lists/oss-security/2023/04/18/14
http://metacpan.org/dist/CPAN/changes
http://blog.hackeriet.no/perl-http-tiny-insecure-tls-default-affects-cpan-modules/
http://www.openwall.com/lists/oss-security/2023/04/29/1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the local network (LAN).

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability