CVE-2026-91006: Apache Karaf: OS Command Injection in Child-Instance Launch (instance:* / InstancesMBean)
CVE-2026-91006 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- High
- CVSS base score
- 8.8 (Apache), 8.8 (Red Hat)
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H· base score 8.8, scored by CISA-ADPAttack vector: network. Attack complexity: low. Privileges required: low. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection')
- EPSS
- 1.14% chance of exploitation in the next 30 days (67th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- Fixed releases
- Apache: 4.4.12
- Assigned by
- apache (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-91006; each belongs to its advisory, not to every product listed. How records are collected and checked.
Description
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.
Text from the CVE.org record (apache).
How do I fix CVE-2026-91006?
Upgrade to a fixed release named by the vendor:
- Apache: 4.4.12
- The risk can be reduced by limiting which users can reach the vulnerable functionality: set karaf.secured.command.compulsory.roles=admin in etc/system.properties so that command scopes without explicit RBAC configuration are restricted to administrators instead of failing open; use role assignments in etc/users.properties to restrict which principals can invoke the instance:* shell commands and the InstancesMBean JMX interface; and treat javaOpts values passed to instance:create, instance:start, instance:restart, instance:change-opts, or the equivalent InstancesMBean operations as untrusted, accepting them only from fully trusted operators. These configuration changes restrict access to the vulnerable code paths but do not remove the underlying flaw itself. (Red Hat)
Vendor advisories for CVE-2026-91006
Apache
1 advisory- Advisory severityHigh8.8
High [CVE-2026-91006] 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)
CVE-2026-91006Source published Source updated
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…
- Related products — impact not confirmed
- Apache Karaf
- Source-reported affected versions
- Apache Karaf before 4.4.12
- Source-reported fixed versions
- 4.4.12
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
- Workarounds
- 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.
Red Hat
1 advisory- Advisory severityHigh8.8
High [CVE-2026-91006] org.apache.karaf.instance/org.apache.karaf.instance.core: karaf: Apache Karaf: Arbitrary command execution via unquoted instance options
CVE-2026-91006Source published Source updated
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…
- Affected products in this advisory
- No product details extracted. Check the source bulletin.
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- The risk can be reduced by limiting which users can reach the vulnerable functionality: set karaf.secured.command.compulsory.roles=admin in etc/system.properties so that command scopes without explicit RBAC configuration are restricted to administrators instead of failing open; use role assignments in etc/users.properties to restrict which principals can invoke the instance:* shell commands and the InstancesMBean JMX interface; and treat javaOpts values passed to instance:create, instance:start, instance:restart, instance:change-opts, or the equivalent InstancesMBean operations as untrusted, accepting them only from fully trusted operators. These configuration changes restrict access to the vulnerable code paths but do not remove the underlying flaw itself.
References
- CVE-2026-91006 recordCVE.org
- CVE-2026-91006 detailNVD
- lists.apache.org/thread/olzy0yjw82b20w59vonfjr1x7v5yzocrvendor-advisory
Timeline
- CVE record published
- First vendor advisory listed by VulniPulse
- CVE record last updated
More Apache advisories
CVE-2026-92142Sep 29, 2026Apache Karaf exposes a JMX MBeanServer guarded by KarafMBeanServerGuardCVE-2026-91048Sep 29, 2026The jdbc shell command scope shipped no org.apache.karaf.command.acl.jdbc.cfgCVE-2026-91012Sep 29, 2026org.apache.karaf.config.core.impl.ConfigRepositoryImpl#update(pid, properties)CVE-2026-90979Sep 28, 2026LDAPCache and LDAPBackingEngine build LDAP search filters for user lookup and role lookupCVE-2026-92230Sep 17, 2026Apache Karaf's XmlUtils cached XML parser/transformer factories in static ThreadLocalCVE-2026-60078Nov 23, 2026Allocation of resources without limits or throttling vulnerability in Apache IoTDB
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.