Skip to main content

Ecommerce-CodeIgniter-Bootstrap CVE-2024-31823

CRITICAL
Code Injection (CWE-94)
2024-04-29 cve@mitre.org
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach admin removeSecondaryImage endpoint
  2. Delivery
    Craft POST with traversal in folder/image
  3. Exploit
    Path escapes shop_images directory
  4. Execution
    unlink() deletes arbitrary file
  5. Impact
    Corrupt config/app, deny service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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

Exploitation Conditions

The attacker must be able to send a POST request to the admin removeSecondaryImage action in Publish.php with attacker-controlled folder and image parameters; exploitation works because the pre-fix code concatenates those values into a path and calls unlink() without canonicalization, so path-traversal sequences escape the attachments/shop_images directory. Limiting factors: the endpoint resides in the admin module, which in standard deployments is protected by an admin authentication filter (so a valid back-office session is likely required despite the CVSS PR:N marking - authentication requirement not definitively confirmable from the diff alone); the primitive is file deletion of paths the web-server user can write to, not arbitrary code execution; and impact depends on which files the PHP process may unlink.

Impact

Signals conflict and should be reconciled before prioritizing. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8 critical) implies unauthenticated network RCE, but the source evidence contradicts this in two ways: (1) the named removeSecondaryImage method performs file deletion via unlink(), not arbitrary code execution, so C:H overstates confidentiality impact; and (2) the endpoint lives under application/modules/admin/, which in typical CodeIgniter admin modules is gated by an authentication filter, casting doubt on PR:N. EPSS is moderate (1.64%, 74th percentile) and there is no CISA KEV entry, indicating no confirmed widespread active exploitation despite public POC. Net: this is a real, exploitable flaw with working POC, but the 9.8 rating likely overstates true risk for the specific removeSecondaryImage sink - realistic impact is arbitrary file deletion (integrity/availability), plausibly requiring an authenticated admin/back-office session. Verify the auth requirement against the deployment before treating it as unauthenticated critical.

Exploit ScenarioDerived

An attacker reaches the admin removeSecondaryImage endpoint and submits a POST request with folder and image parameters containing directory-traversal sequences (e.g. folder=../../../application/config, image=config.php), causing the server to unlink() a file outside the intended shop_images directory. Repeated requests can delete configuration, template, or other application files to corrupt or deny service to the store. Public POC/exploit code is available in the LioTree gist, lowering the effort required.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 1.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 24, 2026

Remote attackers can abuse the removeSecondaryImage endpoint in kirilkirkov's Ecommerce-CodeIgniter-Bootstrap (snapshot dated 2024-01-02, commit d22b54e) to manipulate the server filesystem through unsanitized POST parameters. NVD classifies this as CWE-94 code injection with a 9.8 CVSS score, but the referenced fix commit shows the removeSecondaryImage method actually passing attacker-controlled folder/image values straight into unlink(), which is an arbitrary file-deletion / path-traversal weakness rather than direct code execution. Publicly available exploit code exists (LioTree gist and write-up) and EPSS is moderate at 1.64% (74th percentile); there is no CISA KEV listing.

RemediationAI

Upstream fix available (commit d22b54e8915f167a135046ceb857caaf8479c4da); released patched version not independently confirmed - apply that commit from https://github.com/kirilkirkov/Ecommerce-CodeIgniter-Bootstrap/commit/d22b54e8915f167a135046ceb857caaf8479c4da or pull the latest main branch, since the project ships from Git rather than tagged releases. The patch canonicalizes the deletion path with realpath() and verifies the resolved folder stays within the attachments/shop_images base directory before calling unlink(); it also hardens the Languages.php language-file writer and Orders_model SQL. If you cannot patch immediately: restrict access to the /admin/publish endpoints (enforce and verify admin authentication and, if possible, IP-allowlist the back office), and add a WAF/reverse-proxy rule rejecting removeSecondaryImage POST bodies whose folder or image parameters contain path-traversal sequences (../, encoded variants, absolute paths, or DIRECTORY_SEPARATOR) - note this can break legitimate image removal if folder names legitimately contain such characters. Run the PHP process as a low-privilege user with write access confined to the attachments tree so a traversal cannot delete application or system files.

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

The product is a PHP e-commerce storefront built on the CodeIgniter MVC framework with a Bootstrap admin UI, distributed as an open-source GitHub project (CPE cpe:2.3:a:ecommerce-codeigniter-bootstrap_project:ecommerce-codeigniter-bootstrap:2024-01-02). The advisory assigns CWE-94 (Improper Control of Generation of Code / Code Injection). The vulnerable code in application/modules/admin/controllers/ecommerce/Publish.php built a filesystem path by directly concatenating $_POST['folder'] and $_POST['image'] into an attachments/shop_images path and calling unlink() with no canonicalization - a classic path-traversal primitive (CWE-22 in practice). Notably, the SAME patch commit also hardens Languages.php (saveLanguageFiles), where user-supplied php_keys/js_keys were written verbatim into included PHP/JS language files and only later guarded with addslashes()/ctype_alnum; that Languages.php path is the code that genuinely matches the CWE-94 code-injection label, suggesting the CVE may conflate two distinct fixes shipped in one commit.

Know when PHP 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 (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Named sink is unlink() path traversal reachable over HTTP in an admin controller, so AV:N/AC:L with PR:L for likely back-office auth; impact is file deletion (I:H/A:H), no read so C:N.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

4
Analysis Updated
Aug 24, 2026 - 14:29 vuln.today
v1 - CVSS changed
Severity Changed
Aug 24, 2026 - 14:22 NVD
HIGH CRITICAL
CVSS changed
Aug 24, 2026 - 14:22 NVD
8.8 (HIGH) 9.8 (CRITICAL)
CVE Published
Apr 29, 2024 - 18:15 cve.org
HIGH 8.8

DescriptionCVE.org

An issue in Ecommerce-CodeIgniter-Bootstrap commit v. d22b54e8915f167a135046ceb857caaf8479c4da allows a remote attacker to execute arbitrary code via the removeSecondaryImage method of the Publish.php component.

Executive ViewAI

Why It Matters

Ecommerce-CodeIgniter-Bootstrap contains a critical vulnerability allowing unauthenticated remote attackers to delete arbitrary files from web servers running the application, impacting both data availability and operational continuity. Organizations using this platform risk loss of product images, database files, configuration data, and potential system compromise; the weakness is publicly documented with available exploit code. Immediate patching and access controls are essential to prevent active exploitation.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.6%
Top 26% exploitable
Prevalence
Rare
obscure open-source GitHub e-commerce project, negligible enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 1.6%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

71
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:ecommerce-codeigniter-bootstrap_project:ecommerce-codeigniter-bootstrap:2024-01-02:*:*:*:*:*:*:*

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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