PT-2017-3343 · Curl+3 · Libcurl+3

Max Dymond

·

Publicado

2014-11-05

·

Atualizado

2024-06-15

·

CVE-2017-1000254

CVSS v3.1

7.5

Alta

VetorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions libcurl versions prior to 7.56.0
Description The issue is related to a flaw in the string parser for directory names when libcurl connects to an FTP server. If the server responds with a 257 response containing the path without a closing double quote, libcurl may not add a trailing null byte to the buffer holding the name. This could lead to libcurl reading beyond the allocated heap buffer and crashing or wrongly accessing data beyond the buffer. A malicious server could exploit this fact, potentially causing a segfault. The issue was introduced in 2005 and remained undiscovered for a long time, suggesting that malformed PWD responses are rare in benign servers. There is no known exploit of this flaw.
Recommendations For libcurl versions prior to 7.56.0, consider updating to version 7.56.0 or later, which always zero terminates the string and rejects it if not terminated properly with a final double quote. As a temporary workaround, consider restricting access to FTP servers that may send malformed PWD responses to minimize the risk of exploitation. Avoid using libcurl to connect to untrusted FTP servers until the issue is resolved.

Correção

Buffer Over-read

Out of bounds Read

Buffer Overflow

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

ALT-PU-2014-2327
ALT-PU-2017-2371
ALT-PU-2018-2456
BDU:2018-00108
CVE-2017-1000254
DLA-1121-1
DSA-3992-1
MGASA-2018-0053
MGASA-2018-0054
OPENSUSE-SU-2024:10582-1
RHSA-2018:3558
SUSE-SU-2017:2789-1
SUSE-SU-2017:2831-1
SUSE-SU-2017:3176-1
SUSE-SU-2017_2831-1
SUSE-SU-2017_3176-1
SUSE-SU-2018:0214-1
USN-3441-1
USN-3441-2

Produtos afetados

Alt Linux
Suse
Ubuntu
Libcurl