mittel6.1
CVE-2020-25739
Gon gem lack of escaping certain input when outputting as JSON
Auswirkung
An issue was discovered in the gon gem before gon-6.4.0 for Ruby. MultiJson does not honor the escape_mode parameter to escape fields as an XSS protection mechanism. To mitigate, json_dumper.rb in gon now does escaping for XSS by default without relying on MultiJson.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: geringes Risiko, dass Daten ausgelesen werden, geringes Risiko, dass Daten oder Systeme verändert werden. Der Angriff kann über die verwundbare Komponente hinaus wirken.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | gon | < 6.4.0 | 6.4.0 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Canonical | Ubuntu Linux | Version 18.04 |
| Debian | Debian Linux | Version 9.0 |
| Gon Project | Gon | vor 6.4.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/gazay/gon/commit/fe3c7b2191a992386dc9edd37de5447a4e809bc7
- https://lists.debian.org/debian-lts-announce/2020/09/msg00018.html
- https://usn.ubuntu.com/4560-1/
- https://github.com/advisories/GHSA-78vq-9j56-wrfr
- https://nvd.nist.gov/vuln/detail/CVE-2020-25739
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/gon/CVE-2020-25739.yml