# CVE-2021-39238: Memory corruption in HP Enterprise LaserJet; HP LaserJet Managed; HP Enterprise PageWide; HP PageWide Managed printers

> A buffer overflow in HP LaserJet and PageWide printers allows attackers to execute arbitrary code or cause a denial of service.

- **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:** No
- **Published:** 3 Nov 2021
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-jpm6-ch2w-q2f4

## What is CVE-2021-39238?

CVE-2021-39238 is a critical memory corruption vulnerability in HP Enterprise LaserJet; HP LaserJet Managed; HP Enterprise PageWide; HP PageWide Managed printers, published on 3 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Certain HP Enterprise LaserJet, HP LaserJet Managed, HP Enterprise PageWide, HP PageWide Managed products may be vulnerable to potential buffer overflow.

Weakness: CWE-120 (Buffer Copy without Checking Size of Input)

## Which versions are affected by CVE-2021-39238?

It affects 3 products.


Products: Hp Futuresmart 3, Hp Futuresmart 4, Hp Futuresmart 5.

## How do I fix CVE-2021-39238?

No fix has been published for CVE-2021-39238 yet. Limit exposure of the affected software until one is available.

## Is CVE-2021-39238 being exploited?

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

## Other vulnerabilities in HP Enterprise LaserJet; HP LaserJet Managed; HP Enterprise PageWide; HP PageWide Managed printers

- [CVE-2019-6334](https://insights.sbomify.com/CVE-2019-6334/): Code injection in HP Color LaserJet CM4540 MFP,HP Color LaserJet Managed flow MFP M880zm,HP Color LaserJet Enterprise flow MFP M880z,HP Color LaserJet Enterprise M552,HP Color LaserJet Managed M553,HP Color LaserJet Enterprise M553,HP Color LaserJet Managed M651,HP Color LaserJet Enterprise M651,HP Color LaserJet Enterprise M652,HP Color LaserJet Enterprise M653,HP Color LaserJet Enterprise M750,HP Color LaserJet Managed E75245,HP Color LaserJet Enterprise M751,HP Color LaserJet Enterprise M855,HP Color LaserJet Enterprise Flow MFP M577,HP Color LaserJet Enterprise MFP M577,HP Color LaserJet Enterprise Flow MFP M680,HP Color LaserJet Enterprise MFP M680,HP Color LaserJet Enterprise flow MFP M681,HP Color LaserJet Enterprise MFP M681,HP Color LaserJet Enterprise flow MFP M682,HP Color LaserJet Enterprise MFP M682,HP Color LaserJet Enterprises CP5525,HP Color LaserJet Managed E55040dw,HP Color LaserJet Managed E65050/60,HP Color LaserJet Managed flow MFP E77822/25/30,HP Color LaserJet Managed flow MFP E57540,HP Color LaserJet Managed MFP E57540,HP Color LaserJet Managed flow MFP E67550/60,HP Color LaserJet Managed MFP E67550/60,HP Color LaserJet Managed MFP E77422/28,HP Color LaserJet Managed MFP E77822/25/30,HP Color LaserJet Managed flow MFP E87640/50/60,HP Color LaserJet Managed MFP E87640/50/60,HP Color LaserJet Managed Flow MFP M577,HP Color LaserJet Managed MFP M577,HP Color LaserJet Managed Flow MFP M680,HP Color LaserJet Managed MFP M680,HP LaserJet Enterprise 500 Color M551HP LaserJet Enterprise color flow MFP M575,HP LaserJet Enterprise 500 color MFP M575,HP LaserJet Enterprise Flow MFP M525,HP LaserJet Enterprise 500 MFP M525f,HP LaserJet Enterprise 600 M601,HP LaserJet Enterprise 600 M602,HP LaserJet Enterprise 600 M603,HP Color LaserJet Managed MFP M775,HP LaserJet Enterprise 700 color MFP M775,HP LaserJet Enterprise 700 M712,HP LaserJet Managed flow MFP M630,HP LaserJet Enterprise flow MFP M630,HP LaserJet Managed flow MFP M830,HP LaserJet Enterprise flow MFP M830,HP LaserJet Enterprise M4555 MFP,HP Las ...[truncated*] (critical 9.8)
- [CVE-2024-0407](https://insights.sbomify.com/CVE-2024-0407/): Certain HP Enterprise LaserJet, HP LaserJet Managed Printers – Potential Information Disclosure (medium 6.5)
- [CVE-2025-26507](https://insights.sbomify.com/CVE-2025-26507/): Memory corruption in Certain HP LaserJet Pro, HP LaserJet Enterprise, HP LaserJet Managed Printers (medium 6.3)
- [CVE-2019-18914](https://insights.sbomify.com/CVE-2019-18914/): Cross-site scripting in HP Color LaserJet Managed Printers, HP Color LaserJet Enterprise Printers (medium 6.1)
- [CVE-2021-39237](https://insights.sbomify.com/CVE-2021-39237/): Information disclosure in HP LaserJet; HP LaserJet Managed; HP PageWide; HP PageWide Managed printers (medium 4.6)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-39238 and fix it if it is affected.

What it is: CVE-2021-39238 is a critical memory corruption vulnerability in HP Enterprise LaserJet; HP LaserJet Managed; HP Enterprise PageWide; HP PageWide Managed printers, published on 3 Nov 2021. 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-2021-39238 in the wild and no public exploit code.

Affected product: HP Enterprise LaserJet; HP LaserJet Managed; HP Enterprise PageWide; HP PageWide Managed printers. 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-2021-39238/ (Markdown: https://insights.sbomify.com/CVE-2021-39238/index.md)
```

## Sources

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

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