High-severity vulnerability (CVSS 8.8) in eParakstītājs 3.0 on Linux. By renaming a valid signed PDF with shell substitution syntax, the "Open with Adobe Reader" action executes arbitrary commands without breaking document validity.

Published: · 7 min read · Rolands Bīrons

OS Command Injection in LVRTC eParakstītājs 3.0 for Linux via PDF Reader Action (CVE-2026-82952)
AI Generated image · BR²SEC
8.8High

Security advisory · BR²SEC research

CVE-2026-82952

CVSS 3.1 · 8.8CVSS 4.0 · 8.4CWE-78CWE-88CWE-73
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 Intel
Security 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-911309398).

Vulnerability Summary

eParakstītājs 3.0 on Linux contains an OS command injection vulnerability CWE-78. It is triggered when a user chooses to open an attached or validated PDF document in an external PDF reader (Adobe Reader).

An attacker can rename an otherwise valid signed PDF without modifying its bytes or cryptographic signature. If a victim opens and validates that PDF and selects "Open with Adobe Reader", the shell evaluates command substitution embedded in the filename and executes the command with the privileges of the desktop user.

Affected Product and Environment

  • Vendor: Latvijas Valsts radio un televīzijas centrs (LVRTC)
  • Product: eParaksts (eParakstītājs 3.0)
  • Package: eparakstitajs3 (Linux AMD64)
  • Version: 1.10.0-resolute (Build-Version: 1.10.0.1)
  • Bundled eParaksts library: 2.14.0
  • Classification: CWE-78 (OS Command Injection), CWE-88 (Argument Injection), CWE-73 (File Name Control)
  • CAPEC: CAPEC-108 (Command Injection)
  • MITRE ATT&CK: T1204.002 (Malicious File), 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 affected Linux code branch performs the equivalent of the following construct via sh -c:

JAVA
// Vulnerable command construction in eParakstītājs 3.0 for Linux
String path = file.getCanonicalPath();
path = path.replaceAll("\"", "\\\"");
ProcessBuilder pb = new ProcessBuilder("sh", "-c", "$(locate ... acroread ...) \"" + path + "\"");
pb.start();

Escaping double quotes does not neutralize command substitution within a double-quoted shell string. Because the filename is attacker-controlled, incorporating it into shell source via sh -c creates an exploitable command injection vulnerability.

Proof of Concept and Evidence

The proof-of-concept demonstrated that the carrier PDF carrier.pdf and the crafted file carrier$(whoami).pdf have identical cryptographic hashes. The application validates the signature as PASSED:

BASH
# Carrier and payload file have identical SHA-256 hashes
$ sha256sum carrier.pdf "carrier\$(whoami).pdf"
cabc51355b2479548c2bdea8b8173eded979338a4c96565d3cdf7201defbc625  carrier.pdf
cabc51355b2479548c2bdea8b8173eded979338a4c96565d3cdf7201defbc625  carrier$(whoami).pdf

Adobe Reader does not need to be installed on the system because shell expansion occurs before the binary execution is attempted.

Remediation and Recommendations

The application should eliminate the sh -c wrapper entirely and pass file paths as distinct process arguments using ProcessBuilder or standard desktop utilities such as xdg-open, avoiding any shell evaluation of filenames.