9.8crit

CVE-2016-3957

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 8 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
4.9%
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.

Exploit prediction (EPSS)

4.94% probability of exploitation in the next 30 days, higher than 92% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV: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/ · x_refsource_MISC, x_transferred
  • github.com /web2py/web2py/blob/R-2.14.1/gluon/utils.py#L200 · x_refsource_MISC, x_transferred
  • usn.ubuntu.com /4030-1/ · vendor-advisory, x_refsource_UBUNTU, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.