hoch7.5
CVE-2021-41819
Cookie Prefix Spoofing in CGI::Cookie.parse
Auswirkung
CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem prior to versions 0.3.1, 0.2.1, 0.1.1, and 0.1.0.1 for Ruby.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten oder Systeme verändert werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | cgi | = 0.3.0 | 0.3.1 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Debian | Debian Linux | Versionen 9.0, 10.0, 11.0 |
| Fedoraproject | Fedora | Versionen 34, 35 |
| Opensuse | Factory | Alle Versionen |
| Opensuse | Leap | Version 15.2 |
| Red Hat | Enterprise Linux | Version 8.0 |
| Red Hat | Software Collections | Alle Versionen |
| Ruby-lang | Cgi | Versionen 0.1.0, 0.2.0, 0.3.0 |
| Ruby-lang | Ruby | bis einschließlich 2.6.8 ab 2.7.0 vor 2.7.5 ab 3.0.0 vor 3.0.3 |
| SUSE | Linux Enterprise | Versionen 11.0, 12.0, 15.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://hackerone.com/reports/910552
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/
- https://security.gentoo.org/glsa/202401-27
- https://security.netapp.com/advisory/ntap-20220121-0003/
- https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/
- https://github.com/advisories/GHSA-4vf4-qmvg-mh7h
- https://nvd.nist.gov/vuln/detail/CVE-2021-41819
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-41819.yml