CVE-2023-31484
perl: CPAN.pm does not verify TLS certificates when downloading distributions over HTTPS
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS.
A flaw was found in Perl's CPAN, which doesn't check TLS certificates when downloading content. This happens due to `verify_SSL` missing when suing the `HTTP::Tiny` library during the connection. This may allow an attacker to inject into the network path and perform a Man-In-The-Middle attack, causing confidentiality or integrity issues.
USN-6112-1 fixed vulnerabilities in Perl. This update provides the corresponding updates for Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 22.10, and Ubuntu 23.04. It was discovered that Perl was not properly verifying TLS certificates when using CPAN together with HTTP::Tiny to download modules over HTTPS. If a remote attacker were able to intercept communications, this flaw could potentially be used to install altered modules.
CVSS Scores
SSVC
- Decision:Track*
Timeline
- 2023-04-28 CVE Reserved
- 2023-04-28 CVE Published
- 2024-08-02 CVE Updated
- 2024-08-02 First Exploit
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-295: Improper Certificate Validation
CAPEC
References (13)
URL | Tag | Source |
---|---|---|
http://www.openwall.com/lists/oss-security/2023/05/03/5 | Mailing List |
|
http://www.openwall.com/lists/oss-security/2023/05/07/2 | Mailing List |
|
https://metacpan.org/dist/CPAN/changes | Release Notes | |
https://security.netapp.com/advisory/ntap-20240621-0007 |
|
URL | Date | SRC |
---|---|---|
https://github.com/andk/cpanpm/pull/175 | 2024-08-02 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Cpanpm Project Search vendor "Cpanpm Project" | Cpanpm Search vendor "Cpanpm Project" for product "Cpanpm" | < 2.35 Search vendor "Cpanpm Project" for product "Cpanpm" and version " < 2.35" | - |
Affected
| ||||||
Perl Search vendor "Perl" | Perl Search vendor "Perl" for product "Perl" | < 5.38.0 Search vendor "Perl" for product "Perl" and version " < 5.38.0" | - |
Affected
|