Project

General

Profile

Actions

Security #8600

closed
JI PA

windows: unquoted LocalSystem service ImagePath

Security #8600: windows: unquoted LocalSystem service ImagePath

Added by Jason Ish 29 days ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Label:
CVE:
Git IDs:
Severity:
LOW
Disclosure Date:
05/25/2026

Description

Hello OISF Security Team,

I’m reporting a local privilege escalation issue in Suricata’s Windows service
install/update logic.

The attached report includes source-level analysis, positive and negative PoC
controls, writable-parent validation, and live disposable SCM validation showing
execution as SYSTEM / S-1-5-18.

Summary

Suricata’s SCServiceInstall and SCServiceChangeParams build a Windows service
ImagePath by taking GetModuleFileName, appending arguments with spaces, and
passing the unquoted result to CreateService / ChangeServiceConfig. When
Suricata is installed under a path containing spaces, Windows may resolve and
execute an earlier attacker-controlled path component. Because the service is
configured to run as LocalSystem, this can lead to local privilege escalation in
writable-parent deployments.

Impact

Arbitrary code execution as LocalSystem on affected Windows hosts, subject to
installation path, ACLs, and service start/restart conditions.

I assess this as High severity: deployment-dependent local privilege escalation,
not remotely triggerable by network traffic.

I look forward to your review and am happy to provide any additional details
needed.

Regards,
Yazdan Soltani


Files


Subtasks 2 (0 open2 closed)

Security #8627: windows: unquoted LocalSystem service ImagePath (8.0.x backport)ClosedPhilippe AntoineActions
Security #8665: windows: unquoted LocalSystem service ImagePath (7.0.x backport)ClosedPhilippe AntoineActions

JI Updated by Jason Ish 29 days ago Actions #1

  • Disclosure Date set to 05/25/2026

PA Updated by Philippe Antoine 26 days ago Actions #2

  • Status changed from New to In Review
  • Assignee changed from OISF Dev to Philippe Antoine

Gitlab MR

PA Updated by Philippe Antoine 26 days ago Actions #3

  • Severity set to LOW

PA Updated by Philippe Antoine 21 days ago Actions #4

  • Target version changed from TBD to 9.0.0-beta1
  • Label Needs backport to 8.0 added

OT Updated by OISF Ticketbot 21 days ago Actions #5

  • Subtask #8627 added

OT Updated by OISF Ticketbot 21 days ago Actions #6

  • Label deleted (Needs backport to 8.0)

JI Updated by Jason Ish 7 days ago Actions #7

  • Label Needs backport to 7.0 added

OT Updated by OISF Ticketbot 7 days ago Actions #8

  • Subtask #8665 added

OT Updated by OISF Ticketbot 7 days ago Actions #9

  • Label deleted (Needs backport to 7.0)

JI Updated by Jason Ish 7 days ago Actions #10

  • GHSA set to GHSA-jh8w-wf3f-58jp

PA Updated by Philippe Antoine 5 days ago Actions #11

  • Status changed from In Review to Resolved

JI Updated by Jason Ish 1 day ago Actions #12

  • Private changed from Yes to No

JI Updated by Jason Ish 1 day ago Actions #13

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom