FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

cURL -- URL file scheme drive letter buffer overflow

Affected packages
7.53.0 <= curl < 7.54.1

Details

VuXML ID 9314058e-5204-11e7-b712-b1a44a034d72
Discovery 2017-06-14
Entry 2017-06-15

cURL security advisory:

When libcurl is given either

1. a file: URL that doesn't use two slashes following the colon, or

2. is told that file is the default scheme to use for URLs without scheme

... and the given path starts with a drive letter and libcurl is built for Windows or DOS, then libcurl would copy the path with a wrong offset, so that the end of the given path would write beyond the malloc buffer. Up to seven bytes too much.

We are not aware of any exploit of this flaw.

References

CVE Name CVE-2017-9502
URL https://curl.haxx.se/docs/adv_20170614.html