Vulnerability · Published May 5, 2022 · Assigned by GitHub_M
CVE-2022-29161Crypto script service uses hashing algorithm SHA1 with RSA for certificate signature in xwiki-platform
Medium 5.4
In plain English
A medium-severity broken cryptography in xwiki-platform from xwiki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. The XWiki Crypto API will generate X509 certificates signed by default using SHA1 with RSA, which is not considered safe anymore for use in certificate signatures, due to the risk of collisions with SHA1. The problem has been patched in XWiki version 13.10.6, 14.3.1 and 14.4-rc-1. Since then, the Crypto API will generate X509 certificates signed by default using SHA256 with RSA. Administrators are advised to upgrade their XWiki installation to one of the patched versions. If the upgrade is not possible, it is possible to patch the module xwiki-platform-crypto in a local installation by applying the change exposed in 26728f3 and re-compiling the module.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-crypto | 13.10.6 | GHSA-h8v5-p258-pqf4 |
| Maven | org.xwiki.platform:xwiki-platform-crypto | 14.3.1 | GHSA-h8v5-p258-pqf4 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | < 13.10.6>= 14.0.0, < 14.3.1>= 14.4.0, < 14.4-rc-1 |
Weakness: CWE-327 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h8v5-p258-pqf4 x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/26728f3f23658288683667a5182a916c7ecefc52 x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-19676 x_refsource_MISC