error_outline
On 19 November 2026, the Ruby security team released Ruby 4.0.10 to fix seven vulnerabilities in Ruby, together known as Ruby2Shell. This advisory explains how these vulnerabilities related to Ans and what Ans did to fix them.
Summary
| Vulnerability | Ruby2Shell: seven vulnerabilities in Ruby's regular expressions and in changing the case of text |
| Identifiers | GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-87fm-7w84-j2px, GHSA-wpqw-5qxg-m68r, GHSA-3p8q-wmhx-vm2w, GHSA-7whj-cfh7-xgm4, GHSA-pvgc-g7gj-pv6h (CVE identifiers have not been assigned yet) |
| Severity | Up to remote code execution (no rating published by Ruby) |
| Affected software | Ruby 4.0.0 to 4.0.9, Ruby 3.4.0 to 3.4.12, and Ruby 3.3.13 and earlier |
| Ans status | Fixed on 19 November 2026 |
| Action required | None |
What is Ruby2Shell
Ruby is the programming language that Ans is built with. Ruby2Shell is a set of flaws in two parts of Ruby:
- Regular expressions, which programs use to search for patterns in text.
- Changing text to upper case or lower case.
An attacker can send specially made text to a Ruby program. Depending on the flaw, the program can then crash, leak memory or, in some cases, run the attacker's code. The Ruby security team is aware of proofs of concept for remote code execution. There are no reports of attacks.
How Ruby2Shell affected Ans
The Ans application is built with Ruby on Rails and ran Ruby 4.0.9 before this update. Like most applications, Ans changes the case of text that users enter, for example email addresses. This means Ans used a vulnerable version of Ruby.
Ans updated all servers that host the Ans application to Ruby 4.0.10 on 19 November 2026, the day the Ruby security team released the fix. There are no signs that anyone exploited these vulnerabilities in Ans.
The Code editor question type can run Ruby code that students write, in a separate and isolated environment without access to the Ans application or its data. Ans has also updated this environment to the latest Ruby version.
Third-party tools
Ans integrates with other systems, such as learning management systems (LMS) through LTI. Some of these systems, such as Canvas, run on Ruby. Ruby2Shell may affect these systems, depending on how they are hosted. Contact the administrator or supplier of these systems to check whether they are affected.
lightbulb_outline Subscribe to the Security advisory section to receive future security advisories from Ans.
Comments
0 comments
Article is closed for comments.