Ruby und Ruby on Rails (erb gem): Schwachstelle ermöglicht Codeausführung
WID-SEC-2026-1187 · first 21.04.2026 · updated 01.10.2026 · CVSS 9,8
What it is about
Ruby ist eine interpretierte, objektorientierte Skriptsprache. Ruby on Rails ist ein in der Programmiersprache Ruby geschriebenes und quelloffenes Web Application Framework. Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Ruby und Ruby on Rails ausnutzen, um Sicherheitsmaßnahmen zu umgehen und so beliebigen Code auszuführen.
Under what conditions?
Over the network and without logging in. This is the most dangerous combination: attackers can scan reachable devices automatically.
What can happen in the worst case
An attacker could use the vulnerability to
- Sicherheitsmaßnahmen zu umgehen
- so beliebigen Code auszuführen
Am I affected?
Affected according to the BSI:
- Debian Linux
- Red Hat Enterprise Linux
- Oracle Linux
- RESF Rocky Linux
- Gentoo Linux
- Open Source Ruby erb gem <4.0.3.1
- Open Source Ruby erb gem <4.0.4.1
- Open Source Ruby erb gem <6.0.1.1
- Open Source Ruby erb gem <6.0.4
- Open Source Ruby on Rails erb gem <4.0.3.1
- Open Source Ruby on Rails erb gem <4.0.4.1
- Open Source Ruby on Rails erb gem <6.0.1.1
and 10 more
The installed version is usually shown under “Help → About” or in the device’s admin interface.
What helps?
Update to at least:
- Open Source Ruby erb gem 4.0.3.1
- Open Source Ruby erb gem 4.0.4.1
- Open Source Ruby erb gem 6.0.1.1
- Open Source Ruby erb gem 6.0.4
- Open Source Ruby on Rails erb gem 4.0.3.1
- Open Source Ruby on Rails erb gem 4.0.4.1
- Open Source Ruby on Rails erb gem 6.0.1.1
- Open Source Ruby on Rails erb gem 6.0.4
Is the vulnerability already being exploited?
None of the CVEs is in the CISA catalogue of exploited vulnerabilities. That does not mean there are no attacks, only that none are documented.
Information and sources
- Original BSI advisory (WID)
- Red Hat Security Advisory RHSA-2026:33462 vom 2026-06-30 access.redhat.com
- Ruby Security Advisory vom 2026-04-20 www.ruby-lang.org
- Red Hat Security Advisory RHSA-2026:33478 vom 2026-06-30 access.redhat.com
- Amazon Linux Security Advisory ALAS2-2026-3284 vom 2026-05-14 alas.aws.amazon.com
- Red Hat Security Advisory RHSA-2026:18039 vom 2026-05-18 access.redhat.com
- Red Hat Security Advisory RHSA-2026:18065 vom 2026-05-18 access.redhat.com
- Rocky Linux Security Advisory RLSA-2026:18030 vom 2026-05-18 errata.build.resf.org
- Red Hat Security Advisory RHSA-2026:18030 vom 2026-05-18 access.redhat.com
- Oracle Linux Security Advisory ELSA-2026-18065 vom 2026-05-18 linux.oracle.com
- Rocky Linux Security Advisory RLSA-2026:18065 vom 2026-05-19 errata.build.resf.org
- Oracle Linux Security Advisory ELSA-2026-18030 vom 2026-05-19 linux.oracle.com
- Oracle Linux Security Advisory ELSA-2026-18039 vom 2026-05-20 linux.oracle.com
- Rocky Linux Security Advisory RLSA-2026:18039 vom 2026-05-19 errata.build.resf.org
- Red Hat Security Advisory RHSA-2026:20606 vom 2026-05-26 access.redhat.com
- Red Hat Security Advisory RHSA-2026:20670 vom 2026-05-26 access.redhat.com
- Red Hat Security Advisory RHSA-2026:20596 vom 2026-05-26 access.redhat.com
- Red Hat Security Advisory RHSA-2026:20614 vom 2026-05-26 access.redhat.com
- Rocky Linux Security Advisory RLSA-2026:20614 vom 2026-05-26 errata.build.resf.org
- Oracle Linux Security Advisory ELSA-2026-20614 vom 2026-05-27 linux.oracle.com
- Rocky Linux Security Advisory RLSA-2026:20606 vom 2026-06-04 errata.build.resf.org
- Red Hat Security Advisory RHSA-2026:26312 vom 2026-06-16 access.redhat.com
- Red Hat Security Advisory RHSA-2026:26655 vom 2026-06-17 access.redhat.com
- Red Hat Security Advisory RHSA-2026:35834 vom 2026-07-06 access.redhat.com
- Oracle Linux Security Advisory ELSA-2026-20596 vom 2026-07-07 oss.oracle.com
- Oracle Linux Security Advisory ELSA-2026-33577 vom 2026-07-07 linux.oracle.com
and 10 more sources in the original advisory
CVE: CVE-2026-41316
Source: BSI warning and information service (CERT-Bund); CISA. The assessment of the conditions is my reading of the BSI text; the external pages are in their original language.