High-severity vulnerability (CVSS 8.8) in eParakstītājs 3.0 for macOS. Clicking "Send" embeds unescaped attachment paths into AppleScript source, allowing arbitrary command execution via do shell script.
Published: · 6 min read · Rolands Bīrons

Security advisory · BR²SEC research
CVE-2026-87789
- Attack vector AV
- Network
- Complexity AC
- Low
- Privileges PR
- None
- User interaction UI
- Required
- Scope S
- Unchanged
- Confidentiality C
- High
- Integrity I
- High
- Availability A
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HView on Enki Guard IntelSecurity Advisory: Discovered by BR²SEC security researcher Rolands Bīrons. Coordinated with CERT.LV and vendor LVRTC under coordinated vulnerability disclosure (CERT.LV case reference: vuln-lvrtc-1333128407).
Vulnerability Summary
eParakstītājs 3.0 version 1.10.0 for macOS inserts a document's absolute attachment path directly into AppleScript source passed to osascript. The application does not escape quotation marks or other AppleScript syntax in the path.
An attacker can rename a PDF without modifying its contents. A crafted filename closes the intended AppleScript string and appends an expression such as do shell script. If a victim opens the PDF and selects "Send", the injected AppleScript executes a command with the privileges of the desktop user.
Affected Product and Details
- Vendor: Latvijas Valsts radio un televīzijas centrs (LVRTC)
- Product: eParaksts (eParakstītājs 3.0 for macOS,
lv.euso.signanywhere) - Version:
1.10.0(Build-Version:1.10.0.1) - eParaksts library:
2.14.0 - Architecture:
x86_64 - Classification:
CWE-94(Code Injection),CWE-78(OS Command Injection),CWE-116(Output Escaping),CWE-73(File Name Control) - CAPEC:
CAPEC-108(Command Injection) - MITRE ATT&CK:
T1204.002(Malicious File),T1059.002(AppleScript),T1059.004(Unix Shell) - Proposed CVSS 3.1 Base Score: 8.8 (High) —
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Proposed CVSS 4.0 Base Score: 8.4 (High) —
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Root Cause Analysis
The packaged macOS class constructs an AppleScript call to compose an outgoing email message:
# Vulnerable AppleScript construction in eParakstītājs 3.0
osascript -ss -se \
-e 'tell application "Mail"' \
-e 'set theMessage to make new outgoing message' \
-e 'tell theMessage to make new attachment with properties {file name:"' \
+ attachment.getAbsolutePath() + '"}' \
-e 'activate' \
-e 'end tell'The absolute path is concatenated into source code without string escaping. A quotation mark terminates the string literal, transforming remaining characters into executable AppleScript:
report" & (do shell script "open -b com.apple.calculator") & "x.pdfRemediation and Conclusions
Exploitation does not require tampering with PDF contents or cryptographic signatures. To remediate, the vendor should properly escape all strings passed to osascript or replace script generation with macOS native NSSharingService APIs.