# GHSA-r3xx-hw22-6h6w: Writing to SFTP files resulting in sending out-of-bounds data to the server

- Severity: Low 3.9 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-25T03:32:48.775Z
- Modified: 2026-07-25T03:45:04.111Z
- Also known as: JLSEC-2026-791

## Description

### 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.

(As written by Julia Security Advisories.)

## Affected

- LibSSH (Julia): before 1.1.0

## Sources

- Julia Security Advisories: [JLSEC-2026-791](https://osv.dev/vulnerability/JLSEC-2026-791), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/GHSA-r3xx-hw22-6h6w · Whole record: https://cve.day/GHSA-r3xx-hw22-6h6w.json · Rebuilt by cve.day 2026-11-25T22:56:26.238Z
