Crypto script service uses hashing algorithm SHA1 with RSA for certificate signature in xwiki-platform
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
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.xwiki.platform:xwiki-platform-cryptoMaven | < 13.10.6 | 13.10.6 |
org.xwiki.platform:xwiki-platform-cryptoMaven | >= 14.0.0, < 14.3.1 | 14.3.1 |
Affected products
1- Range: < 13.10.6
Patches
126728f3f2365XWIKI-19676: Update the RSA Crypto script service to use SHA256 instead of SHA1 for certificate signature
1 file changed · +1 −1
xwiki-platform-core/xwiki-platform-crypto/xwiki-platform-crypto-script/src/main/java/org/xwiki/crypto/script/RSACryptoScriptService.java+1 −1 modified@@ -86,7 +86,7 @@ public class RSACryptoScriptService implements ScriptService private KeyPairGenerator keyPairGenerator; @Inject - @Named("SHA1withRSAEncryption") + @Named("SHA256withRSAEncryption") private SignerFactory signerFactory; @Inject
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-h8v5-p258-pqf4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-29161ghsaADVISORY
- github.com/xwiki/xwiki-platform/commit/26728f3f23658288683667a5182a916c7ecefc52ghsax_refsource_MISCWEB
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-h8v5-p258-pqf4ghsax_refsource_CONFIRMWEB
- jira.xwiki.org/browse/XWIKI-19676ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.