{"id":"GHSA-r3xx-hw22-6h6w","aliases":["GHSA-r3xx-hw22-6h6w","JLSEC-2026-791"],"related":[],"kind":"vulnerability","state":"published","title":"Writing to SFTP files resulting in sending out-of-bounds data to the server","summary":"### Impact\n\nThe `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).\n\nAny user writing to an `SftpFile` is potentially impacted.\n\n### Patches\n\nThe bug has been fixed in LibSSH v1.2.0.\n\n### Workarounds\n\nEnsure that all inputs to writing `SftpFile`'s are byte vectors.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"### Impact\n\nThe `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).\n\nAny user writing to an `SftpFile` is potentially impacted.\n\n### Patches\n\nThe bug has been fixed in LibSSH v1.2.0.\n\n### Workarounds\n\nEnsure that all inputs to writing `SftpFile`'s are byte vectors.","format":"markdown","source":"jlsec"}],"published":"2026-07-25T03:32:48.775Z","modified":"2026-07-25T03:45:04.111Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L","score":3.9,"rating":"LOW"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L","score":3.9,"rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"Julia","package":"LibSSH","purl":"pkg:julia/LibSSH?uuid=00483490-30f8-4353-8aba-35b82f51f4d0","source":"jlsec"}],"references":[],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-791","url":"https://osv.dev/vulnerability/JLSEC-2026-791","licence":"CC-BY-4.0","modified":"2026-07-25T03:45:04.111Z"}],"updatedAt":"2026-11-25T22:56:26.238Z"}