GitHub Advisory Database
GHSA-3m6g-2423-7cp3
Ruby JSON has a format string injection vulnerability
Details
Impact
A format string injection vulnerability than that lead to denial of service attacks or information disclosure, when the allow_duplicate_key: false parsing option is used to parse user supplied documents.
This option isn't the default, if you didn't opt-in to use it, you are not impacted.
Patches
Patched in 2.19.2.
Workarounds
The issue can be avoided by not using the allow_duplicate_key: false parsing option.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| RubyGems | json | From 2.18.0 before 2.19.2 (fixed in 2.19.2) |
| RubyGems | json | From 2.16.0 before 2.17.1.2 (fixed in 2.17.1.2) |
| RubyGems | json | From 2.14.0 before 2.15.2.1 (fixed in 2.15.2.1) |