# Unsafe object creation in json RubyGem

Advisory record · `GHSA-jphg-qwrw-7w9g`

- **Identifiers:** `GHSA-jphg-qwrw-7w9g` · `CVE-2020-10663`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html)
- **Tags:** [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 27 Jul 2020
- **Updated:** 8 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 27 Jul 2020, 18:08 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `json` (RubyGems): affected `<2.3.0`; fixed in `2.3.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.068, the 94th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 27 Jul 2020. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-jphg-qwrw-7w9g](https://github.com/advisories/GHSA-jphg-qwrw-7w9g)
- [OSV: GHSA-jphg-qwrw-7w9g](https://osv.dev/vulnerability/GHSA-jphg-qwrw-7w9g)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-10663>
- <https://www.ruby-lang.org/en/news/2020/03/19/json-dos-cve-2020-10663>
- <https://www.debian.org/security/2020/dsa-4721>
- <https://support.apple.com/kb/HT211931>
- <https://security.netapp.com/advisory/ntap-20210129-0003>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NK2PBXWMFRUD7U7Q7LHV4KYLYID77RI4>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F4TNVTT66VPRMX5UZYSDGSVRXKKDDDU5>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7QL6MJD2BO4IRJ5CJFNMCDYMQQFT24BJ>
- <https://lists.debian.org/debian-lts-announce/2020/04/msg00030.html>
- <https://lists.apache.org/thread.html/ree3abcd33c06ee95ab59faa1751198a1186d8941ddc2c2562c12966c@%3Cissues.zookeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/rec8bb4d637b04575da41cfae49118e108e95d43bfac39b7b698ee4db@%3Cissues.zookeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/rd9b9cc843f5cf5b532bdad9e87a817967efcf52b917e8c43b6df4cc7@%3Cissues.zookeeper.apache.org%3E>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-jphg-qwrw-7w9g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jphg-qwrw-7w9g/>. Everything for agents: <https://agentprime.io/llms.txt>.
