{"id":"CVE-2026-91006","aliases":["CVE-2026-91006"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Karaf: OS Command Injection in Child-Instance Launch (instance:* / InstancesMBean)","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. 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.\n\n\nReachable via the shell commands instance:create, instance:start, instance:restart, instance:change-opts, and the equivalent InstanceMBean JMX operations (createInstance, startInstance, changeJavaOpts, cloneInstance).\n\nMitigation   *  Set karaf.secured.command.compulsory.roles=admin in etc/system.properties to close the fail-open gap for all unconfigured command scopes.\n  *  Restrict which principals can reach instance:* commands and InstancesMBean via etc/users.properties role assignments.\n  *  Treat javaOpts passed to instance:create/instance:start/instance:change-opts/InstancesMBean as untrusted input only from fully-trusted operators.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\n\nReachable via the shell commands instance:create, instance:start, instance:restart, instance:change-opts, and the equivalent InstanceMBean JMX operations (createInstance, startInstance, changeJavaOpts, cloneInstance).\n\nMitigation   *  Set karaf.secured.command.compulsory.roles=admin in etc/system.properties to close the fail-open gap for all unconfigured command scopes.\n  *  Restrict which principals can reach instance:* commands and InstancesMBean via etc/users.properties role assignments.\n  *  Treat javaOpts passed to instance:create/instance:start/instance:change-opts/InstancesMBean as untrusted input only from fully-trusted operators.","source":"cvelist"}],"published":"2026-09-28T10:44:32.652Z","modified":"2026-10-08T19:19:50.990Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.4.12","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Karaf","package":"org.apache.karaf:org.apache.karaf.instance.core","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.4.12"}],"vendor":"apache","product":"karaf","cpe":"cpe:2.3:a:apache:karaf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/olzy0yjw82b20w59vonfjr1x7v5yzocr","tags":["mailing-list","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/09/28/3","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["n0mi1k <nomilksec@gmail.com>"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-29T03:55:20.472Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-91006","url":"https://www.cve.org/CVERecord?id=CVE-2026-91006","licence":"CVE Terms of Use","modified":"2026-09-29T21:03:21.368Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-91006","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91006","licence":"Public domain","modified":"2026-10-08T19:19:50.990Z"}],"updatedAt":"2026-11-25T22:59:41.326Z","epss":{"score":0.01135,"percentile":0.67409,"date":"2026-12-01T12:00:22.000Z"}}