Vulnerabilities/

GHSA-222v-gj5h-ff73

CVE

GHSA-222v-gj5h-ff73

The Cline harness file tools in @ai-sdk/harness-cline are vulnerable to path traversal. The resolvePath helper in createClineRemoteOps joins and normalizes a model-supplied path against the session working directory but returns absolute paths and '../' sequences unchanged, and never resolves the real path, so symlinks are followed. A model-controlled path passed to readFile, writeFile, editFile, grep, glob or ls can therefore reach files outside the working directory, reading them and, in allow-edits mode, writing them.

Severity

Critical

Base CVSS

9.8

Fixed in

1.0.8

Description

Severity scores

Source

Severity

Base score

CVSS version

Score vector

NVD

OSV

Endor Labs

9.8

3.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Required action

Known ransomware campaign use

References

https://github.com/vercel/ai/security/advisories/GHSA-222v-gj5h-ff73, https://github.com/vercel/ai/pull/19209

Basic information

Base CVSS

9.8

EPSS probability

0.0

EPSS percentile

0

Introduced version

1.0.0

Fix available

1.0.8

Endor Patches

Fix critical vulnerabilities instantly

Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.

Fix without upgrading

Get a demo of Endor Labs today.