CVE-2021-31164: Command injection in Apache Unomi

org.apache.unomi:unomi Updated 02 Oct 2025

Summary

16/06/2021
Yes i
High
7.5

CVE-2021-31164: Command injection in Apache Unomi. Affects org.apache.unomi:unomi versions < 1.5.5. Fixed in 1.5.5. 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

Apache Unomi is an open-source customer data platform that allows organizations to collect, store, and analyze customer data to deliver personalized experiences. It is commonly used in marketing automation, personalization, and customer experience management. However, a vulnerability has been discovered in Apache Unomi prior to version 1.5.5 that allows for CRLF log injection due to the lack of escaping in the log statements.

Vulnerability Detail

The command injection vulnerability in Apache Unomi can be exploited by an attacker to inject arbitrary commands into log statements. This can lead to various security risks, including remote code execution, unauthorized access to sensitive information, and potential compromise of the affected system. The lack of proper input validation and escaping in the log statements allows an attacker to manipulate the log entries and execute arbitrary commands.

How To Fix

Minimum fixed version

1.5.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advised to sanitize and validate user input before it is logged. This can be done by implementing proper input validation and escaping techniques in the code that handles log statements. By sanitizing the input, the risk of command injection can be mitigated. Here is an example of how input validation and escaping can be implemented in Java:

String sanitizedInput = StringEscapeUtils.escapeJava(userInput);
logger.info("User input: " + sanitizedInput);

This code snippet uses the Apache Commons Lang library to escape special characters in the user input before logging it. By applying this technique, the vulnerability can be mitigated until the package is updated to a fixed version.

Conclusion

In conclusion, the command injection vulnerability in Apache Unomi prior to version 1.5.5 can lead to serious security risks. It is crucial to update the package to the latest version or apply the recommended workaround to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.unomi:unomi →

Share this vulnerability

FAQ

Apache Unomi is an open-source customer data platform used for collecting, storing, and analyzing customer data to deliver personalized experiences.

Command injection is a security vulnerability that allows an attacker to execute arbitrary commands on a vulnerable system.

The potential risks of this vulnerability include remote code execution, unauthorized access to sensitive information, and compromise of the affected system.

To fix this vulnerability, it is recommended to upgrade Apache Unomi to version 1.5.5 or later.

Yes, a temporary workaround is to sanitize and validate user input before it is logged.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.unomi:unomi.

How To Fix

Minimum fixed version

1.5.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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