VYPR
Moderate severityNVD Advisory· Published May 5, 2022· Updated Apr 23, 2025

Crypto script service uses hashing algorithm SHA1 with RSA for certificate signature in xwiki-platform

CVE-2022-29161

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.

PackageAffected versionsPatched versions
org.xwiki.platform:xwiki-platform-cryptoMaven
< 13.10.613.10.6
org.xwiki.platform:xwiki-platform-cryptoMaven
>= 14.0.0, < 14.3.114.3.1

Affected products

1

Patches

1
26728f3f2365

XWIKI-19676: Update the RSA Crypto script service to use SHA256 instead of SHA1 for certificate signature

https://github.com/xwiki/xwiki-platformClément AubinApr 30, 2022via ghsa
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

News mentions

0

No linked articles in our index yet.