As reported by upstream:
"A new security advisory has been released for Apache Karaf, that is
fixed in recent 4.2.0 release.
CVS-2018-11786: Apache Karaf SSH RBAC security enforcement
Vendor: The Apache Software Foundation
Versions Affected: all versions of Apache Karaf prior to 4.2.0.M1
If the sshd service in Karaf is left on so an administrator can manage
the running instance, any user with rights to the Karaf console can
pivot and read/write any file on the file system to which the Karaf
process user has access. This can be locked down a bit by using chroot
to change the root directory to protect files outside of the Karaf
install directory; it can be further locked down by defining a
security manager policy that limits file system access to those
directories beneath the Karaf home that are necessary for the system
to run. However, this still allows anyone with ssh access to the Karaf
process to read and write a large number of files as the Karaf process
This has been fixed in revision:
Mitigation: Apache Karaf users should upgrade to 4.2.0.M1 or later as
soon as possible.
JIRA Tickets: https://issues.apache.org/jira/browse/KARAF-5427
Credit: This issue was reported by R.A. Porter"
RHOSP 8: org.apache.karaf-karaf-220.127.116.11
RHOSP 9: org.apache.karaf-karaf-18.104.22.168
RHOSP 10: org.apache.karaf-karaf-22.214.171.124
RHOSP 12: org.apache.karaf-karaf-126.96.36.199
OpenDaylight in RHOSP are shipping vulnerable versions and enabling the functionality required to use this vulnerability to gain code execution in the context of the odl service account.
By default, Open Daylight enables the SSH console on port 8101, with default credentials. As a result, arbitrary code execution is possible with the default login (karaf:karaf). For example:
ssh -v karaf@<odl controller IP> -p 8101
opendaylight-user@root> exec whoami
odl (we are not running as root in the OS context, but the odl service user)
The only constraints applicable to code execution is that the execution does not occur as an administrative user unless Open Daylight has been specifically configured to run under such an account.
Applying the recommended patches developed upstream to limit access based on RBAC mitigates this, full shell access should be granted explicitly or disabled by default.
Open Daylight: The SSH console is enabled by default, with default credentials, and allows arbitrary file read and write, in addition to arbitrary command execution, in addition to regular Open Daylight Karaf functions.
This vulnerability is out of security support scope for the following products:
* Red Hat JBoss A-MQ 6
* Red Hat JBoss Fuse 6
Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.