Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister standard member account
-
DeliveryCraft serialized MySQL_cache (or other gadget) PHP object
-
ExploitBase64-encode serialized payload
-
InstallPOST payload as ci parameter to CreateAction.php
-
C2PHP deserializes object without allowed_classes restriction
-
ExecuteGarbage collection triggers __destruct() POP chain
-
ImpactAttacker-controlled SQL INSERT executed against cot_cache table
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
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 | Exploitation of the CreateAction and EditAction sinks requires a valid authenticated member account with comment write access, which is the default state under the |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L and score of 7.6 accurately reflect a network-reachable, low-complexity attack requiring only a standard authenticated member account - the default permission level under |
| Exploit ScenarioDerived | An attacker registers a standard member account on a Cotonti site with default settings, serializes a crafted PHP object targeting the MySQL_cache class (or another loaded gadget), base64-encodes the payload, and submits it as the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
PHP Object Injection in Cotonti CMS's Comments plugin grants any authenticated member a deserialization primitive reachable via two default-accessible sinks, with a working POP chain already demonstrated by the researcher. The ci POST parameter in CreateAction.php and the cb parameter in EditAction.php are both base64-decoded and passed to unserialize() without an allowed_classes restriction, allowing instantiation of any class loaded in the PHP runtime. A proof-of-concept using Cotonti's built-in MySQL_cache class was confirmed to trigger attacker-controlled SQL INSERT operations via __destruct()->flush(); further impact including RCE is contingent on additional gadget chains available in a given installation. No public exploit code has been released and no CISA KEV listing exists at time of analysis.
RemediationAI
No vendor-released patched version has been identified at time of analysis; monitor https://github.com/Cotonti/Cotonti for upstream commits. The definitive code-level fix is to pass an explicit second argument to every unserialize() call in the Comments plugin: unserialize(base64_decode($ci), ['allowed_classes' => false]) blocks all object instantiation (and is appropriate if the data is expected to be a scalar or array), or supply a strict allowlist of safe classes if object deserialization is genuinely required by design. As a compensating control with functional trade-offs, administrators can change the Auth_members => 'RW' default in plugins/comments/comments.setup.php to restrict comment write access to a higher-trust group - this shrinks the attacker pool to accounts you explicitly trust, but alters site commenting behavior. Disabling the Comments plugin entirely eliminates exposure from both member-reachable sinks with no residual risk from those code paths. The DeleteAction.php sink is admin-gated and does not require emergency prioritization for non-admin accounts.
Affected VersionsENISA
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
Cotonti is an open-source PHP CMS (CPE: cpe:2.3:a:cotonti:cotonti:*:*:*:*:*:*:*:*, wildcard version range). CWE-502 (Deserialization of Untrusted Data) describes the root cause: PHP's native unserialize() function reconstructs arbitrary class instances from attacker-controlled input unless constrained via the allowed_classes parameter introduced in PHP 7.0. Without this argument, any class present in the running PHP process can be instantiated - the classic PHP Object Injection (POI) primitive. The first vulnerable sink is unserialize(base64_decode($ci)) in plugins/comments/controllers/actions/CreateAction.php, where the ci POST parameter is fetched via cot_import('ci', 'P', 'TXT') - a trim-only sanitization that does nothing to block a valid serialized string. The second is unserialize(base64_decode($this->comeback)) in EditAction.php's prepareComeBack() method. The demonstrated POP chain exploits MySQL_cache's __destruct()->flush() call sequence to reach an attacker-controlled INSERT INTO cot_cache. A structurally identical third sink in DeleteAction.php is gated behind an admin-only check and is not reachable by ordinary members.
Know when Cotonti 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:L/UI:N/S:U/C:H/I:L/A:L
Network-reachable via HTTP POST with no special conditions, but PR:L is mandatory as member authentication is required; C:H reflects gadget-chain RCE potential beyond the confirmed SQL write.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
Cotonti CMS's Comments plugin deserializes user-supplied data without restricting the classes that may be instantiated. In plugins/comments/controllers/actions/CreateAction.php, a ci POST parameter obtained via cot_import('ci', 'P', 'TXT') (trim-only sanitization) is passed to unserialize(base64_decode($ci)) with no allowed_classes restriction, reachable by any member with write access to comments (the default Auth_members => 'RW' setting in plugins/comments/comments.setup.php). In plugins/comments/controllers/actions/EditAction.php, a cb parameter is similarly deserialized via unserialize(base64_decode($this->comeback)) in prepareComeBack(), reachable by any member editing their own comment. Because unserialize() is called without allowed_classes, an attacker can construct a serialized PHP object of any class loaded by Cotonti (a PHP Object Injection primitive). This was demonstrated in practice using Cotonti's own MySQL_cache class: a crafted serialized MySQL_cache object, once deserialized and later garbage-collected, triggers its __destruct()->flush() chain, causing an attacker-controlled INSERT INTO cot_cache with attacker-chosen row values - confirming genuine POP-chain exploitation, with further impact (including potential RCE) contingent on other gadget chains available in a given Cotonti installation's loaded classes. A third sink in DeleteAction.php contains the identical unserialize() pattern but is gated behind an admin-only authorization check and is not reachable by ordinary members.
Executive ViewAI
Cotonti CMS Comments plugin allows any site member to inject and execute arbitrary code, compromising data integrity and potentially enabling complete system control. Organizations using this plugin with active member communities face direct risk of data breach or system compromise. With no vendor-released patch identified at time of analysis, immediate mitigation is critical.
If the Comments plugin cannot be disabled: restrict plugin access to minimal trusted user roles only, implement Web Application Firewall (WAF) rules to detect and block base64-encoded payloads in POST parameters 'ci' and 'cb', enable comprehensive database query logging with real-time alerting for anomalous INSERT operations, and establish monthly security audits of member account activity and database modifications.
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
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
SQL injection vulnerability in modules/rss/rss.php in Cotonti before 0.9.14 allows remote attackers to execute arbitrary
Cross-site request forgery in Cotonti 1.0.0 (commit f43f1fc3) lets a remote attacker escalate privileges to administrato
PHP object injection in the Cotonti 1.0.0 Comments plugin allows unauthenticated, network-reachable attackers to instant
A vulnerability has been found in Cotonti Siena v0.9.25. Affected by this vulnerability is the file /admin.php?m=config&
Cotonti Siena 0.9.19 contains a stored cross-site scripting vulnerability in the admin configuration panel's site title
A stored cross-site scripting (XSS) vulnerability in the Edit Page function of Cotonti CMS v0.9.24 allows authenticated
Unauthenticated attackers can reset the password of any Cotonti account, including administrator accounts, because passw
Cotonti Siena 0.9.20 allows admins to conduct stored XSS attacks via a direct message (DM). Rated medium severity (CVSS
Cotonti Siena 0.9.20 allows admins to conduct stored XSS attacks via a forum post. Rated medium severity (CVSS 4.8), thi
Cross-site request forgery in Cotonti 1.0.0 (commit f43f1fc3) administration configuration handler allows a remote attac
Cross-Site Request Forgery in the Personal File Storage (PFS) module of Cotonti 1.0.0 (commit f43f1fc3) allows remote at
PHP object injection in Cotonti 1.0.0 allows authenticated users with comment-write permissions to pass attacker-control
EUVD-2026-53379
GHSA-rm37-v7mc-6795
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB