Symptoms
FTPS directory listings and file transfers fail with ProFTPD after upgrading to cpanel-proftpd-1.3.9e-1 on servers running OpenSSL 1.1.1 (AlmaLinux 8 / CloudLinux 8). The control connection succeeds, but the data channel aborts immediately after opening. FTP clients such as FileZilla and lftp report output similar to the following:
CONFIG_TEXT: Status: Connection established, waiting for welcome message…
Status: Initializing TLS…
Status: TLS connection established.
Status: The server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing…
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xx,xx,xx,xx,207,7).
Command: MLSD
Response: 150 Opening BINARY mode data connection for MLSD
Error: GnuTLS error -302 in gnutls_record_recv: Parse error.
Error: Could not read from transfer socket: ECONNABORTED - Connection aborted
Response: 226 Transfer complete
Error: Failed to retrieve directory listing
Status: Disconnected from server
Plain FTP (without TLS) and PureFTPd are unaffected. Servers running AlmaLinux 9 / CloudLinux 9 (OpenSSL 3.x) are also unaffected.
Cause
This is a regression introduced in cpanel-proftpd-1.3.9e-1 on systems using OpenSSL older than 3.0.5. ProFTPD 1.3.9e changed how the TLS session ticket key callback behaves on data connections. On OpenSSL 3.x, returning 0 from the callback suppresses ticket issuance cleanly. On OpenSSL 1.1.1 (as shipped on el8 systems), the same return value causes OpenSSL to send a malformed TLSv1.3 NewSessionTicket record over the data channel. GnuTLS-based clients cannot parse this record and abort with error -302.
Affected package combination:
CONFIG_TEXT: cpanel-proftpd-1.3.9e-1.cp130~el8.x86_64
openssl-1.1.1k-18.el8_6.x86_64
This issue is tracked upstream at https://github.com/proftpd/proftpd/issues/2416 and internally as CPANEL-58505. A patched build (cpanel-proftpd-1.3.9e-2) is in progress and will be released via the normal update process.
Resolution
Until the patched cpanel-proftpd-1.3.9e-2 package is released, the following workarounds are available:
Option 1 — Switch to PureFTPd
PureFTPd is not affected by this issue. Switch the active FTP server in WHM under Service Configuration > FTP Server Selection and select Pure-FTPd, then restart the FTP service.
Option 2 — Disable TLS v1.3 in ProFTPD
Restricting ProFTPD to TLS v1.2 avoids the data channel issue while keeping FTPS active. In WHM, go to Service Configuration > FTP Server Configuration and set the TLS protocol to exclude TLS v1.3, then save and restart the FTP service.
Note: Disabling TLS v1.3 resolves the symptom but is not a recommended long-term configuration. TLS v1.3 offers improved security over TLS v1.2 and should be re-enabled once the patched cpanel-proftpd-1.3.9e-2 package is installed. If you use this workaround, make a note to restore the TLS protocol setting after updating.
Comments
0 comments
Article is closed for comments.