kritisch9.8
CVE-2022-21831
Possible code injection vulnerability in Rails / Active Storage
Auswirkung
The Active Storage module of Rails starting with version 5.2.0 is possibly vulnerable to code injection. This issue was patched in versions 5.2.6.3, 6.0.4.7, 6.1.4.7, and 7.0.2.3. To work around this issue, applications should implement a strict allow-list on accepted transformation methods or arguments. Additionally, a strict ImageMagick security policy will help mitigate this issue.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | activestorage | >= 5.2.0, <= 5.2.6.2 | 5.2.6.3 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Debian | Debian Linux | Version 10.0 |
| Rubyonrails | Active Storage | ab 5.2.0 vor 5.2.6.3 ab 6.0.0 vor 6.0.4.7 ab 6.1.0 vor 6.1.4.7 ab 7.0.0 vor 7.0.2.3 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-w749-p3v6-hccq
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
- https://security.netapp.com/advisory/ntap-20221118-0001/
- https://www.debian.org/security/2023/dsa-5372
- https://nvd.nist.gov/vuln/detail/CVE-2022-21831
- https://github.com/rails/rails/commit/0a72f7d670e9aa77a0bb8584cb1411ddabb7546e
- https://groups.google.com/g/rubyonrails-security/c/n-p-W1yxatI
- https://rubysec.com/advisories/CVE-2022-21831/
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2022-21831.yml