CVE-2025-66474

Source
https://cve.org/CVERecord?id=CVE-2025-66474
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66474.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-66474
Aliases
Published
2025-12-10T21:59:58.727Z
Modified
2026-03-14T12:46:37.399212Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection
Details

XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Versions 16.10.9 and below, 17.0.0-rc-1 through 17.4.2 and 17.5.0-rc-1 through 17.5.0 have insufficient protection against {{/html}} injection, which attackers can exploit through RCE. Any user who can edit their own profile or any other document can execute arbitrary script macros, including Groovy and Python macros, which enable remote code execution as well as unrestricted read and write access to all wiki contents. This issue is fixed in versions 16.10.10, 17.4.3 and 17.6.0-rc-1.

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

Affected packages

Git / github.com/xwiki/xwiki-platform

Affected ranges

Type
GIT
Repo
https://github.com/xwiki/xwiki-platform
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "16.10.10"
        }
    ]
}
Type
GIT
Repo
https://github.com/xwiki/xwiki-platform
Events
Database specific
{
    "versions": [
        {
            "introduced": "17.0.0-rc-1"
        },
        {
            "fixed": "17.4.3"
        }
    ]
}

Affected versions

xwiki-application-calendar-1.*
xwiki-application-calendar-1.0
xwiki-platform-16.*
xwiki-platform-16.10.0
xwiki-platform-16.10.0-rc-1
xwiki-platform-16.10.1
xwiki-platform-16.10.2
xwiki-platform-16.10.3
xwiki-platform-16.10.4
xwiki-platform-16.10.5
xwiki-platform-16.10.6
xwiki-platform-16.10.7
xwiki-platform-16.10.8
xwiki-platform-16.10.9
xwiki-platform-7.*
xwiki-platform-7.3-milestone-2
xwiki-platform-7.4-milestone-1
xwiki-platform-7.4-milestone-2
xwiki-platform-8.*
xwiki-platform-8.0-milestone-1
xwiki-platform-8.0-milestone-2
xwiki-platform-8.1-milestone-1
xwiki-platform-8.1-milestone-2
xwiki-platform-8.2-milestone-1
xwiki-platform-8.2-milestone-2
xwiki-platform-8.3-milestone-1
xwiki-platform-9.*
xwiki-platform-9.9-rc-2
xwiki-plugin-tag-1.*
xwiki-plugin-tag-1.1

Database specific

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

Git / github.com/xwiki/xwiki-rendering

Affected ranges

Type
GIT
Repo
https://github.com/xwiki/xwiki-rendering
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "16.10.10"
        },
        {
            "introduced": "17.0.0"
        },
        {
            "fixed": "17.4.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "17.5.0-NA"
        }
    ]
}

Database specific

vanir_signatures
[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "84119038741461095662713590495830820630",
                "128672261848722604921510459201043659783",
                "182650674393567847885655176327441135883",
                "315611649681667847417382014105960749093",
                "134059787628542700764971198183293655248",
                "72365698513867283538819363931311428972",
                "18876696512412873585132228774107282220",
                "171158128685606460603068519296795383979",
                "255438115620241094020210796310644159943",
                "244658762808244664803634046851625648003",
                "220983014186452921869860611911738680696",
                "84424962335358616442839744133050536297",
                "44519015198532277550485794134668099614",
                "195652711324386400503042102486982278888",
                "44722140000460641049356549663144633865"
            ]
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2025-66474-1c32d1d8",
        "target": {
            "file": "xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java"
        },
        "source": "https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "24813110868214522558684577686847400591",
                "142498559858103634313736697021927951506",
                "134057656862043865469281232032709302290",
                "69467088401702180907478577090679016654",
                "28896370831207797683746459693749445843",
                "269281691815835161522432341953586655972",
                "15889274468392677476402592131513192297"
            ]
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2025-66474-a5085c1a",
        "target": {
            "file": "xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java"
        },
        "source": "https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49"
    },
    {
        "digest": {
            "length": 491.0,
            "function_hash": "309782339902751005744151019807113797915"
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2025-66474-b9ad5f7b",
        "target": {
            "function": "printRaw",
            "file": "xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java"
        },
        "source": "https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66474.json"