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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›