---
id: CVE-2026-84267
title: 'Gvfs: sftp: uninitialized heap disclosure in read_string()'
summary: >-
  A flaw was found in the SFTP backend in gvfs. When mounting a share, a
  malicious SFTP server can cause read_string() to allocate a buffer with a
  certain length but the function does not verify that the buffer is completely
  filled, leavin…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-908
vendor: GNOME
product: gvfs
affected:
  - gvfs >= 1.10.0 < 1.60.2
  - gvfs (all versions)
  - gvfs
  - gvfs (all versions)
  - gvfs (all versions)
  - gvfs (all versions)
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-01T15:50:21.689646Z'
exploitAvailable: true
published: '2026-09-01'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T01:05:48.048Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-84267'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-84267'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2526466'
    label: RHBZ#2526466
  - url: 'https://gitlab.gnome.org/GNOME/gvfs/-/issues/861'
tags:
  - cve.org
  - exploit-available
epss: 0.00212
epssPercentile: 0.1159
ingestedAt: '2026-11-06T01:43:15.120Z'
---

## Overview

A flaw was found in the SFTP backend in gvfs. When mounting a share, a malicious SFTP server can cause read_string() to allocate a buffer with a certain length but the function does not verify that the buffer is completely filled, leaving the remainder of the buffer containing uninitialized heap contents. If the server sends a short FXP_HANDLE reply, these uninitialized bytes are taken as the file handle. The client will then echo these uninitialized bytes back to the server on all subsequent requests using that handle. With a length of 128 bytes, this issue allows the malicious server to deterministically read uninitialized heap memory from the gvfsd-sftp process, leaking its heap base and the load address of the libgio library, resulting in a deterministic defeat of Address Space Layout Randomization (ASLR).

## Affected

- `gvfs >= 1.10.0 < 1.60.2`
- `gvfs (all versions)`
- `gvfs`
- `gvfs (all versions)`
- `gvfs (all versions)`
- `gvfs (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

To mitigate this vulnerability, do not connect to untrusted SFTP servers.
