VDB
GHSA-954h-8gv7-2q75
GHSA-954h-8gv7-2q75
PUBLISHED
CVSS 9.800000190734863 CRITICAL
Record from GitHub Advisory Database · Published May 14, 2022
Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call. The issues lies in using strdup in ext/json/ext/generator/generator.c, which will stop after encountering a '\0' byte, returning a pointer to a string of length zero, which is not the length stored in space_len.
Risk scores
CVSS 3.0
9.800000190734863
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Timeline
- May 14, 2022 CVE Published
- Apr 9, 2026 Distribution Patch (5 in total, the first dated here)
- Apr 30, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-954h-8gv7-2q75
vulnetix vdb fixes GHSA-954h-8gv7-2q75
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/GHSA-954h-8gv7-2q75/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-14064 advisory
- https://access.redhat.com/errata/RHSA-2018:0378 url
- https://bugs.ruby-lang.org/issues/13853 url
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html url
- https://security.gentoo.org/glsa/201710-18 url
- https://usn.ubuntu.com/3685-1 url
- http://www.securitytracker.com/id/1042004 url
- https://access.redhat.com/errata/RHSA-2018:0583 url
- https://www.debian.org/security/2017/dsa-3966 url
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released url
- https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85 url
- https://hackerone.com/reports/209949 url
- https://access.redhat.com/errata/RHSA-2017:3485 url
- https://access.redhat.com/errata/RHSA-2018:0585 url
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released url
- http://www.securityfocus.com/bid/100890 url
- http://www.securitytracker.com/id/1039363 url