CURL-CVE-2018-1000300

Source
https://curl.se/docs/CVE-2018-1000300.html
Import Source
https://curl.se/docs/CURL-CVE-2018-1000300.json
JSON Data
https://api.osv.dev/v1/vulns/CURL-CVE-2018-1000300
Aliases
Published
2018-05-16T08:00:00Z
Modified
2024-06-07T13:53:51Z
Summary
FTP shutdown response buffer overflow
Details

curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.

When doing FTP transfers, curl keeps a spare "closure handle" around internally that is used when an FTP connection gets shut down since the original curl easy handle is then already removed.

FTP server response data that gets cached from the original transfer might then be larger than the default buffer size (16 KB) allocated in the "closure handle", which can lead to a buffer overwrite. The contents and size of that overwrite is controllable by the server.

This situation was detected by an assert() in the code, but that was of course only preventing bad stuff in debug builds. This bug is very unlikely to trigger with non-malicious servers.

References
Credits
    • Dario Weisser - FINDER
    • Daniel Stenberg - REMEDIATION_DEVELOPER

Affected packages

Git / github.com/curl/curl.git

Affected ranges

Type
SEMVER
Events
Introduced
7.54.1
Fixed
7.60.0
Type
GIT
Repo
https://github.com/curl/curl.git
Events

Affected versions

7.*

7.54.1
7.55.0
7.55.1
7.56.0
7.56.1
7.57.0
7.58.0
7.59.0