CVE Vulnerabilities

CVE-2018-20615

Out-of-bounds Read

Published: Mar 21, 2019 | Modified: Nov 07, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

An out-of-bounds read issue was discovered in the HTTP/2 protocol decoder in HAProxy 1.8.x and 1.9.x through 1.9.0 which can result in a crash. The processing of the PRIORITY flag in a HEADERS frame requires 5 extra bytes, and while these bytes are skipped, the total frame length was not re-checked to make sure they were present in the frame.

Weakness

The product reads data past the end, or before the beginning, of the intended buffer.

Affected Software

Name Vendor Start Version End Version
Haproxy Haproxy 1.8.0 (including) 1.8.19 (including)
Haproxy Haproxy 1.9.0 (including) 1.9.0 (including)
Haproxy Haproxy 1.9.0-dev0 (including) 1.9.0-dev0 (including)
Haproxy Haproxy 1.9.0-dev1 (including) 1.9.0-dev1 (including)
Haproxy Haproxy 1.9.0-dev10 (including) 1.9.0-dev10 (including)
Haproxy Haproxy 1.9.0-dev11 (including) 1.9.0-dev11 (including)
Haproxy Haproxy 1.9.0-dev2 (including) 1.9.0-dev2 (including)
Haproxy Haproxy 1.9.0-dev3 (including) 1.9.0-dev3 (including)
Haproxy Haproxy 1.9.0-dev4 (including) 1.9.0-dev4 (including)
Haproxy Haproxy 1.9.0-dev5 (including) 1.9.0-dev5 (including)
Haproxy Haproxy 1.9.0-dev6 (including) 1.9.0-dev6 (including)
Haproxy Haproxy 1.9.0-dev7 (including) 1.9.0-dev7 (including)
Haproxy Haproxy 1.9.0-dev8 (including) 1.9.0-dev8 (including)
Haproxy Haproxy 1.9.0-dev9 (including) 1.9.0-dev9 (including)
Red Hat OpenShift Container Platform 3.10 RedHat haproxy-0:1.8.17-3.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-enterprise-service-catalog-1:3.11.82-1.git.1673.133961e.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-0:3.11.82-1.git.0.08bc31b.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-cluster-autoscaler-0:3.11.82-1.git.0.efb6af0.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-descheduler-0:3.11.82-1.git.300.89765c9.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-dockerregistry-0:3.11.82-1.git.452.0ce6383.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-metrics-server-0:3.11.82-1.git.52.2fdca3f.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-node-problem-detector-0:3.11.82-1.git.254.a448936.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-service-idler-0:3.11.82-1.git.14.e353758.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat atomic-openshift-web-console-0:3.11.82-1.git.355.5e8b1d9.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat golang-github-openshift-oauth-proxy-0:3.11.82-1.git.425.7cac034.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat golang-github-prometheus-alertmanager-0:3.11.82-1.git.0.3bf41ce.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat golang-github-prometheus-node_exporter-0:3.11.82-1.git.1063.48444e8.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat golang-github-prometheus-prometheus-0:3.11.82-1.git.5027.9d24833.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat haproxy-0:1.8.17-3.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat jenkins-0:2.150.2.1549032159-1.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat jenkins-2-plugins-0:3.11.1549642489-1.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat openshift-ansible-0:3.11.82-3.git.0.9718d0a.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat openshift-enterprise-autoheal-0:3.11.82-1.git.219.0b5aff4.el7 *
Red Hat OpenShift Container Platform 3.11 RedHat openshift-enterprise-cluster-capacity-0:3.11.82-1.git.380.cf11c51.el7 *
Red Hat OpenShift Container Platform 3.9 RedHat haproxy-0:1.8.17-3.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-haproxy18-haproxy-0:1.8.4-4.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS RedHat rh-haproxy18-haproxy-0:1.8.4-4.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS RedHat rh-haproxy18-haproxy-0:1.8.4-4.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS RedHat rh-haproxy18-haproxy-0:1.8.4-4.el7 *
Haproxy Ubuntu bionic *
Haproxy Ubuntu cosmic *
Haproxy Ubuntu devel *
Haproxy Ubuntu upstream *

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • To reduce the likelihood of introducing an out-of-bounds read, ensure that you validate and ensure correct calculations for any length argument, buffer size calculation, or offset. Be especially careful of relying on a sentinel (i.e. special character such as NUL) in untrusted inputs.

References