CVE-2018-1000301
Critical · 9.1CVSS
9.1
EPSS
5.8%
Published
May 24, 2018
CISA due date
—
Cloudanix analysis
An older version of the curl tool could be tricked into reading extra data or crashing when handling certain streaming responses, which might interrupt services or leak information.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer over-read (CWE-126) when processing RTSP responses allows a remote attacker to read past the end of a heap buffer allocated for downloaded content, resulting in denial of service or potential memory disclosure.
Why it matters to the business
Applications using curl for RTSP transfers may crash or expose sensitive memory contents, disrupting availability of services and risking confidentiality of data processed on affected systems.
How an attack unfolds
An attacker controls or intercepts an RTSP server response and crafts content whose length exceeds the expected buffer allocation; curl's RTSP handling code then performs an out-of-bounds read while storing the data.
How to fix it
Upgrade curl to version 7.60.0 or later; the fix is present in commit 61c434273654048462873c031eda027dd4acd549. Rebuild and redeploy any statically linked applications that embed the vulnerable curl library.
How to confirm the fix worked
Confirm installed curl version is 7.60.0 or newer; exercise RTSP code paths with both normal and maximum-length responses to verify absence of crashes or sanitizer violations.
Typical attack path
- Attacker positions a malicious or compromised RTSP endpoint reachable by the victim client
- Victim client issues an RTSP request via curl
- Attacker returns a response containing a payload sized to trigger buffer miscalculation
- curl performs the out-of-bounds read during content storage
- Process crashes or leaks adjacent heap memory to the attacker
How to detect it
Search application and system logs for curl process crashes or segmentation faults occurring during RTSP sessions; inspect memory sanitizer reports or core dumps that reference RTSP buffer handling.
What your security team should do
- Prioritize upgrade of all curl instances to 7.60.0 or newer within change windows
- Inventory internal and third-party software that statically or dynamically links curl and schedule updates
- Add curl version checks to continuous integration and container scanning pipelines
- Review RTSP usage in production workloads and consider disabling the protocol if not required
The record
curl version curl 7.20.0 to and including curl 7.59.0 contains a CWE-126: Buffer Over-read vulnerability in denial of service that can result in curl can be tricked into reading data beyond the end of a heap based buffer used to store downloaded RTSP content.. This vulnerability appears to have been fixed in curl < 7.20.0 and curl >= 7.60.0.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.11 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.12 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.13 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.14 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.15 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.16 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.17 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.18 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.19 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.20 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.21 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.22 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.4 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.5 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.6 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.7 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.8 | curl | 0 | 7.60.0-r0 |
| Alpine:v3.9 | curl | 0 | 7.60.0-r0 |
| Debian:11 | curl | 0 | 7.60.0-1 |
| Debian:12 | curl | 0 | 7.60.0-1 |
| Debian:13 | curl | 0 | 7.60.0-1 |
| Debian:7 | curl | 0 | 7.26.0-1+wheezy25+deb7u1 |
| Debian:8 | curl | 0 | 7.38.0-4+deb8u11 |
| Debian:9 | curl | 0 | 7.52.1-5+deb9u6 |
| Mageia:6 | curl | 0 | 7.54.1-2.7.mga6 |
| Red Hat:enterprise_linux:7::client | curl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::client | curl-debuginfo | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::client | libcurl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::client | libcurl-devel | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::client | nss-pem | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::client | nss-pem-debuginfo | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::computenode | curl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::computenode | curl-debuginfo | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::computenode | libcurl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::computenode | libcurl-devel | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::computenode | nss-pem | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::computenode | nss-pem-debuginfo | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::server | curl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::server | curl-debuginfo | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::server | libcurl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::server | libcurl-devel | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::server | nss-pem | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::server | nss-pem-debuginfo | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::workstation | curl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::workstation | curl-debuginfo | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::workstation | libcurl | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::workstation | libcurl-devel | 0 | 0:7.29.0-51.el7 |
| Red Hat:enterprise_linux:7::workstation | nss-pem | 0 | 0:1.0.3-5.el7 |
| Red Hat:enterprise_linux:7::workstation | nss-pem-debuginfo | 0 | 0:1.0.3-5.el7 |
| Red Hat:rhel_aus:7.4::server | curl | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_aus:7.4::server | curl-debuginfo | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_aus:7.4::server | libcurl | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_aus:7.4::server | libcurl-devel | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_e4s:7.4::server | curl | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_e4s:7.4::server | curl-debuginfo | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_e4s:7.4::server | libcurl | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_e4s:7.4::server | libcurl-devel | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_eus:7.5::computenode | curl | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::computenode | curl-debuginfo | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::computenode | libcurl | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::computenode | libcurl-devel | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::server | curl | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::server | curl-debuginfo | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::server | libcurl | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_eus:7.5::server | libcurl-devel | 0 | 0:7.29.0-46.el7_5.1 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-curl | 0 | 0:7.61.1-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-curl-debuginfo | 0 | 0:7.61.1-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-httpd | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-httpd-debuginfo | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-httpd-devel | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-httpd-manual | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-httpd-tools | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-libcurl | 0 | 0:7.61.1-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-libcurl-devel | 0 | 0:7.61.1-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-libnghttp2 | 0 | 0:1.7.1-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-libnghttp2-devel | 0 | 0:1.7.1-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-mod_ldap | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-mod_proxy_html | 0 | 1:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-mod_session | 0 | 0:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-mod_ssl | 0 | 1:2.4.34-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-nghttp2 | 0 | 0:1.7.1-7.el6 |
| Red Hat:rhel_software_collections:3::el6 | httpd24-nghttp2-debuginfo | 0 | 0:1.7.1-7.el6 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-curl | 0 | 0:7.61.1-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-curl-debuginfo | 0 | 0:7.61.1-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-httpd | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-httpd-debuginfo | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-httpd-devel | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-httpd-manual | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-httpd-tools | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-libcurl | 0 | 0:7.61.1-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-libcurl-devel | 0 | 0:7.61.1-1.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-libnghttp2 | 0 | 0:1.7.1-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-libnghttp2-devel | 0 | 0:1.7.1-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-mod_ldap | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-mod_md | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-mod_proxy_html | 0 | 1:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-mod_session | 0 | 0:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-mod_ssl | 0 | 1:2.4.34-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-nghttp2 | 0 | 0:1.7.1-7.el7 |
| Red Hat:rhel_software_collections:3::el7 | httpd24-nghttp2-debuginfo | 0 | 0:1.7.1-7.el7 |
| Red Hat:rhel_tus:7.4::server | curl | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_tus:7.4::server | curl-debuginfo | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_tus:7.4::server | libcurl | 0 | 0:7.29.0-42.el7_4.2 |
| Red Hat:rhel_tus:7.4::server | libcurl-devel | 0 | 0:7.29.0-42.el7_4.2 |
| SUSE:Enterprise Storage 4 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server 11 SP4 | curl | 0 | 7.37.0-70.30.1 |
| SUSE:Linux Enterprise Server 11-SECURITY | curl-openssl1 | 0 | 7.37.0-70.30.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server 12 SP2-LTSS | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server 12 SP3 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server 12-LTSS | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | curl | 0 | 7.37.0-70.30.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | curl | 0 | 7.37.0-70.30.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | curl | 0 | 7.37.0-37.23.1 |
| SUSE:OpenStack Cloud 7 | curl | 0 | 7.37.0-37.23.1 |
| Ubuntu:14.04:LTS | curl | 0 | 7.35.0-1ubuntu2.16 |
| Ubuntu:16.04:LTS | curl | 0 | 7.47.0-1ubuntu2.8 |
| Ubuntu:18.04:LTS | curl | 0 | 7.58.0-2ubuntu3.1 |
| openSUSE:Tumbleweed | curl | 0 | 7.79.1-1.1 |
Related vulnerabilities
- CVE-2021-22898 curl 7.7 through 7.76.1 suffers from an information disclosure when the `-t` command line… Also affects curl
- CVE-2020-8285 curl 7.21.0 to and including 7.73.0 is vulnerable to uncontrolled recursion due to a… Also affects curl
- CVE-2020-8169 curl 7.62.0 through 7.70.0 is vulnerable to an information disclosure vulnerability that… Also affects curl
- CVE-2020-8231 Due to use of a dangling pointer, libcurl 7.29.0 through 7.71.1 can use the wrong… Also affects curl
- CVE-2020-8177 curl 7.20.0 through 7.70.0 is vulnerable to improper restriction of names for files and… Also affects curl
- CVE-2019-5481 Double-free vulnerability in the FTP-kerberos code in cURL 7.52.0 to 7.65.3. Also affects curl
- CVE-2019-5482 Heap buffer overflow in the TFTP protocol handler in cURL 7.19.4 to 7.65.3. Also affects curl
- CVE-2019-5436 A heap buffer overflow in the TFTP receiving code allows for DoS or arbitrary code… Also affects curl