JLSEC-2026-791 Low 3.9
Writing to SFTP files resulting in sending out-of-bounds data to the server
Impact
The write(::SftpFile, ::DenseVector) method assumed that the element type of the input vector had a size of 1 byte (e.g. Int8/UInt8), and used length(data) instead of sizeof(data) to get the number of bytes to send. If the input vector had a eltype with size more than 1 byte then this would result in some bytes before the vector in memory being sent (or a segfault).
Any user writing to an SftpFile is potentially impacted.
Patches
The bug has been fixed in LibSSH v1.2.0.
Workarounds
Ensure that all inputs to writing SftpFile's are byte vectors.