Command Injection Affecting org.apache.karaf.instance:org.apache.karaf.instance.core package, versions [,4.4.12)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.14% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEKARAFINSTANCE-22283238
  • published8 Nov 2026
  • disclosed28 Sept 2026
  • creditn0mi1k

Introduced: 28 Sep 2026

CVE-2026-91006  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade org.apache.karaf.instance:org.apache.karaf.instance.core to version 4.4.12 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via InstanceServiceImpl in the instance-management service, where doStart and the self-restart path of restartInstance concatenate unquoted javaOpts into a command executed by a shell. An attacker can execute arbitrary OS commands as the Karaf process user by supplying shell metacharacters in javaOpts through the instance:* commands or corresponding JMX operations.

Notes

  • The command-entry path requires an authenticated shell user, but before the fix the instance command scope had no ACL, so any authenticated user could invoke instance:* regardless of role.

Workarounds

  • Set karaf.secured.command.compulsory.roles=admin in etc/system.properties to require admin authorization for command scopes without configured role requirements, reducing access to the vulnerable instance operations.
  • Restrict role assignments in etc/users.properties so only authorized principals can access instance:* commands and InstancesMBean, limiting who can supply javaOpts to the vulnerable operations.
  • Accept javaOpts for instance:create, instance:start, instance:change-opts, and InstancesMBean operations only from fully trusted operators, reducing the chance that untrusted shell metacharacters reach the vulnerable launch path.

CVSS Base Scores

version 4.0
version 3.1