Debian Security Advisory
DLA-3093-1 rails -- LTS security update
- Date Reported:
- 13 Sep 2022
- Affected Packages:
- Security database references:
- In Mitre's CVE dictionary: CVE-2022-21831, CVE-2022-22577, CVE-2022-23633, CVE-2022-27777, CVE-2022-32224.
- More information:
The following vulnerabilities have been discovered in rails, a ruby based MVC frame work for web development.
A code injection vulnerability exists in the Active Storage that could allow an attacker to execute code via image_processing arguments.
An XSS Vulnerability in Action Pack that could allow an attacker to bypass CSP for non HTML like responses.
Action Pack is a framework for handling and responding to web requests. Under certain circumstances response bodies will not be closed. In the event a response is *not* notified of a `close`, `ActionDispatch::Executor` will not know to reset thread local state for the next request. This can lead to data being leaked to subsequent requests.
A XSS Vulnerability in Action View tag helpers which would allow an attacker to inject content if able to control input into specific attributes.
When serialized columns that use YAML (the default) are deserialized, Rails uses YAML.unsafe_load to convert the YAML data in to Ruby objects. If an attacker can manipulate data in the database (via means like SQL injection), then it may be possible for the attacker to escalate to an RCE.
For Debian 10 buster, these problems have been fixed in version 2:22.214.171.124+dfsg-1+deb10u4.
We recommend that you upgrade your rails packages.
For the detailed security status of rails please refer to its security tracker page at: https://security-tracker.debian.org/tracker/rails
Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS