Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft PDF filename with single-quote and shell syntax
-
DeliveryFeed PDF to non-server GROBID core/batch path on Linux
-
ExploitFilename interpolated into bash -c string, breaking quoting
-
Executionpdfalto command run via ProcessBuilder executes injected tokens
-
ImpactArbitrary 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 |
| 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-118418
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB