Critical
Security advisory
The secure_load function in gluon/utils.py in web2py before 2.14.2 uses pickle.loads to deserialize session information stored in cookies, which might allow remote attackers to execute arbitrary code by leveraging knowledge of encryption_key.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-3957
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:42 UTC · Revision 1
Source evidence
The secure_load function in gluon/utils.py in web2py before 2.14.2 uses pickle.loads to deserialize session information stored in cookies, which might allow remote attackers to execute arbitrary code by leveraging knowledge of encryption_key.
osv:CVE-2016-3957
Complete source record
{
"id": "6a477da0e5e640866c7b7f83850db844dcf6b10dc55d9b3a12ce978b970feaba",
"url": "https://osv.dev/vulnerability/CVE-2016-3957",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-3957",
"summary": "The secure_load function in gluon/utils.py in web2py before 2.14.2 uses pickle.loads to deserialize session information stored in cookies, which might allow remote attackers to execute arbitrary code by leveraging knowledge of encryption_key.",
"evidence": "osv:CVE-2016-3957",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2016-3957",
"aliases": [
"CVE-2016-3957"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/web2py/web2py",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "32650f0cbf2c0211195e792a219899f74856b73e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:web2py:web2py:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.14.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"R-2.14.1",
"R-2.13.4",
"R-2.13.3",
"R-2.13.2",
"R-2.13.1",
"R-2.12.3",
"R-2.12.2",
"R-2.12.1",
"R-2.11.2",
"R-2.11.1",
"R-2.10.4",
"R-2.10.4.beta",
"R-2.10.3",
"R-2.10.2",
"R-2.10.1",
"R-2.9.12",
"R-2.9.11",
"R-2.9.10",
"R-2.9.9",
"R-2.9.8",
"R-2.9.7",
"R-2.9.6",
"R-2.9.5",
"R-2.9.4",
"R-2.9.3",
"R-2.9.2",
"R-2.8.2",
"R-2.8.1",
"R-2.7.4",
"R-2.7.3",
"R-2.7.2",
"R-2.7.1",
"R-2.6.4",
"R-2.6.3",
"R-2.6.2",
"R-2.6.1",
"R-2.5.1",
"R-2.4.7",
"R-2.4.6",
"R-2.4.5",
"R-2.4.4",
"R-2.4.3",
"R-2.4.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-3957.json"
}
}
],
"modified": "2026-10-20T10:47:36.662479451Z",
"provider": "osv",
"references": [
"https://usn.ubuntu.com/4030-1/",
"https://github.com/web2py/web2py/blob/R-2.14.1/gluon/utils.py#L200",
"https://devco.re/blog/2017/01/03/web2py-unserialize-code-execution-CVE-2016-3957/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-3957",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379577,
"published_at": "2018-02-06T18:29:00.4+00:00"
}