Skip to main content

GROBID CVE-2026-123357

| EUVDEUVD-2026-118418 NONE
OS Command Injection (CWE-78)
2026-11-06 GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft PDF filename with single-quote and shell syntax
  2. Delivery
    Feed PDF to non-server GROBID core/batch path on Linux
  3. Exploit
    Filename interpolated into bash -c string, breaking quoting
  4. Execution
    pdfalto command run via ProcessBuilder executes injected tokens
  5. Impact
    Arbitrary commands run as GROBID process user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires ALL of: (1) the deployment uses GROBID's local core library or batch tooling, i.e. the non-server path where GrobidProperties.contextExecutionServer is false - this is the default, and the bundled REST server path is explicitly NOT affected; (2) the host is Linux, where the non-server branch wraps pdfalto in bash -c; (3) the attacker can influence the filesystem name of a PDF that GROBID will process, with the name containing a single quote plus shell metacharacters. Limiting factors: the bundled REST server is immune, non-Linux platforms are not affected by this branch, and the attacker must control the actual on-disk filename (not merely the PDF contents), so real-world reachability depends on how a given integration derives filenames from untrusted input.

Impact

Technical impact is severe: CWE-78 OS command injection yielding arbitrary command execution with GROBID process-user privileges (GHSA-mgxf-7mg7-qpmf, confirmed by PR #1477 and release 0.9.1). However, the signals are incomplete and partly contradictory. The supplied CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N) sets all three impact metrics to None, which is inconsistent with a documented arbitrary-command-execution flaw - this looks like a placeholder/malformed vector rather than an authoritative severity, and the AV:N attack vector is also questionable because the vulnerable branch is the non-server local core/batch path rather than the bundled REST server. No EPSS score and no CISA KEV listing are present, and the vuln.today Decision label is 'awaiting_data', so there is no evidence of active or widespread exploitation. Realistic priority is moderate: high consequence if triggered, but exploitation is gated by specific conditions (non-server mode on Linux plus attacker-influenced PDF filenames), making this a targeted/integration-dependent issue rather than a mass-exploitable internet-facing one. Patch to 0.9.1 is available and is the clear mitigation.

Exploit ScenarioDerived

On a Linux host running GROBID's local core library or batch tooling (the default non-server mode), an attacker supplies a PDF whose filename contains a single quote followed by shell syntax (e.g. poc';printf${IFS}unify_marker>unify_marker.txt;#'.pdf). During conversion, DocumentSource.pdfalto interpolates that filename into a bash -c string, the quote is broken out of, and ProcessRunner.run executes the injected commands with GROBID process privileges. A public PoC filename is demonstrated in the GHSA advisory; it is not verified as standalone working exploit code.

Awaiting Data No severity or threat signals available yet. Label will update when CVSS score is published or threat intelligence arrives.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

OS command injection in GROBID's non-server PDF conversion path on Linux lets an attacker who can control the on-disk filename of a processed PDF execute arbitrary shell commands with the privileges of the GROBID process user. Only the local core library and batch tooling paths are affected - the branch taken when GrobidProperties.contextExecutionServer is false, which is the default - while the bundled REST server path is explicitly not affected. The flaw is fixed in GROBID 0.9.1; the public advisory (GHSA-mgxf-7mg7-qpmf) documents a verified proof-of-concept filename, though no confirmed public exploit code or CISA KEV entry was identified at time of analysis.

RemediationAI

Vendor-released patch: GROBID 0.9.1 (release tag https://github.com/grobidOrg/grobid/releases/tag/0.9.1) - upgrade immediately. The fix in PR #1477 removes the string interpolation and instead passes the tokenized command to bash as positional parameters executed via exec "$@" (wrapWithUlimit), so the PDF path is handed to pdfalto verbatim and never re-interpreted by the shell; regression tests covering single quotes and shell metacharacters were added in DocumentSourceTest. If upgrading is not immediately possible, avoid exposing the vulnerable path: run GROBID through the bundled REST server, which the advisory states is not affected (trade-off: different deployment model and memory/thread profile per request), and ensure that PDFs reaching Engine.processHeader or batch tooling are first copied or renamed to internally generated safe names (for example a UUID temp file) rather than names derived from untrusted input, or reject filenames containing single quotes and other shell metacharacters before processing (trade-off: legitimate files with unusual names must be renamed by the integration). Advisory guidance also calls for strict shell escaping if a shell wrapper is retained and for keeping regression tests on the non-server path.

Affected VersionsENISA

grobid < 0.9.1

Affected Packages

euvd grobid fix: 0.9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-78 (improper neutralization of special elements used in an OS command). In DocumentSource.pdfalto(), GROBID first builds a properly tokenized argument list, but on Linux in non-server mode it replaced that list with a bash -c invocation of the form ulimit -Sv <limit> && pdfalto '<pdfPath>' <tmpPathXML>, concatenating the caller-supplied PDF filesystem path directly into a single-quoted shell fragment. A filename containing a single quote terminates the quoting and injects arbitrary shell tokens, which ProcessRunner.run() then hands to new ProcessBuilder(cmd).start(), so the shell - not pdfalto - interprets the payload. The vulnerable component is the Java-based grobid-core module (CPE cpe:2.3:a:grobidorg:grobid, all versions prior to 0.9.1, verified against 0.9.0), with the sink in ProcessRunner.java and the source reachable through public core entry points such as Engine.processHeader(String inputFile, ...). The bundled REST server is immune because it takes a different code path; non-Linux hosts do not enter this bash -c branch.

Know when Grobid gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 0.0 NONE
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
vuln.today AI 8.4 HIGH

Exploitation is via an attacker-controlled PDF filename processed by the local non-server/batch path, so AV:L; no authentication is intrinsic to the flaw (PR:N) and arbitrary command execution gives full C/I/A impact.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 20:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
niche ML tool for scholarly PDF extraction, mostly research/academic pipelines
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity NONE
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.
Awaiting Data No severity or threat signals available yet. Label will update when CVSS score is published or threat intelligence arrives.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy