CVE-2024-45321
Description
The App::cpanminus package through 1.7047 for Perl downloads code via insecure HTTP, enabling code execution for network attackers.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
App::cpanminus through 1.7047 downloads Perl code via insecure HTTP, allowing network attackers to execute arbitrary code via a man-in-the-middle attack.
Vulnerability
App::cpanminus (cpanm) through version 1.7047, a lightweight Perl module installer, downloads code and metadata from CPAN using plain HTTP by default. This constitutes CWE-494: Download of Code Without Integrity Check, as no HTTPS verification is enforced. The affected versions are all releases prior to any patch that enforces HTTPS or fails securely when SSL support is absent [1][2].
Exploitation
An attacker with network position between the cpanm client and CPAN mirrors can intercept HTTP traffic and replace legitimate Perl modules or metadata with malicious content. No authentication or user interaction beyond running an unmodified cpanm command is required. The attack is feasible because cpanm does not verify SSL certificates or enforce HTTPS by default, and if SSL support is missing in the transport backend, it may silently fall back to insecure HTTP [2].
Impact
Successful exploitation allows arbitrary code execution on the victim's system with the privileges of the user running cpanm. This leads to full compromise of the Perl module installation process, potentially enabling further privilege escalation or lateral movement within the affected environment [2].
Mitigation
As of 2024-08-27, no official upstream patch is available. Users can mitigate by (1) configuring cpanm to use an HTTPS mirror via the --from option (e.g., --from https://www.cpan.org), (2) editing the cpanm executable to replace http:// URLs with https:// using a one-liner, or (3) switching to an alternative client like CPAN.pm 2.35+ or App::cpm which use HTTPS by default [2]. The pull request #674 adds SSL error handling but has not been merged upstream [1].
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
11(expand)+ 1 more
- (no CPE)
- (no CPE)range: <=1.7047
- osv-coords9 versionspkg:rpm/almalinux/perl-App-cpanminuspkg:rpm/almalinux/perl-CPAN-DistnameInfopkg:rpm/almalinux/perl-CPAN-Meta-Checkpkg:rpm/almalinux/perl-File-pushdpkg:rpm/almalinux/perl-Module-CPANfilepkg:rpm/almalinux/perl-Parse-PMFilepkg:rpm/almalinux/perl-String-ShellQuotepkg:rpm/opensuse/perl-App-cpanminus&distro=openSUSE%20Tumbleweedpkg:rpm/rocky-linux/perl-App-cpanminus?distro=rocky-linux-9-x86-64&epoch=0
< 1.7044-14.1.el9_5+ 8 more
- (no CPE)range: < 1.7044-14.1.el9_5
- (no CPE)range: < 0.12-13.module_el8.6.0+2810+886f1911
- (no CPE)range: < 0.014-6.module_el8.10.0+3924+8d272be4
- (no CPE)range: < 1.014-6.module_el8.6.0+2851+b32f1bac
- (no CPE)range: < 1.1002-7.module_el8.6.0+2792+592c5e39
- (no CPE)range: < 0.41-7.module_el8.6.0+2851+b32f1bac
- (no CPE)range: < 1.04-24.module_el8.6.0+2810+886f1911
- (no CPE)range: < 1.7047-2.1
- (no CPE)range: < 0:1.7044-14.1.el9_5
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3News mentions
0No linked articles in our index yet.