CVE-2018-14632: JSON-Patch Out-of-bounds Write vulnerability in github.com/evanphx/json-patch

Summary

13/05/2022
Yes i
High
7.7

CVE-2018-14632: JSON-Patch Out-of-bounds Write vulnerability. Affects github.com/evanphx/json-patch across 2 version ranges.

< 0.5.2 >= 3.0.0, < 3.0.1-0.20180525145409-4c9aadca8f89

Fixed in 0.5.2 or 3.0.1-0.20180525145409-4c9aadca8f89, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package github.com/evanphx/json-patch is a Go library that provides functionality for applying JSON patches. It is commonly used in applications that require JSON patching capabilities. This vulnerability affects versions before 0.5.2 and 3.0.1-0.20180525145409-4c9aadca8f89 of the package.

Vulnerability Detail

An out-of-bounds write vulnerability exists in the oc patch functionality of OpenShift Container Platform before 3.7. This vulnerability allows an attacker to cause a denial of service attack on the Openshift master API service, which is responsible for cluster management. By exploiting this flaw, an attacker can manipulate the JSON patch data to write beyond the intended boundaries, leading to a crash or other unexpected behavior.

How To Fix

Latest published version: v0.5.2 as of 23 Oct 2026

go get github.com/evanphx/json-patch@v0.5.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.5.2 0.5.2
    go get github.com/evanphx/json-patch@v0.5.2
  • >= 3.0.0, < 3.0.1-0.20180525145409-4c9aadca8f89 3.0.1-0.20180525145409-4c9aadca8f89
    go get github.com/evanphx/json-patch@v3.0.1-0.20180525145409-4c9aadca8f89

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to the patched versions of the package.

Conclusion

The JSON-Patch Out-of-bounds Write vulnerability in github.com/evanphx/json-patch can be fixed by upgrading to the patched versions of the package. It is recommended to apply the fix as soon as possible to prevent potential denial of service attacks on the Openshift master API service. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/evanphx/json-patch →

Share this vulnerability

FAQ

This vulnerability allows an attacker to cause a denial of service attack on the Openshift master API service, potentially disrupting cluster management.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your Gopkg.lock file to the playground and it will alert you in real-time if your application is vulnerable.

There are no known public exploits for this vulnerability at the time of writing. However, it is always recommended to apply security patches as soon as they are available.

Yes, this vulnerability can be exploited remotely by sending a specially crafted JSON patch to the Openshift master API service.

Yes, the CVSS score for this vulnerability is 7.7, indicating a high severity.

How To Fix

Latest published version: v0.5.2 as of 23 Oct 2026

go get github.com/evanphx/json-patch@v0.5.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.5.2 0.5.2
    go get github.com/evanphx/json-patch@v0.5.2
  • >= 3.0.0, < 3.0.1-0.20180525145409-4c9aadca8f89 3.0.1-0.20180525145409-4c9aadca8f89
    go get github.com/evanphx/json-patch@v3.0.1-0.20180525145409-4c9aadca8f89

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback