# CVE-2020-7374: Documalis Free PDF Editor / Free PDF Scanner Stack Based Buffer Overflow

> Attackers can achieve remote code execution by tricking users into opening malicious PDFs with vulnerable Documalis software.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 12 Aug 2020
- **Updated:** 17 Sep 2024
- **Also known as:** GHSA-c62g-h8p8-p75m

## What is CVE-2020-7374?

CVE-2020-7374 is a medium-severity memory corruption vulnerability in Documalis Free PDF Editor, published on 12 Aug 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

Documalis Free PDF Editor version 5.7.2.26 and Documalis Free PDF Scanner version 5.7.2.122 do not appropriately validate the contents of JPEG images contained within a PDF. Attackers can exploit this vulnerability to trigger a buffer overflow on the stack and gain remote code execution as the user running the Documalis Free PDF Editor or Documalis Free PDF Scanner software.

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

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

It affects 2 products.


Products: Documalis Free Pdf Editor, Documalis Free Pdf Scanner.

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

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

## Is CVE-2020-7374 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-7374 exists.

Public exploit code:

- Documalis Free PDF Editor and Scanner JPEG Stack Buffer Overflow (metasploit)

## Fix prompt for AI coding agents

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

What it is: CVE-2020-7374 is a medium-severity memory corruption vulnerability in Documalis Free PDF Editor, published on 12 Aug 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-7374 exists.

Affected product: Documalis Free PDF Editor. 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-7374/ (Markdown: https://insights.sbomify.com/CVE-2020-7374/index.md)
```

## Sources

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

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