cve.bz

CVE-2026-91006 apache karaf: OS Command Injection

8.8 highEPSS 1.1%

High (8.8) in apache karaf. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-91006 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-91006?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-91006?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-91006 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-91006

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-91006](https://cve.bz/cve/badge/CVE-2026-91006.svg)](https://cve.bz/cve/CVE-2026-91006)

HTML:

<a href="https://cve.bz/cve/CVE-2026-91006"><img src="https://cve.bz/cve/badge/CVE-2026-91006.svg" alt="CVE-2026-91006"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Karafbefore 4.4.12

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw rated IMPORTANT by Red Hat was found in Apache Karaf, which ships in Red Hat JBoss Fuse 7. The Karaf instance-management service (InstanceServiceImpl) builds the command line used to launch child Karaf JVMs by string concatenation and executes it through /bin/sh (Unix) or cscript (Windows). Caller-supplied Java options (javaOpts) are spliced into this command line without quoting or validation, so an authenticated attacker with access to Karaf's instance-management shell commands (instance:create, instance:start, instance:restart, instance:change-opts) or the equivalent InstanceMBean JMX operations can supply values containing shell metacharacters that are interpreted by the underlying shell instead of being passed to the JVM, resulting in arbitrary command execution on the host with the privileges of the Karaf process user. Red Hat and CISA both assign this flaw a CVSS 3.1 base score of 8.8. In Red Hat JBoss Fuse 7 (fuse-7-els-2), which includes the org.apache.karaf.instance.core component, resolution is delegated to the product team, whose assessment is that the vulnerable code is not in the execution path in the shipped product.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Fuse 7org.apache.karaf.instance.coreNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-91006.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON