Cloudanix VulnDB

CVE-2020-8285

High · 7.5

CVSS

7.5

EPSS

9.8%

Published

Dec 14, 2020

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in the curl file-transfer tool can make programs using it crash when they try to handle certain FTP directory listings, interrupting automated data transfers.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Uncontrolled recursion during FTP wildcard match parsing triggers a stack overflow, crashing the process or enabling memory corruption.

Why it matters to the business

Applications relying on curl for FTP transfers may experience sudden crashes and service outages, interrupting automated file operations and dependent workflows.

How an attack unfolds

An attacker configures a malicious FTP server that returns a specially crafted directory listing; when a vulnerable curl client performs wildcard matching against that listing, deep recursion exhausts the stack and terminates the process.

How to fix it

Upgrade curl to a build containing commit e052859759b34d0e05ce0f17244873e5cd7b457b or later; rebuild any statically linked copies and verify the new version no longer exhibits the recursion issue.

How to confirm the fix worked

Confirm the installed curl binary reports a version after 7.73.0 or contains the referenced commit; test FTP wildcard operations against a server supplying nested patterns and monitor for crashes.

Typical attack path

  1. Attacker sets up an FTP server returning a malicious directory listing containing deeply nested wildcard patterns
  2. Victim application invokes curl to connect and list or retrieve files using wildcard syntax
  3. curl parses the listing and enters unbounded recursive calls in the FTP wildcard matcher
  4. Stack exhaustion occurs, causing the curl process to crash or behave unexpectedly

How to detect it

Review application and system logs for abrupt curl process terminations during FTP sessions; inspect stack traces or core dumps for deep recursion originating in FTP wildcard parsing routines.

  • curl process segmentation fault during FTP wildcard operations
  • stack trace containing ftp_wildcard or Curl_ftp_parselist

What your security team should do

  • Immediately update all curl installations to a fixed build
  • Scan build pipelines and containers for affected versions and replace them
  • Add curl version checks to continuous integration and deployment gates
  • Monitor for curl process crashes during FTP operations as a temporary detection measure

The record

curl 7.21.0 to and including 7.73.0 is vulnerable to uncontrolled recursion due to a stack overflow issue in FTP wildcard match parsing.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 curl 0 7.66.0-r3
Alpine:v3.11 curl 0 7.67.0-r3
Alpine:v3.12 curl 0 7.69.1-r3
Alpine:v3.13 curl 0 7.74.0-r0
Alpine:v3.14 curl 0 7.74.0-r0
Alpine:v3.15 curl 0 7.74.0-r0
Alpine:v3.16 curl 0 7.74.0-r0
Alpine:v3.17 curl 0 7.74.0-r0
Alpine:v3.18 curl 0 7.74.0-r0
Alpine:v3.19 curl 0 7.74.0-r0
Alpine:v3.20 curl 0 7.74.0-r0
Alpine:v3.21 curl 0 7.74.0-r0
Alpine:v3.22 curl 0 7.74.0-r0
Debian:10 curl 0 7.64.0-4+deb10u2
Debian:11 curl 0 7.74.0-1
Debian:12 curl 0 7.74.0-1
Debian:13 curl 0 7.74.0-1
Debian:14 curl 0 7.74.0-1
Debian:9 curl 0 7.52.1-5+deb9u13
Mageia:7 curl 0 7.71.0-1.1.mga7
Red Hat:enterprise_linux:8::baseos curl 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos curl-debuginfo 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos curl-debugsource 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos curl-minimal-debuginfo 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos libcurl 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos libcurl-debuginfo 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos libcurl-devel 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos libcurl-minimal 0 0:7.61.1-18.el8
Red Hat:enterprise_linux:8::baseos libcurl-minimal-debuginfo 0 0:7.61.1-18.el8
Red Hat:jboss_core_services:1::el7 jbcs-httpd24 0 0:1-18.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr 0 0:1.6.3-105.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-debuginfo 0 0:1.6.3-105.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-devel 0 0:1.6.3-105.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-debuginfo 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-devel 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-ldap 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-mysql 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-nss 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-odbc 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-openssl 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-pgsql 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-apr-util-sqlite 0 0:1.6.1-82.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-curl 0 0:7.77.0-2.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-curl-debuginfo 0 0:7.77.0-2.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-httpd 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-httpd-debuginfo 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-httpd-devel 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-httpd-manual 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-httpd-selinux 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-httpd-tools 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-jansson 0 0:2.11-55.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-jansson-debuginfo 0 0:2.11-55.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-jansson-devel 0 0:2.11-55.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-libcurl 0 0:7.77.0-2.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-libcurl-devel 0 0:7.77.0-2.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_cluster-native 0 0:1.3.16-5.Final_redhat_2.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_cluster-native-debuginfo 0 0:1.3.16-5.Final_redhat_2.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_http2 0 0:1.15.7-17.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_http2-debuginfo 0 0:1.15.7-17.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_jk 0 0:1.2.48-16.redhat_1.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_jk-ap24 0 0:1.2.48-16.redhat_1.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_jk-debuginfo 0 0:1.2.48-16.redhat_1.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_jk-manual 0 0:1.2.48-16.redhat_1.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_ldap 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_md 0 1:2.0.8-36.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_md-debuginfo 0 1:2.0.8-36.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_proxy_html 0 1:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_security 0 0:2.9.2-63.GA.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_security-debuginfo 0 0:2.9.2-63.GA.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_session 0 0:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-mod_ssl 0 1:2.4.37-74.jbcs.el7
Red Hat:jboss_core_services:1::el7 jbcs-httpd24-runtime 0 0:1-18.jbcs.el7
Red Hat:jboss_core_services:1::el8 jbcs-httpd24 0 0:1-18.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr 0 0:1.6.3-105.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-debuginfo 0 0:1.6.3-105.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-devel 0 0:1.6.3-105.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-devel 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-ldap 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-ldap-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-mysql 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-mysql-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-nss 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-nss-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-odbc 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-odbc-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-openssl 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-openssl-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-pgsql 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-pgsql-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-sqlite 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-apr-util-sqlite-debuginfo 0 0:1.6.1-82.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-brotli 0 0:1.0.6-40.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-brotli-debuginfo 0 0:1.0.6-40.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-brotli-devel 0 0:1.0.6-40.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-curl 0 0:7.77.0-2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-curl-debuginfo 0 0:7.77.0-2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd-debuginfo 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd-devel 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd-manual 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd-selinux 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd-tools 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-httpd-tools-debuginfo 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-jansson 0 0:2.11-55.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-jansson-debuginfo 0 0:2.11-55.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-jansson-devel 0 0:2.11-55.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-libcurl 0 0:7.77.0-2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-libcurl-debuginfo 0 0:7.77.0-2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-libcurl-devel 0 0:7.77.0-2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_cluster-native 0 0:1.3.16-5.Final_redhat_2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_cluster-native-debuginfo 0 0:1.3.16-5.Final_redhat_2.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_http2 0 0:1.15.7-17.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_http2-debuginfo 0 0:1.15.7-17.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_jk 0 0:1.2.48-16.redhat_1.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_jk-ap24 0 0:1.2.48-16.redhat_1.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_jk-ap24-debuginfo 0 0:1.2.48-16.redhat_1.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_jk-manual 0 0:1.2.48-16.redhat_1.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_ldap 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_ldap-debuginfo 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_md 0 1:2.0.8-36.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_md-debuginfo 0 1:2.0.8-36.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_proxy_html 0 1:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_proxy_html-debuginfo 0 1:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_security 0 0:2.9.2-63.GA.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_security-debuginfo 0 0:2.9.2-63.GA.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_session 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_session-debuginfo 0 0:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_ssl 0 1:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-mod_ssl-debuginfo 0 1:2.4.37-74.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-nghttp2 0 0:1.39.2-37.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-nghttp2-debuginfo 0 0:1.39.2-37.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-nghttp2-devel 0 0:1.39.2-37.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-chil 0 0:1.0.0-5.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-chil-debuginfo 0 0:1.0.0-5.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-debuginfo 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-devel 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-libs 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-libs-debuginfo 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-perl 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-pkcs11 0 0:0.4.10-20.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-pkcs11-debuginfo 0 0:0.4.10-20.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-openssl-static 0 1:1.1.1g-6.el8jbcs
Red Hat:jboss_core_services:1::el8 jbcs-httpd24-runtime 0 0:1-18.el8jbcs
Rocky Linux:8 curl 0 0:7.61.1-18.el8
SUSE:Linux Enterprise Module for Basesystem 15 SP1 curl 0 7.60.0-3.35.1
SUSE:Linux Enterprise Module for Basesystem 15 SP2 curl 0 7.66.0-4.11.1
SUSE:Linux Enterprise Server 11-SECURITY curl-openssl1 0 7.37.0-70.57.1
SUSE:Linux Enterprise Server 12 SP4-LTSS curl 0 7.60.0-4.20.1
SUSE:Linux Enterprise Server 12 SP5 curl 0 7.60.0-11.9.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 curl 0 7.60.0-4.20.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 curl 0 7.60.0-11.9.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 curl 0 7.60.0-11.9.1
SUSE:OpenStack Cloud 9 curl 0 7.60.0-4.20.1
SUSE:OpenStack Cloud Crowbar 9 curl 0 7.60.0-4.20.1
Ubuntu:14.04:LTS curl 0 7.35.0-1ubuntu2.20+esm6
Ubuntu:16.04:LTS curl 0 7.47.0-1ubuntu2.18
Ubuntu:18.04:LTS curl 0 7.58.0-2ubuntu3.12
Ubuntu:20.04:LTS curl 0 7.68.0-1ubuntu2.4
Ubuntu:Pro:14.04:LTS curl 0 7.35.0-1ubuntu2.20+esm6
conan libcurl 7.21.0 7.74.0
openSUSE:Leap 15.1 curl 0 7.60.0-lp151.5.18.1
openSUSE:Leap 15.1 curl-mini 0 7.60.0-lp151.5.18.1
openSUSE:Leap 15.2 curl 0 7.66.0-lp152.3.12.1
openSUSE:Leap 15.2 curl-mini 0 7.66.0-lp152.3.12.1
openSUSE:Tumbleweed curl 0 7.79.1-1.1

Related vulnerabilities