{"id":"PYSEC-2026-570","summary":"web2py remote code execution via hardcoded encryption key in session.connect function","details":"The sample web application in web2py before 2.14.2 might allow remote attackers to execute arbitrary code via vectors involving use of a hardcoded encryption key when calling the `session.connect` function.","aliases":["CVE-2016-3953","GHSA-q2rq-qgcf-m22w"],"modified":"2026-07-01T20:23:11.781906Z","published":"2026-06-29T11:50:32.809887Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3953"},{"type":"WEB","url":"https://github.com/web2py/web2py/issues/1205"},{"type":"WEB","url":"https://github.com/web2py/web2py/commit/9706d125b42481178d2b423de245f5d2faadbf40"},{"type":"WEB","url":"https://devco.re/blog/2017/01/03/web2py-unserialize-code-execution-CVE-2016-3957"},{"type":"PACKAGE","url":"https://github.com/web2py/web2py"},{"type":"WEB","url":"https://github.com/web2py/web2py/blob/R-2.14.1/applications/examples/models/session.py"},{"type":"WEB","url":"https://usn.ubuntu.com/4030-1"},{"type":"PACKAGE","url":"https://pypi.org/project/web2py"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-q2rq-qgcf-m22w"}],"affected":[{"package":{"name":"web2py","ecosystem":"PyPI","purl":"pkg:pypi/web2py"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}],"versions":["1.96.4","1.98.2","2.1.1"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/web2py/PYSEC-2026-570.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}