CVE-2016-3957 json
The secure_load function in gluon/utils.py in web2py before 2.14.2 uses pickle.loads to deserialize session information stored in cookies,…
published 2018-02-06 8 y ago modified 2026-06-17 4 mo ago also EUVD-2016-4966
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.9%
- EPSS 4.9% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
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.
Patch / fix
- web2py web2py 2.14.2
- web2py Ubuntu 16.04 LTS 2.12.3-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2016-3957
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Exploit prediction
4.94% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- devco.re https://devco.re/blog/2017/01/03/web2py-unserialize-code-execution-CVE-2016-3957/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
devco.re
/blog/2017/01/03/web2py-unserialize-code-execution-CVE-2016-3957/
exploit, technical-description, third-party-advisory
-
usn.ubuntu.com
/4030-1/
vendor-advisory
-
github.com
/web2py/web2py/blob/R-2.14.1/gluon/utils.py#L200
third-party-advisory
Sources
- CVE List CVE-2016-3957
- NVD CVE-2016-3957
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.