CVE-2019-11458: Cakephp/cakephp Unsafe Deserialization Vulnerability
HIGHCVE-2019-11458 is a HIGH (CVSS 7.5) unsafe deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Cakephp/cakephp libraries in the Packagist ecosystem. The issue involves unsafe deserialization in smtptransport in cakephp. Remediation is available by upgrading affected packages to version 3.5.18, 3.6.15, 3.7.7.
CVE-2019-11458 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2019-11458
To remediate this vulnerability, upgrade all affected Cakephp/cakephp 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 cakephp/cakephp to 3.5.18
Upgrade cakephp/cakephp to 3.6.15
Upgrade cakephp/cakephp to 3.7.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for cakephp/cakephp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-11458, inspect your project dependencies for Cakephp/cakephp:
inspect dependencies for cakephp/cakephp
Analyze the terminal output to locate any version of Cakephp/cakephp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.18), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Cakephp/cakephp, 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
CVE-2019-11458 Affected Cakephp/cakephp Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cakephp/cakephp
|
Packagist |
≥ 3.0.0
< 3.5.18
|
3.5.18
|
|
cakephp/cakephp
|
Packagist |
≥ 3.6.0
< 3.6.15
|
3.6.15
|
|
cakephp/cakephp
|
Packagist |
≥ 3.7.0
< 3.7.7
|
3.7.7
|
References
Frequently Asked Questions
What is CVE-2019-11458?
Which Cakephp/cakephp versions are affected?
What version fixes CVE-2019-11458?
Is cakephp/cakephp affected?
What is the CVSS score of CVE-2019-11458?
What CWE is associated with CVE-2019-11458?
How can I check Packagist dependencies for CVE-2019-11458?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qhrx-hcm6-pmrw",
"modified" : "2025-05-29T22:52:21Z",
"published" : "2019-12-02T18:12:26Z",
"aliases" : [ "CVE-2019-11458" ],
"summary" : "Unsafe deserialization in SmtpTransport in CakePHP",
"details" : "An issue was discovered in SmtpTransport in CakePHP 3.7.6. An unserialized object with modified internal properties can trigger arbitrary file overwriting upon destruction.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.5.18"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.6.0"
}, {
"fixed" : "3.6.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.7.0"
}, {
"fixed" : "3.7.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11458"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/commit/1a74e798309192a9895c9cedabd714ceee345f4e"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/commit/81412fbe2cb88a304dbeeece1955bc0aec98edb1"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/commit/c25b91bf7c72db43c01b47a634fd02112ff9f1cd"
}, {
"type" : "WEB",
"url" : "https://bakery.cakephp.org/2019/04/23/cakephp_377_3615_3518_released.html"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/cakephp/cakephp/CVE-2019-11458.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cakephp/cakephp"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/commits/master"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/compare/3.7.6...3.7.7"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-12-02T00:51:02Z",
"nvd_published_at" : "2019-05-08T18:29:00Z"
}
}