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

High 7.7 Published Updated

An out-of-bounds write in OpenShift's oc patch command allows attackers to cause a denial of service on the master API service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-14632?

CVE-2018-14632 is a high-severity memory corruption vulnerability in Redhat Openshift Container Platform, published on 6 Sep 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-787

Which versions are affected by CVE-2018-14632?

5 open source packages ship an affected version, including github.com/evanphx/json-patch. It affects 2 products.

PackageAffectedFixed in
github.com/evanphx/json-patch GoAll versions0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible
github.com/evanphx/json-patch GoAll versions0.5.2
github.com/evanphx/json-patch GoAll versions0.5.2
github.com/evanphx/json-patch GoFrom 3.0.03.0.1-0.20180525145409-4c9aadca8f89
github.com/evanphx/json-patch GoFrom 3.0.03.0.1-0.20180525145409-4c9aadca8f89
Linux distribution packages (28)
atomic-openshift Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-clients Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-clients-redistributable Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-docker-excluder Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-excluder Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-hyperkube Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-hypershift Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-master Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-node Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-pod Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-sdn-ovs Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-template-service-broker Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift-tests Red Hat:openshift:3.11::el7All versions0:3.11.16-1.git.0.b48b8f8.el7
atomic-openshift Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-clients Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-clients-redistributable Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-cluster-capacity Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-docker-excluder Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-dockerregistry Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-excluder Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-federation-services Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-master Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-node Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-pod Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-sdn-ovs Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-service-catalog Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
atomic-openshift-tests Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7
tuned-profiles-atomic-openshift-node Red Hat:openshift:3.6::el7All versions0:3.6.173.0.130-1.git.0.8d78a39.el7

Products include Redhat Openshift Container Platform, Starcounter-Jack Json-Patch.

How do I fix CVE-2018-14632?

Upgrade github.com/evanphx/json-patch to a fixed version for your release line: 0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible or 3.0.1-0.20180525145409-4c9aadca8f89.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-14632 being exploited?

There is no known exploitation of CVE-2018-14632 in the wild and no public exploit code.

All Redhat Openshift Container Platform vulnerabilities

Sources

Also known as GHSA-gxhv-3hwf-wjp9, GO-2021-0076, RHBA-2018:2652, RHSA-2018:2654, UBUNTU-CVE-2018-14632.

Is CVE-2018-14632 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free