CVE-2022-29161: Use of a Broken or Risky Cryptographic Algorithm in XWiki Crypto API

Summary

24/05/2022
Yes i
Moderate
5.4

CVE-2022-29161: Use of a Broken or Risky Cryptographic Algorithm in XWiki Crypto API. Affects org.xwiki.platform:xwiki-platform-crypto across 2 version ranges.

< 13.10.6 >= 14.0.0, < 14.3.1

Fixed in 13.10.6 or 14.3.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

XWiki Crypto API is a component of the XWiki platform that provides cryptographic functionality. It is used to generate X509 certificates, which are commonly used for secure communication and authentication. However, the default algorithm used for signing these certificates, SHA1 with RSA, is no longer considered safe due to the risk of collisions with SHA1. This vulnerability affects versions 0 to 13.10.6 and 14.0.0 to 14.3.1 of the org.xwiki.platform:xwiki-platform-crypto package.

Vulnerability Detail

The use of SHA1 with RSA for certificate signatures poses a security risk as it is vulnerable to collision attacks. An attacker could potentially generate a different certificate with the same signature, leading to impersonation or other malicious activities. This vulnerability has a CVSS score of 5.4, indicating a moderate severity level. It is important to upgrade to the patched versions (13.10.6, 14.3.1, or 14.4-rc-1) to mitigate this risk.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 13.10.6 13.10.6
  • >= 14.0.0, < 14.3.1 14.3.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading is not immediately possible, a temporary workaround is to patch the xwiki-platform-crypto module locally. This can be done by applying the change provided in the following GitHub commit: [link to commit]. After applying the patch, the module needs to be recompiled.

Conclusion

The use of SHA1 with RSA for certificate signatures in XWiki Crypto API poses a security risk. It is crucial to upgrade to the patched versions (13.10.6, 14.3.1, or 14.4-rc-1) or apply the provided patch to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for org.xwiki.platform:xwiki-platform-crypto →

Share this vulnerability

FAQ

XWiki Crypto API is a component of the XWiki platform that provides cryptographic functionality. It is used for generating X509 certificates.

SHA1 with RSA is no longer considered safe for certificate signatures due to the risk of collisions. This means that an attacker could generate a different certificate with the same signature, leading to potential security breaches.

This vulnerability could allow an attacker to impersonate a trusted entity by generating a malicious certificate with the same signature. This could lead to unauthorized access, data breaches, or other malicious activities.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file and it will analyze the dependencies for any known vulnerabilities.

The recommended way to mitigate this vulnerability is to upgrade to one of the patched versions. However, if upgrading is not immediately possible, applying the provided patch locally can serve as a temporary workaround.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 13.10.6 13.10.6
  • >= 14.0.0, < 14.3.1 14.3.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback