{"id":"CVE-2026-91006","revision":"d22b68ae821443ba944cbe9939f46433","records":[{"revision":"d22b68ae821443ba944cbe9939f46433","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-91006","aliases":[],"title":"Apache Karaf: OS Command Injection in Child-Instance Launch (instance:* / InstancesMBean)","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\u00A0/bin/sh\u00A0(Unix) or\u00A0cscript\u00A0(Windows). The caller-supplied\u00A0javaOpts\u00A0value is spliced into that string unquoted. A javaOpts value containing shell metacharacters (;,\u00A0|,\u00A0`,\u00A0$(...)) 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\u00A0instance:create,\u00A0instance:start,\u00A0instance:restart,\u00A0instance:change-opts, and the equivalent\u00A0InstanceMBean\u00A0JMX operations (createInstance,\u00A0startInstance,\u00A0changeJavaOpts,\u00A0cloneInstance).\n\nMitigation\u00A0  *  Set\u00A0karaf.secured.command.compulsory.roles=admin\u00A0in\u00A0etc/system.properties\u00A0to close the fail-open gap for all unconfigured command scopes.\n  *  Restrict which principals can reach\u00A0instance:*\u00A0commands and\u00A0InstancesMBean\u00A0via\u00A0etc/users.properties\u00A0role assignments.\n  *  Treat\u00A0javaOpts\u00A0passed to instance:create/instance:start/instance:change-opts/InstancesMBean\u00A0as untrusted input only from fully-trusted operators.","state":0,"publishedAt":"2026-09-28T10:44:32.652+00:00","modifiedAt":"2026-09-29T21:03:21.368+00:00","affected":[{"ecosystem":"Vendor product","name":"org.apache.karaf:org.apache.karaf.instance.core","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Apache Software Foundation\",\n                    \"product\": \"Apache Karaf\",\n                    \"packageName\": \"org.apache.karaf:org.apache.karaf.instance.core\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.4.12\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://lists.apache.org/thread/olzy0yjw82b20w59vonfjr1x7v5yzocr"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-91006","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-91006","identifiers":["CVE-2026-91006"]},"retained":false,"historicalAffected":[]}],"coverage":[]}