{"id":"CVE-2016-3953","aliases":["EUVD-2022-4863","GHSA-q2rq-qgcf-m22w","PYSEC-2026-570","UBUNTU-CVE-2016-3953","USN-4030-1"],"status":"published","title":"web2py remote code execution via hardcoded encryption key in session.connect function","description":"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.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0334,"percentile":0.88736,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-798"],"published":"2018-02-06T00:00:00Z","modified":"2026-10-20T10:47:36Z","fixes":[{"ecosystem":"PyPI","package":"web2py","fixed_in":["2.14.2"],"sources":["ghsa","osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"web2py","fixed_in":["2.12.3-1ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"web2py","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}]},{"source":"osv","ecosystem":"PyPI","package":"web2py","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}],"versions":["1.96.4","1.98.2","2.1.1"]},{"source":"osv","ecosystem":"PyPI","package":"web2py","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}],"versions":["1.96.4","1.98.2","2.1.1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"web2py","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.3-1ubuntu0.1"}]}],"versions":["1.99.7-1","2.12.3-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"web2py","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.3-1ubuntu0.1"}]}],"versions":["1.99.7-1","2.12.3-1"],"bundled":5}],"products":[{"vendor":"web2py","product":"web2py"}],"references":[{"url":"https://devco.re/blog/2017/01/03/web2py-unserialize-code-execution-CVE-2016-3957/","tags":["x_refsource_MISC","x_transferred","Exploit","Technical Description","Third Party Advisory","evidence","report"]},{"url":"https://github.com/web2py/web2py/blob/R-2.14.1/applications/examples/models/session.py","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://usn.ubuntu.com/4030-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3953","tags":["advisory"]},{"url":"https://github.com/web2py/web2py/issues/1205","tags":["web"]},{"url":"https://github.com/web2py/web2py/commit/9706d125b42481178d2b423de245f5d2faadbf40","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q2rq-qgcf-m22w","tags":["advisory"]},{"url":"https://devco.re/blog/2017/01/03/web2py-unserialize-code-execution-CVE-2016-3957","tags":["web"]},{"url":"https://github.com/web2py/web2py","tags":["package"]},{"url":"https://usn.ubuntu.com/4030-1","tags":["web"]},{"url":"https://pypi.org/project/web2py","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2016-3953","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4030-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-3953","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-3952","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-3954","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-3957","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10321","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-3953","description":"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.","status":"published","published":"2018-02-06T18:00:00Z","modified":"2024-08-06T00:10:31.906Z","updated_at":"2026-11-02T14:33:33.758954Z"}],"euvd":[{"id":"EUVD-2022-4863","description":"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.","status":"published","published":"2018-02-06T18:00:00Z","modified":"2024-08-06T00:10:31Z","updated_at":"2026-11-03T02:22:48.690835Z"}],"ghsa":[{"id":"GHSA-q2rq-qgcf-m22w","title":"web2py remote code execution via hardcoded encryption key in session.connect function","description":"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.","status":"published","published":"2022-05-14T00:57:47Z","modified":"2023-08-03T22:44:35Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-798"],"updated_at":"2026-11-02T14:36:59.456342Z"}],"nvd":[{"id":"CVE-2016-3953","description":"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.","status":"published","published":"2018-02-06T18:29:00.273Z","modified":"2026-06-17T00:46:37.773Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-798"],"updated_at":"2026-11-02T14:03:39.176887Z"}],"osv":[{"id":"CVE-2016-3953","description":"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.","status":"published","published":"2018-02-06T18:29:00.273Z","modified":"2026-10-20T10:47:36.568953645Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"GHSA-q2rq-qgcf-m22w","title":"web2py remote code execution via hardcoded encryption key in session.connect function","description":"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.","status":"published","published":"2022-05-14T00:57:47Z","modified":"2026-06-29T12:26:38.449267094Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-798"],"updated_at":"2026-11-02T15:46:54.055966Z"},{"id":"PYSEC-2026-570","title":"web2py remote code execution via hardcoded encryption key in session.connect function","description":"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.","status":"published","published":"2026-06-29T11:50:32.809887Z","modified":"2026-07-01T20:23:11.781906Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:52:57.671918Z"},{"id":"UBUNTU-CVE-2016-3953","description":"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.","status":"published","published":"2018-02-06T00:00:00Z","modified":"2026-02-04T04:17:08.850073Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:12.261906Z"},{"id":"USN-4030-1","title":"web2py vulnerabilities","description":"It was discovered that web2py does not properly check denied hosts before \nverifying passwords. An attacker could possibly use this issue to perform\nbrute-force attacks. (CVE-2016-10321)\n\nIt was discovered that web2py allows remote attackers to obtain\nenvironment variable values. An attacker could possibly use this issue to\ngain administrative access. (CVE-2016-3952)\n\nIt was discovered that web2py uses a hardcoded encryption key. An\nattacker could possibly use this issue to execute arbitrary code.\n(CVE-2016-3953, CVE-2016-3954, CVE-2016-3957)\n","status":"published","published":"2019-06-21T18:49:17Z","modified":"2026-02-10T04:41:33Z","updated_at":"2026-11-02T16:58:14.019824Z"}]}}
