CVE-2025-31497

Source
https://cve.org/CVERecord?id=CVE-2025-31497
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31497.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-31497
Aliases
  • GHSA-w2hq-3cjc-2x55
Published
2025-04-15T20:00:17.738Z
Modified
2026-04-10T05:25:47.399752Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
TEIGarage XML External Entity (XXE) Injection in Document Conversion Service
Details

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.FEATURESECUREPROCESSING).

Database specific
{
    "cwe_ids": [
        "CWE-611"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31497.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/teic/teigarage

Affected ranges

Type
GIT
Repo
https://github.com/teic/teigarage
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.2.4"
        }
    ]
}

Affected versions

v0.*
v0.5.2
v0.6.0
v1.*
v1.0.0
v1.1.0
v1.1.1
v1.2.1
v1.2.2
v1.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31497.json"