---
id: CVE-2026-7791
title: >-
  Local Privilege Escalation via TOCTOU Race Condition in Amazon WorkSpaces
  Skylight Agent
summary: >-
  Improper privilege management in the log rotation mechanism of the Skylight
  Workspace Config Service in Amazon WorkSpaces for Windows before 2.6.2034.0
  allows a local non-admin authenticated user to place arbitrary files into
  arbitrary l…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-367
vendor: Amazon
product: Workspaces
affected:
  - Workspaces < 2.6.2034.0
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-05-05T00:00:00+00:00'
exploitAvailable: true
published: '2026-05-04'
updated: '2026-10-20'
sourceUpdated: '2026-10-20T18:54:15.148Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-7791'
references:
  - url: 'https://aws.amazon.com/security/security-bulletins/2026-025-aws/'
tags:
  - cve.org
  - exploit-available
epss: 0.00126
epssPercentile: 0.02084
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/BenZamir/CVE-2026-7791'
  checkedAt: '2026-10-20T19:16:49.566Z'
ingestedAt: '2026-10-20T19:16:14.378Z'
---

## Overview

Improper privilege management in the log rotation mechanism of the Skylight Workspace Config Service in Amazon WorkSpaces for Windows before 2.6.2034.0 allows a local non-admin authenticated user to place arbitrary files into arbitrary locations bypassing file system permission protections, leading to local privilege escalation to SYSTEM.

## Affected

- `Workspaces < 2.6.2034.0`

## Remediation

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