CVE-2025-31497 TEIGarage XML External Entity (XXE) Injection in Document Conversion Service

High 7.5 Published Updated

Attackers can exploit XXE in TEIGarage to read arbitrary server files and potentially perform SSRF attacks.

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

What is CVE-2025-31497?

CVE-2025-31497 is a high-severity vulnerability in TEIC TEIGarage, published on 15 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

TEIGarage is a webservice and RESTful service to transform, convert and validate various formats, focussing on the TEI format. The Document Conversion Service contains a critical XML External Entity (XXE) Injection vulnerability in its document conversion functionality. The service processes XML files during the conversion process but fails to disable external entity processing, allowing an attacker to read arbitrary files from the server's filesystem. This vulnerability could allow attackers to read sensitive files from the server's filesystem, potentially exposing configuration files, credentials, or other confidential information. Additionally, depending on the server configuration, this could potentially be used to perform server-side request forgery (SSRF) attacks by making the server connect to internal services. This issue is patched in version 1.2.4. A workaround for this vulnerability includes disabling external entity processing in the XML parser by setting the appropriate security features (e.g., XMLConstants.FEATURE_SECURE_PROCESSING).

Weakness: CWE-611

Which versions are affected by CVE-2025-31497?

How do I fix CVE-2025-31497?

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

Is CVE-2025-31497 being exploited?

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

Sources

Also known as GHSA-w2hq-3cjc-2x55.

Is CVE-2025-31497 in your software?

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

Check your SBOMs for free