# CVE-2023-31484: Weak cryptography in n/a

> The CPAN.pm library fails to verify TLS certificates during HTTPS downloads, allowing attackers to intercept traffic and potentially inject malicious code.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 28 Apr 2023
- **Updated:** 3 Nov 2025
- **Also known as:** ALSA-2023:6539, ALSA-2024:3094, AZL-37126, BELL-CVE-2023-31484, CLSA-2023-1686586380, CLSA-2023-1686858536, CLSA-2023-1686859226, CLSA-2023-1698312967, CLSA-2025-1759497192, CLSA-2025-1761323893, CLSA-2026-1768223815, CLSA-2026-1768224107, DEBIAN-CVE-2023-31484, ECHO-0985-0297-4ba8, GHSA-5v8j-jfmm-6x86, OESA-2023-1287, OESA-2023-1420, RHSA-2023:6539, RHSA-2024:3094, RHSA-2026:0079, RLSA-2023:6539, RLSA-2024:3094, SUSE-SU-2023:2881-1, SUSE-SU-2023:2882-1, UBUNTU-CVE-2023-31484, USN-6112-1, USN-6112-2

## What is CVE-2023-31484?

CVE-2023-31484 is a high-severity vulnerability in n/a, published on 28 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2023-31484?

It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `perl-CPAN` | AlmaLinux:8 | All versions | 2.18-399.el8 |
| `perl-CPAN` | AlmaLinux:9 | All versions | 2.29-3.el9 |
| `perl-CPAN` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.18-399.el8 |
| `perl-CPAN` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.29-3.el9 |
| `perl` | Red Hat:rhel_els:7 | All versions | 4:5.16.3-299.el7_9.1 |
| `perl-CPAN` | Red Hat:rhel_els:7 | All versions | 0:1.9800-299.el7_9.1 |
| `perl-ExtUtils-CBuilder` | Red Hat:rhel_els:7 | All versions | 1:0.28.2.6-299.el7_9.1 |
| `perl-ExtUtils-Embed` | Red Hat:rhel_els:7 | All versions | 0:1.30-299.el7_9.1 |
| `perl-ExtUtils-Install` | Red Hat:rhel_els:7 | All versions | 0:1.58-299.el7_9.1 |
| `perl-IO-Zlib` | Red Hat:rhel_els:7 | All versions | 1:1.10-299.el7_9.1 |
| `perl-Locale-Maketext-Simple` | Red Hat:rhel_els:7 | All versions | 1:0.21-299.el7_9.1 |
| `perl-Module-CoreList` | Red Hat:rhel_els:7 | All versions | 1:2.76.02-299.el7_9.1 |
| `perl-Module-Loaded` | Red Hat:rhel_els:7 | All versions | 1:0.08-299.el7_9.1 |
| `perl-Object-Accessor` | Red Hat:rhel_els:7 | All versions | 1:0.42-299.el7_9.1 |
| `perl-Package-Constants` | Red Hat:rhel_els:7 | All versions | 1:0.02-299.el7_9.1 |
| `perl-Pod-Escapes` | Red Hat:rhel_els:7 | All versions | 1:1.04-299.el7_9.1 |
| `perl-Time-Piece` | Red Hat:rhel_els:7 | All versions | 0:1.20.1-299.el7_9.1 |
| `perl-core` | Red Hat:rhel_els:7 | All versions | 0:5.16.3-299.el7_9.1 |
| `perl-debuginfo` | Red Hat:rhel_els:7 | All versions | 4:5.16.3-299.el7_9.1 |
| `perl-devel` | Red Hat:rhel_els:7 | All versions | 4:5.16.3-299.el7_9.1 |
| `perl-libs` | Red Hat:rhel_els:7 | All versions | 4:5.16.3-299.el7_9.1 |
| `perl-macros` | Red Hat:rhel_els:7 | All versions | 4:5.16.3-299.el7_9.1 |
| `perl-tests` | Red Hat:rhel_els:7 | All versions | 4:5.16.3-299.el7_9.1 |
| `perl-CPAN` | Rocky Linux:8 | All versions | 0:2.18-399.el8 |
| `perl-CPAN` | Rocky Linux:9 | All versions | 0:2.29-3.el9 |
| `perl` | SUSE:Enterprise Storage 7.1 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Micro 5.1 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Micro 5.2 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Micro 5.3 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Micro 5.4 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Module for Package Hub 15 SP4 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Module for Package Hub 15 SP5 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 5.26.1-150300.17.14.1 |
| `perl` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 5.18.2-12.26.1 |

Products: Cpanpm Project Cpanpm, Perl Perl.

## How do I fix CVE-2023-31484?

Upgrade to a fixed version.

## Is CVE-2023-31484 being exploited?

There is no known exploitation of CVE-2023-31484 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-31484 and fix it if it is affected.

What it is: CVE-2023-31484 is a high-severity vulnerability in n/a, published on 28 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-31484 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-31484/ (Markdown: https://insights.sbomify.com/CVE-2023-31484/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-31484
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-31484
- OSV: https://osv.dev/vulnerability/CVE-2023-31484

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-31484/
Summaries are generated and may contain mistakes; the official description above is the record.
