CVE-2026-123357

GROBID is vulnerable to OS command injection through crafted PDF filenames

Published Nov 6, 2026 CVSS 3.1 · 0 Low EPSS < 1% KEV · Not listed
Description
GROBID is machine learning software for extracting information from scholarly documents. Prior to 0.9.1, the Linux non-server PDF conversion path in grobid-core/src/main/java/org/grobid/core/document/DocumentSource.java passes an attacker-influenced PDF filename through DocumentSource.pdfalto, which interpolates the path into a bash -c command string. A single quote in the filename can terminate the intended quoting, and ProcessRunner.run in grobid-core/src/main/java/org/grobid/core/process/ProcessRunner.java starts the resulting command through ProcessBuilder, allowing arbitrary commands to execute with GROBID process privileges. The bundled REST server path is not affected. This issue is fixed in version 0.9.1.

Analysis

AI-generated

Technical impact

GROBID, a machine‑learning tool for extracting data from scholarly PDFs, contains an OS command injection flaw in its non‑server PDF conversion path. When a PDF file with a specially crafted filename is processed, the filename is interpolated into a bash command string. A single quote in the name can terminate the intended quoting, and the resulting command is executed using ProcessBuilder with the privileges of the GROBID process. The vulnerability allows an attacker to run arbitrary commands on the host, potentially leading to full system compromise.

Affected Systems

All installations of grobidOrg:grobid with a version older than 0.9.1 using the Linux non‑server PDF conversion route are vulnerable. The bundled REST server path is not affected, but any use of the non‑server path with untrusted filenames exposes the system to exploitation.

Risk and Exploitability

The CVSS score is not disclosed, and the EPSS score is unavailable. The vulnerability is not listed in CISA's KEV catalog. Nonetheless, the flaw permits arbitrary command execution with GROBID process privileges, representing a high‑risk exposure. Attackers need only supply a PDF file with a malicious filename; the execution path is directly chained to the ProcessRunner without additional authentication or input checks. The attack vector is inferred to be local file handling, typically through a client uploading a PDF via any interface that triggers the non‑server conversion workflow.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official fix by upgrading to GROBID version 0.9.1 or later.
  • If an upgrade is not immediately possible, modify the conversion routine to sanitize filenames: strip or escape characters that can break shell quoting, especially single quotes, and avoid direct interpolation into command strings.
  • Disable or restrict the Linux non‑server PDF conversion endpoint for untrusted input sources, ensuring that only trusted processes can invoke that path.

Generated by OpenCVE AI on November 6, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Grobidorg
Grobidorg grobid
Vendors & Products Grobidorg
Grobidorg grobid
Type Values Removed Values Added
Description GROBID is machine learning software for extracting information from scholarly documents. Prior to 0.9.1, the Linux non-server PDF conversion path in grobid-core/src/main/java/org/grobid/core/document/DocumentSource.java passes an attacker-influenced PDF filename through DocumentSource.pdfalto, which interpolates the path into a bash -c command string. A single quote in the filename can terminate the intended quoting, and ProcessRunner.run in grobid-core/src/main/java/org/grobid/core/process/ProcessRunner.java starts the resulting command through ProcessBuilder, allowing arbitrary commands to execute with GROBID process privileges. The bundled REST server path is not affected. This issue is fixed in version 0.9.1.
Title GROBID is vulnerable to OS command injection through crafted PDF filenames
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 0, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 7, 2026, 6:36 PM
Reserved
Nov 5, 2026, 8:43 PM
Status
Awaiting Analysis
Published
Nov 6, 2026, 7:17 PM
Modified
Nov 12, 2026, 8:04 PM