CVE-2006-7223: Xwiki platform oldcore Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-h5jm-jjgx-q2wf
Published
Advisory Summary

CVE-2006-7223 is a MODERATE remote code execution vulnerability (General Security Weakness) affecting Xwiki platform oldcore libraries in the Maven ecosystem. The issue involves xwiki remote code execution. Remediation is available by upgrading affected packages to version 1.0B1.

CVE-2006-7223 at a Glance

CVE Identifier CVE-2006-7223
GHSA Identifier GHSA-h5jm-jjgx-q2wf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Xwiki platform oldcore
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2006-7223

To remediate this vulnerability, upgrade all affected Xwiki platform oldcore dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.xwiki.platform:xwiki-platform-oldcore fixed: 1.0B1
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-oldcore</artifactId>
    <version>1.0B1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.platform

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2006-7223, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.platform

Analyze the terminal output to locate any version of Xwiki platform oldcore in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0B1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Xwiki platform oldcore, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

PreviewAction in XWiki 0.9.543 through 0.9.1252 does not set the Author field to the identity of the user who last modified a document, which allows remote authenticated users without programming rights to execute arbitrary code by selecting a document whose author has programming rights, modifying this document to contain a script, and previewing without saving the document.

CVE-2006-7223 Affected Xwiki platform oldcore Versions

1 component(s)
Fixed Versions:
1.0B1
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-oldcore
Maven
≥ 0.9.543
< 1.0B1
1.0B1

References

Frequently Asked Questions

What is CVE-2006-7223?
CVE-2006-7223 is a security vulnerability in Xwiki platform oldcore involving XWiki Remote Code Execution under General Security Weakness.
Which Xwiki platform oldcore versions are affected?
Affected versions include releases prior to 1.0B1 across affected packages: org.xwiki.platform:xwiki-platform-oldcore.
What version fixes CVE-2006-7223?
Upgrading to 1.0B1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-oldcore affected?
Yes, org.xwiki.platform:xwiki-platform-oldcore is affected in releases prior to 1.0B1. Upgrade your dependency to 1.0B1 or later.
What CWE is associated with CVE-2006-7223?
CVE-2006-7223 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2006-7223?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h5jm-jjgx-q2wf",
  "modified" : "2024-02-12T17:00:03Z",
  "published" : "2022-05-01T07:45:42Z",
  "aliases" : [ "CVE-2006-7223" ],
  "summary" : "XWiki Remote Code Execution",
  "details" : "PreviewAction in XWiki 0.9.543 through 0.9.1252 does not set the Author field to the identity of the user who last modified a document, which allows remote authenticated users without programming rights to execute arbitrary code by selecting a document whose author has programming rights, modifying this document to contain a script, and previewing without saving the document.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-oldcore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.543"
      }, {
        "fixed" : "1.0B1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.9.1252"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2006-7223"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/c44172a3556d12b62c0d793ab18475e5e13d7120"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-platform"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080616064908/http://jira.xwiki.org/jira/browse/XWIKI-366"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-12T17:00:03Z",
    "nvd_published_at" : "2007-09-14T00:17:00Z"
  }
}