CVE-2023-40573

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-40573
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40573.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-40573
Aliases
Published
2023-08-24T01:31:14.128Z
Modified
2025-12-11T02:05:18.479330Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
XWiki Platform's Groovy jobs check the wrong author, allowing remote code execution
Details

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki supports scheduled jobs that contain Groovy scripts. Currently, the job checks the content author of the job for programming right. However, modifying or adding a job script to a document doesn't modify the content author. Together with a CSRF vulnerability in the job scheduler, this can be exploited for remote code execution by an attacker with edit right on the wiki. If the attack is successful, an error log entry with "Job content executed" will be produced. This vulnerability has been patched in XWiki 14.10.9 and 15.4RC1.

Database specific
{
    "cwe_ids": [
        "CWE-284"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40573.json"
}
References

Affected packages

Git / github.com/xwiki/xwiki-commons

Affected ranges

Type
GIT
Repo
https://github.com/xwiki/xwiki-commons
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40573.json"

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

Affected versions

xwiki-application-calendar-1.*

xwiki-application-calendar-1.0

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

vanir_signatures

[
    {
        "digest": {
            "length": 1180.0,
            "function_hash": "313481270971042628761796727599621061379"
        },
        "id": "CVE-2023-40573-4f682497",
        "source": "https://github.com/xwiki/xwiki-platform/commit/fcdcfed3fe2e8a3cad66ae0610795a2d58ab9662",
        "signature_type": "Function",
        "target": {
            "file": "xwiki-platform-core/xwiki-platform-scheduler/xwiki-platform-scheduler-api/src/main/java/com/xpn/xwiki/plugin/scheduler/GroovyJob.java",
            "function": "executeJob"
        },
        "signature_version": "v1",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "49532723767442487758591324200189283744",
                "245353265591212186309458092426065800492",
                "244084767252433702548635213984874894779",
                "165566834544075045525391644010337541554",
                "74723711114655667361759069455407469559",
                "308239956598842523855586444894151265269",
                "35753873109773258587497578936130069420",
                "161277240926577000041349019709746664378",
                "190528861456869262758771626262659145777",
                "310138481561766541516839316654475520223",
                "166343725634506343160915679503793805817",
                "282531453842335282133301127720566831682",
                "159746581422373221973662022270352713143",
                "180918363571907280890138517469010393566",
                "288951634120136216161566039934763084370",
                "42476783556263201988312664740020087071",
                "55740169446061434562356102117867275492",
                "261313764663695625154455950108194170237",
                "92771341448717861202827932671380414303",
                "214054902639471524381972063146722984003",
                "277937631491321119928131758130314841895",
                "102850910725179931362767110058290932441",
                "68147481478115713763329103404254076992",
                "132186322832280277666179145978674357056",
                "267882798695658769089362010405202697920",
                "287493131035430649905070372819516853581",
                "193369916027503413040186019602450816190",
                "322568628766211578075175622981314457952",
                "44738789624405891225089933819908154966"
            ]
        },
        "id": "CVE-2023-40573-7cad9e50",
        "source": "https://github.com/xwiki/xwiki-platform/commit/fcdcfed3fe2e8a3cad66ae0610795a2d58ab9662",
        "signature_type": "Line",
        "target": {
            "file": "xwiki-platform-core/xwiki-platform-scheduler/xwiki-platform-scheduler-api/src/main/java/com/xpn/xwiki/plugin/scheduler/GroovyJob.java"
        },
        "signature_version": "v1",
        "deprecated": false
    }
]

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40573.json"