# CVE-2024-28877: MicroDicom DICOM Viewer Stack-based Buffer Overflow

> An attacker can execute arbitrary code by tricking a user into opening a malicious DICOM file in MicroDicom Viewer.

- **Severity:** High 8.7 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 11 Jun 2024
- **Updated:** 2 Aug 2024
- **Also known as:** GHSA-62pq-x59w-p9v7

## What is CVE-2024-28877?

CVE-2024-28877 is a high-severity memory corruption vulnerability in MicroDicom DICOM Viewer, published on 11 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

MicroDicom DICOM Viewer is vulnerable to a stack-based buffer overflow, which may allow an attacker to execute arbitrary code on affected installations of DICOM Viewer. User interaction is required to exploit this vulnerability.

Weakness: CWE-787 (Out-of-bounds Write), CWE-121 (Stack-based Buffer Overflow)

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

It affects 1 product.


Products: Microdicom Dicom Viewer.

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

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

## Is CVE-2024-28877 being exploited?

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

## Other vulnerabilities in MicroDicom DICOM Viewer

- [CVE-2024-33606](https://insights.sbomify.com/CVE-2024-33606/): MicroDicom DICOM Viewer Improper Authorization in Handler for Custom URL Scheme (high 8.6)
- [CVE-2024-22100](https://insights.sbomify.com/CVE-2024-22100/): MicroDicom DICOM Heap-based Buffer Overflow (high 7.8)
- [CVE-2024-25578](https://insights.sbomify.com/CVE-2024-25578/): MicroDicom DICOM Viewer Out-of-Bounds Write (high 7.8)
- [CVE-2025-1002](https://insights.sbomify.com/CVE-2025-1002/): MicroDicom DICOM Viewer Improper Certificate Validation (medium 5.7)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-28877 is a high-severity memory corruption vulnerability in MicroDicom DICOM Viewer, published on 11 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-28877 in the wild and no public exploit code.

Affected product: MicroDicom DICOM Viewer. 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-28877/ (Markdown: https://insights.sbomify.com/CVE-2024-28877/index.md)
```

## Sources

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

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