CVE Catalog

CVE-2026-91006

Unknown
Published: Updated: Translated: NVD NIST

Summary

Apache Karaf's instance-management service (InstanceServiceImpl) builds the command line used to launch a child Karaf JVM by string concatenation, then executes it through /bin/sh (Unix) or cscript (Windows). The caller-supplied javaOpts value is spliced into that string unquoted, allowing shell metacharacters (;, |, `, $(...)) to be interpreted by the shell, leading to arbitrary OS command execution as the Karaf process user.

Risk Assessment

An attacker can gain full control over the system running Karaf by executing arbitrary commands, potentially compromising confidentiality, integrity, and availability of data and the entire infrastructure.

Recommendation

Apply mitigations: set karaf.secured.command.compulsory.roles=admin in etc/system.properties, restrict access to instance:* commands and InstancesMBean via role assignments in etc/users.properties, and treat javaOpts passed to instance:create/instance:start/instance:change-opts/InstancesMBean as untrusted input from fully-trusted operators only.

Other vulnerabilities in Apache Karaf

See all
Original NVD description (English source)

Apache Karaf's instance-management service (InstanceServiceImpl) builds the command line used to launch a child Karaf JVM by string concatenation, then executes it through /bin/sh (Unix) or cscript (Windows). The caller-supplied javaOpts value is spliced into that string unquoted. A javaOpts value containing shell metacharacters (;, |, `, $(...)) is interpreted by the shell instead of being passed to the JVM as an option, giving arbitrary OS command execution as the Karaf process user. Reachable via the shell commands instance:create, instance:start, instance:restart, instance:change-opts, and the equivalent InstanceMBean JMX operations (createInstance, startInstance, changeJavaOpts, cloneInstance). Mitigation  * Set karaf.secured.command.compulsory.roles=admin in etc/system.properties to close the fail-open gap for all unconfigured command scopes. * Restrict which principals can reach instance:* commands and InstancesMBean via etc/users.properties role assignments. * Treat javaOpts passed to instance:create/instance:start/instance:change-opts/InstancesMBean as untrusted input only from fully-trusted operators.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS