CVE Vulnerabilities

CVE-2019-5482

Heap-based Buffer Overflow

Published: Sep 16, 2019 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
6.3 MODERATE
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Heap buffer overflow in the TFTP protocol handler in cURL 7.19.4 to 7.65.3.

Weakness

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Affected Software

NameVendorStart VersionEnd Version
CurlHaxx7.19.4 (including)7.65.3 (including)
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-apr-0:1.6.3-73.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-apr-util-0:1.6.1-54.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-brotli-0:1.0.6-9.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-curl-0:7.64.1-21.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-httpd-0:2.4.37-41.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-jansson-0:2.11-24.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-mod_cluster-native-0:1.3.12-13.Final_redhat_2.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-mod_http2-0:1.11.3-8.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-mod_jk-0:1.2.46-26.redhat_1.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-mod_md-1:2.0.8-10.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-mod_security-0:2.9.2-20.GA.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-nghttp2-0:1.39.2-10.jbcs.el6*
JBoss Core Services on RHEL 6RedHatjbcs-httpd24-openssl-1:1.1.1c-4.jbcs.el6*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-apr-0:1.6.3-73.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-apr-util-0:1.6.1-54.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-brotli-0:1.0.6-9.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-curl-0:7.64.1-21.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-httpd-0:2.4.37-41.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-jansson-0:2.11-24.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-mod_cluster-native-0:1.3.12-13.Final_redhat_2.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-mod_http2-0:1.11.3-8.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-mod_jk-0:1.2.46-26.redhat_1.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-mod_md-1:2.0.8-10.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-mod_security-0:2.9.2-20.GA.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-nghttp2-0:1.39.2-10.jbcs.el7*
JBoss Core Services on RHEL 7RedHatjbcs-httpd24-openssl-1:1.1.1c-4.jbcs.el7*
Red Hat Enterprise Linux 7RedHatcurl-0:7.29.0-59.el7*
Red Hat Enterprise Linux 7.4 Advanced Update SupportRedHatcurl-0:7.29.0-42.el7_4.3*
Red Hat Enterprise Linux 7.4 Telco Extended Update SupportRedHatcurl-0:7.29.0-42.el7_4.3*
Red Hat Enterprise Linux 7.4 Update Services for SAP SolutionsRedHatcurl-0:7.29.0-42.el7_4.3*
Red Hat Enterprise Linux 7.6 Extended Update SupportRedHatcurl-0:7.29.0-51.el7_6.4*
Red Hat Enterprise Linux 7.7 Extended Update SupportRedHatcurl-0:7.29.0-54.el7_7.4*
Red Hat Enterprise Linux 8RedHatcurl-0:7.61.1-12.el8*
Red Hat OpenShift DoRedHatopenshiftdo/odo-init-image-rhel7:1.1.3-2*
CurlUbuntubionic*
CurlUbuntudevel*
CurlUbuntudisco*
CurlUbuntuesm-infra-legacy/trusty*
CurlUbuntuesm-infra/bionic*
CurlUbuntuesm-infra/xenial*
CurlUbuntutrusty*
CurlUbuntutrusty/esm*
CurlUbuntuxenial*

Potential Mitigations

  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.
  • D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.
  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as “rebasing” (for Windows) and “prelinking” (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.
  • For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].

References