# CVE-2020-28416: Code injection in HP OfficeJet Printer; HP PageWide Printer

> Local attackers can execute arbitrary code via the I.R.I.S. OCR component in HP printer software installations.

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 3 Nov 2021
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-xg5f-49f6-c8xv

## What is CVE-2020-28416?

CVE-2020-28416 is a high-severity code injection vulnerability in HP OfficeJet Printer; HP PageWide Printer, published on 3 Nov 2021. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

HP has identified a security vulnerability with the I.R.I.S. OCR (Optical Character Recognition) software available with HP PageWide and OfficeJet printer software installations that could potentially allow unauthorized local code execution.

## Which versions are affected by CVE-2020-28416?

It affects 155 products.


Products: Hp Officejet 250 Cz992a Firmware, Hp Officejet 250c L9d57a Firmware, Hp Officejet 252 N4l16c Firmware, Hp Officejet 252c N4l18c Firmware, Hp Officejet 258 N4l17a Firmware, Hp Officejet 4650 E6g87a Firmware, Hp Officejet 4650 F1h96a Firmware, Hp Officejet 4650 F1h96b Firmware, Hp Officejet 4650 F1j03a Firmware, Hp Officejet 4650 F1j04a Firmware, Hp Officejet 4650 F9d37a Firmware, Hp Officejet 4650 K9v77a Firmware, Hp Officejet 4650 K9v85b Firmware, Hp Officejet 4651 K9v83b Firmware, Hp Officejet 4652 F1j02a Firmware, Hp Officejet 4652 F1j05b Firmware, Hp Officejet 4652 K9v84b Firmware, Hp Officejet 4654 F1j06b Firmware, Hp Officejet 4654 F1j07b Firmware, Hp Officejet 4654 K9v76a Firmware and 135 more.

## How do I fix CVE-2020-28416?

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

## Is CVE-2020-28416 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-28416 and fix it if it is affected.

What it is: CVE-2020-28416 is a high-severity code injection vulnerability in HP OfficeJet Printer; HP PageWide Printer, published on 3 Nov 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-28416 in the wild and no public exploit code.

Affected product: HP OfficeJet Printer; HP PageWide Printer. 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-2020-28416/ (Markdown: https://insights.sbomify.com/CVE-2020-28416/index.md)
```

## Sources

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

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