CVE-2021-32729: Xwiki platform security authentication script A User Without PR Can Vulnerability
LOWCVE-2021-32729 is a LOW (CVSS 2.0) a user without pr can vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Xwiki platform security authentication script libraries in the Maven ecosystem. The issue involves a user without pr can reset user authentication failures information. Remediation is available by upgrading affected packages to version 12.6.8, 12.10.4.
CVE-2021-32729 at a Glance
Security Impact
CVSS: 2.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2021-32729
To remediate this vulnerability, upgrade all affected Xwiki platform security authentication script dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-security-authentication-script</artifactId>
<version>12.6.8</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-security-authentication-script</artifactId>
<version>12.10.4</version>
</dependency>
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-2021-32729, 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 security authentication script in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.6.8), 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 CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Xwiki platform security authentication script, 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
CVE-2021-32729 Affected Xwiki platform security authentication script Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-security-authentication-script
|
Maven |
≥ 11.6
< 12.6.8
|
12.6.8
|
|
org.xwiki.platform:xwiki-platform-security-authentication-script
|
Maven |
≥ 12.7
< 12.10.4
|
12.10.4
|
References
Frequently Asked Questions
What is CVE-2021-32729?
Which Xwiki platform security authentication script versions are affected?
What version fixes CVE-2021-32729?
Is xwiki-platform-security-authentication-script affected?
What is the CVSS score of CVE-2021-32729?
What CWE is associated with CVE-2021-32729?
How can I check Maven dependencies for CVE-2021-32729?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m738-3rc4-5xv3",
"modified" : "2021-07-02T16:44:24Z",
"published" : "2021-07-02T19:19:31Z",
"aliases" : [ "CVE-2021-32729" ],
"summary" : "A user without PR can reset user authentication failures information",
"details" : "### Impact\nThe script service method used to reset the authentication failures record can be executed by any user with Script rights and does not require Programming rights as it should have.\nNote that being able to reset the authentication failure record mean that an attacker with script right might use it to try performing a bruteforce attack since she'd been able to virtually deactivate the mechanism introduced to mitigate those attacks.\n\n### Patches\nThe problem has been patched in version 12.6.8, 12.10.4 and 13.0.\n\n### Workarounds\nThere's no workaround besides upgrading and being careful on which user should have Script right access. Note that any bruteforce attack on the authentication should be visible in the logs since the authentication failures are logged.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-18276\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira](http://jira.xwiki.org)\n* Email us at [the security mailing-list](mailto:security@xwiki.org)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-security-authentication-script"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.6"
}, {
"fixed" : "12.6.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-security-authentication-script"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.7"
}, {
"fixed" : "12.10.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-m738-3rc4-5xv3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32729"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-18276"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-693", "CWE-732" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2021-07-02T16:44:24Z",
"nvd_published_at" : "2021-07-01T17:15:00Z"
}
}