# CVE-2018-14632: JSON-Patch Out-of-bounds Write vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.23% (percentile 83, 2026-11-26)
- **CWE:** CWE-787
- **Aliases:** GHSA-gxhv-3hwf-wjp9, GO-2021-0076
- **Published:** 2018-09-06T13:00:00.000Z
- **Modified:** 2026-06-17T01:41:20.073Z

## Who should check

- Projects that depend on Go package github.com/evanphx/json-patch (\< 0.5.2)
- Anyone running Red Hat atomic-openshift atomic-openshift-3.7

## Description

An out of bound write can occur when patching an Openshift object using the 'oc patch' functionality in OpenShift Container Platform before 3.7. An attacker can use this flaw to cause a denial of service attack on the Openshift master api service which provides cluster management.

## Affected and fixed versions

- Go `github.com/evanphx/json-patch`: affected \< 0.5.2; fixed 0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible (osv)
- Red Hat atomic-openshift: atomic-openshift-3.7 (cvelist)

## Mitigation

- Upgrade github.com/evanphx/json-patch to one of 0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-14632. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-14632.md
Affected: github.com/evanphx/json-patch < 0.5.2
Fixed in: 0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible

Steps:
1. Search this machine and project for github.com/evanphx/json-patch (Go), Red Hat atomic-openshift: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-14632 being exploited?

There is no confirmed exploitation: CVE-2018-14632 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-14632?

High: CVSS 7.7 (v3.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2018-14632?

github.com/evanphx/json-patch \< 0.5.2.

### Is there a fix for CVE-2018-14632?

Yes. Fixed in 0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible. Upgrade github.com/evanphx/json-patch to one of 0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible (or later in the same release line).

### How do I check if I'm affected by CVE-2018-14632?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHBA-2018:2652>
- vendor: <https://access.redhat.com/errata/RHSA-2018:2654>
- vendor: <https://access.redhat.com/errata/RHSA-2018:2908>
- vendor: <https://access.redhat.com/errata/RHSA-2018:2906>
- vendor: <https://access.redhat.com/errata/RHSA-2018:2709>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-14632>
- patch: <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14632>
- patch: <https://github.com/evanphx/json-patch/commit/4c9aadca8f89e349c999f04e28199e96e81aba03#diff-65c563bba473be9d94ce4d033f74810e>
- patch: <https://github.com/evanphx/json-patch/pull/57>
- patch: <https://github.com/evanphx/json-patch/commit/4c9aadca8f89e349c999f04e28199e96e81aba03>
- other: <https://github.com/evanphx/json-patch>
- other: <https://pkg.go.dev/vuln/GO-2021-0076>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-14632>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-gxhv-3hwf-wjp9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2021-0076> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-14632> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-14632>
