CVE-2026-12805 OFFIS DCMTK ofxml.cc parseFile heap-based overflow

Medium 5.3 Published Updated

A heap-based buffer overflow in DCMTK's XML parser allows remote attackers to execute arbitrary code or cause denial of service via crafted files.

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

What is CVE-2026-12805?

CVE-2026-12805 is a medium-severity memory corruption vulnerability in OFFIS DCMTK, published on 21 Jun 2026. 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

A flaw has been found in OFFIS DCMTK up to 3.7.0. The affected element is the function XMLNode::parseFile in the library ofstd/libsrc/ofxml.cc. Executing a manipulation can lead to heap-based buffer overflow. The attack may be performed from remote. The exploit has been published and may be used. This patch is called 1d4b3815c0987840a983160bfc671fef63a3105b. It is best practice to apply a patch to resolve this issue. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Weakness: CWE-122, CWE-119

Which versions are affected by CVE-2026-12805?

How do I fix CVE-2026-12805?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-12805 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-12805, GHSA-35pp-gpq2-4898, UBUNTU-CVE-2026-12805.

Is CVE-2026-12805 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free