GHSA-7rhv-h82h-vpjh: Ec cube/ec cube EC-CUBE Has A Vulnerability That Vulnerability
MODERATEGHSA-7rhv-h82h-vpjh is a MODERATE (CVSS 6.7) ec-cube has a vulnerability that vulnerability (CWE-287: Improper Authentication) affecting Ec cube/ec cube libraries in the Packagist ecosystem. The issue involves ec-cube has a vulnerability that allows mfa bypass in the administrative interface. Remediation is available in the latest vendor maintenance releases.
GHSA-7rhv-h82h-vpjh at a Glance
Security Impact
CVSS: 6.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L).
How to Fix GHSA-7rhv-h82h-vpjh
To remediate this vulnerability, upgrade all affected Ec cube/ec cube dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade ec-cube/ec-cube to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ec-cube/ec-cube
How to Check if You Are Affected
To determine whether your application is affected by GHSA-7rhv-h82h-vpjh, inspect your project dependencies for Ec cube/ec cube:
inspect dependencies for ec-cube/ec-cube
Analyze the terminal output to locate any version of Ec cube/ec cube in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Ec cube/ec cube, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-7rhv-h82h-vpjh Affected Ec cube/ec cube Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ec-cube/ec-cube
|
Packagist |
≥ 4.1.0
≤ 4.3.1
|
|
References
Frequently Asked Questions
What is GHSA-7rhv-h82h-vpjh?
Which Ec cube/ec cube versions are affected?
What version fixes GHSA-7rhv-h82h-vpjh?
Is ec-cube/ec-cube affected?
What is the CVSS score of GHSA-7rhv-h82h-vpjh?
What CWE is associated with GHSA-7rhv-h82h-vpjh?
How can I check Packagist dependencies for GHSA-7rhv-h82h-vpjh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7rhv-h82h-vpjh",
"modified" : "2026-03-05T21:14:57Z",
"published" : "2026-03-05T21:14:57Z",
"aliases" : [ ],
"summary" : "EC-CUBE has a Vulnerability that Allows MFA Bypass in the Administrative Interface",
"details" : "# Vulnerability Allowing MFA Bypass\n\n## Affected EC-CUBE Versions\nVersions: 4.1.0 – 4.3.1\n\n## Vulnerability Overview\nIf an administrator’s ID and password are compromised, an issue exists that allows an attacker to bypass the normally required two-factor authentication (2FA) and log in to the administrative interface.\n\n## Severity and Impact\n\n**CVSS v3.1 score** \nBase score: 6.2 / Temporal score: 5.7 / Environmental score (after mitigation and countermeasures): 0.0\n\nAn attacker can forcibly overwrite the 2FA configuration of an account with administrative privileges. As a result, the legitimate administrator can be locked out, while the attacker can log in to the administrative interface and perform unauthorized actions such as viewing sensitive information or tampering with the website.\n\n## Root Cause Details\n\nThere are flaws in the access control implementation for the 2FA settings page (`/admin/two_factor_auth/set`).\n\n1. **TwoFactorAuthListener.php** \n The route for the 2FA settings page (`admin_two_factor_auth_set`) is included in the list of routes excluded from the 2FA authentication check.\n\n2. **TwoFactorAuthController.php** \n Even for users who already have 2FA configured, the implementation allows reconfiguration (overwriting) of the 2FA secret key without passing 2FA authentication.\n\n## Attack Preconditions and Steps\n\n**Preconditions:**\n- The attacker knows the administrative user’s ID and password.\n- 2FA is enabled for that user.\n\n**Attack Steps:**\n1. Attempt to log in using the ID and password.\n2. When the 2FA code entry screen is displayed, do not enter a code; instead, directly modify the URL to access `/admin/two_factor_auth/set`.\n3. Because access is not denied, the attacker can generate and save (overwrite) a new 2FA secret key.\n\n\n# MFAバイパスが可能な脆弱性\n\n## EC-CUBEバージョン\nバージョン: 4.1.0 ~ 4.3.1\n\n## 脆弱性の概要\n管理者のIDとパスワードが漏洩している場合、本来必要な2段階認証を回避して管理画面にログインできてしまう問題です。\n\n## 深刻度と影響\n\nCVSS3.1スコア:基本評価:6.2 / 現状評価:5.7 / 環境評価(緩和・対策後):0.0 \n\n攻撃者は管理者権限を持つアカウントの2FA設定を強制的に上書きできます。これにより、正規の管理者を締め出しつつ、攻撃者自身が管理画面へログインし、機密情報の閲覧やWebサイトの改ざんなどの不正操作を行うことが可能になります。\n\n## 脆弱性の詳細な原因\n\nシステムの実装において、2FA設定画面(/admin/two_factor_auth/set)へのアクセス制御に不備があり。\n\n1. TwoFactorAuthListener.php\n2FA認証チェックを除外するルート設定に、設定画面(admin_two_factor_auth_set)が含まれている。\n2. TwoFactorAuthController.php\n既に2FA設定済みのユーザーであっても、2FA認証を通過せずに新しい鍵の再設定(上書き)を受け入れてしまう仕様になっている。\n\n## 攻撃の成立条件と手順\n\n前提条件:\n管理ユーザーのIDとパスワードを知っていること。\nそのユーザーで2FAが有効化されていること。\n\n攻撃手順:\n\n1. IDとパスワードでログインを試行する。\n2. 2FAコード入力画面が表示されるが、入力を行わずに直接URLを書き換えて /admin/two_factor_auth/set へアクセスする。\n3. アクセスが拒否されないため、攻撃者は新しい2FA秘密鍵を発行し、保存(上書き)する。\n4. 以降、攻撃者が作成した新しい2FAコードを使ってログインが可能になる。",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "ec-cube/ec-cube"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"last_affected" : "4.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/EC-CUBE/ec-cube/security/advisories/GHSA-7rhv-h82h-vpjh"
}, {
"type" : "WEB",
"url" : "https://github.com/EC-CUBE/ec-cube/commit/094785943bfc3815c29f0cce9dbabb9bcc688474"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/EC-CUBE/ec-cube"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-05T21:14:57Z",
"nvd_published_at" : null
}
}