# CVE-2024-45321: Supply chain in n/a

> Network attackers can execute arbitrary code by exploiting insecure HTTP downloads in the App::cpanminus Perl package.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/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:** 27 Aug 2024
- **Updated:** 6 Sep 2024
- **Also known as:** ALSA-2024:10218, ALSA-2024:10219, CLSA-2025-1762957887, DEBIAN-CVE-2024-45321, GHSA-9mmm-86g7-vp9g, MGASA-2024-0339, RHSA-2024:10218, RLSA-2024:10218, RLSA-2024:10219, UBUNTU-CVE-2024-45321, openSUSE-SU-2024:14291-1

## What is CVE-2024-45321?

CVE-2024-45321 is a critical vulnerability in n/a, published on 27 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The App::cpanminus package through 1.7047 for Perl downloads code via insecure HTTP, enabling code execution for network attackers.

Weakness: CWE-494 (Download of Code Without Integrity Check)

## Which versions are affected by CVE-2024-45321?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `perl-App-cpanminus` | AlmaLinux:8 | All versions | 1.7044-6.module_el8.10.0+3924+8d272be4 |
| `perl-CPAN-DistnameInfo` | AlmaLinux:8 | All versions | 0.12-13.module_el8.6.0+2810+886f1911 |
| `perl-CPAN-Meta-Check` | AlmaLinux:8 | All versions | 0.014-6.module_el8.10.0+3924+8d272be4 |
| `perl-File-pushd` | AlmaLinux:8 | All versions | 1.014-6.module_el8.6.0+2851+b32f1bac |
| `perl-Module-CPANfile` | AlmaLinux:8 | All versions | 1.1002-7.module_el8.6.0+2792+592c5e39 |
| `perl-Parse-PMFile` | AlmaLinux:8 | All versions | 0.41-7.module_el8.6.0+2851+b32f1bac |
| `perl-String-ShellQuote` | AlmaLinux:8 | All versions | 1.04-24.module_el8.6.0+2810+886f1911 |
| `perl-App-cpanminus` | AlmaLinux:9 | All versions | 1.7044-14.1.el9_5 |
| `perl-App-cpanminus` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.7044-14.1.el9_5 |
| `perl-App-cpanminus` | Rocky Linux:8 | All versions | 0:1.7044-6.module+el8.10.0+1886+1635aa55 |
| `perl-App-cpanminus` | Rocky Linux:8 | All versions | 0:1.7044-6.module+el8.10.0+1886+1e729698 |
| `perl-App-cpanminus` | Rocky Linux:8 | All versions | 0:1.7044-6.module+el8.10.0+1886+95a09097 |
| `perl-App-cpanminus` | Rocky Linux:8 | All versions | 0:1.7044-6.module+el8.10.0+1886+c31d99b8 |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.10.0+1616+0d20cc68 |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.10.0+1890+1072d5cf |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.10.0+1890+281b551b |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.10.0+1890+318cbfb5 |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.6.0+878+f93dfff7 |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.9.0+1491+219f8fe7 |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.9.0+1491+3507a112 |
| `perl-CPAN-DistnameInfo` | Rocky Linux:8 | All versions | 0:0.12-13.module+el8.9.0+1491+a1bcd037 |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.10.0+1890+1072d5cf |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.10.0+1890+281b551b |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.10.0+1890+318cbfb5 |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.10.0+1890+372c0e22 |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.9.0+1491+19eb7ac4 |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.9.0+1491+219f8fe7 |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.9.0+1491+3507a112 |
| `perl-CPAN-Meta-Check` | Rocky Linux:8 | All versions | 0:0.014-6.module+el8.9.0+1491+a1bcd037 |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.10.0+1890+1072d5cf |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.10.0+1890+281b551b |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.10.0+1890+318cbfb5 |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.10.0+1890+372c0e22 |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.9.0+1491+19eb7ac4 |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.9.0+1491+219f8fe7 |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.9.0+1491+3507a112 |
| `perl-File-pushd` | Rocky Linux:8 | All versions | 0:1.014-6.module+el8.9.0+1491+a1bcd037 |
| `perl-Module-CPANfile` | Rocky Linux:8 | All versions | 0:1.1002-7.module+el8.10.0+1890+1072d5cf |
| `perl-Module-CPANfile` | Rocky Linux:8 | All versions | 0:1.1002-7.module+el8.10.0+1890+281b551b |
| `perl-Module-CPANfile` | Rocky Linux:8 | All versions | 0:1.1002-7.module+el8.10.0+1890+318cbfb5 |

Products: App\ \.

## How do I fix CVE-2024-45321?

Upgrade to a fixed version.

## Is CVE-2024-45321 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2020-16154](https://insights.sbomify.com/CVE-2020-16154/): Security feature bypass in n/a (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-45321 and fix it if it is affected.

What it is: CVE-2024-45321 is a critical vulnerability in n/a, published on 27 Aug 2024. 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-2024-45321 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-2024-45321/ (Markdown: https://insights.sbomify.com/CVE-2024-45321/index.md)
```

## Sources

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

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