CVE-2025-64087 XDocReport affected by a Server-Side Template Injection (SSTI) vulnerability

Critical 9.8 Published Updated

Attackers can execute arbitrary code by injecting crafted template expressions into the FreeMarker component of XDocReport.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-64087?

CVE-2025-64087 is a critical code injection vulnerability in n/a, published on 20 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Server-Side Template Injection (SSTI) vulnerability in the FreeMarker component of opensagres XDocReport v1.0.0 to v2.1.0 allows attackers to execute arbitrary code via injecting crafted template expressions.

Weakness: CWE-1336

Which versions are affected by CVE-2025-64087?

2 open source packages ship an affected version, including fr.opensagres.xdocreport:fr.opensagres.xdocreport.template.freemarker. It affects 1 product.

PackageAffectedFixed in
fr.opensagres.xdocreport:fr.opensagres.xdocreport.template.freemarker MavenAll versions2.2.0
fr.opensagres.xdocreport:fr.opensagres.xdocreport.template.freemarker MavenAll versions2.2.0

Products include Opensagres Xdocreport.

How do I fix CVE-2025-64087?

Upgrade fr.opensagres.xdocreport:fr.opensagres.xdocreport.template.freemarker to 2.2.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-64087 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-r8w2-w357-9pjv.

Is CVE-2025-64087 in your software?

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

Check your SBOMs for free