{"id":"CVE-2020-28468","aliases":["EUVD-2021-0204","GHSA-7xc5-ggpp-g249","PYSEC-2021-72","SNYK-PYTHON-PWNTOOLS-1047345"],"status":"published","title":"Improper Control of Generation of Code ('Code Injection')","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.04379,"percentile":0.91365,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74"],"published":"2021-01-08T11:20:13Z","modified":"2026-10-20T10:53:05Z","fixes":[{"ecosystem":"PyPI","package":"pwntools","fixed_in":["4.3.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pwntools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pwntools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}],"versions":["2.0","2.1.0","2.1.1","2.1.2","2.1.3","2.2","3.0.0","3.0.1","3.0.2","3.0.4","3.1.0","3.1.0b0","3.1.0b1","3.1.0b2","3.1.0b3","3.1.1","3.10.0","3.10.0b0","3.10.0b1","3.10.0b2","3.11.0","3.11.0b0","3.12.0","3.12.0b0","3.12.1","3.12.2","3.13.0","3.13.0b0","3.2.0","3.2.0b0","3.2.0b2","3.2.0b3","3.2.0b4","3.2.0b5","3.2.1","3.3.0","3.3.0b0","3.3.1","3.3.2","3.3.3","3.3.4","3.4.0","3.4.0b0","3.4.0b1","3.4.0b2","3.4.0b3","3.4.0b4","3.4.1","3.5.0","3.5.0b0","3.5.0b1","3.5.1","3.6.0","3.6.0b0","3.6.0b1","3.6.1","3.7.0","3.7.0b0","3.7.0b1","3.7.1","3.8.0","3.8.0b0","3.8.0b1","3.9.0","3.9.0b0","3.9.1","3.9.2","3.9.3","4.0.0","4.0.0b0","4.0.1","4.1.0","4.1.0b0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.2.0","4.2.0b0","4.2.1","4.2.2","4.3.0","4.3.0b0"]},{"source":"osv","ecosystem":"PyPI","package":"pwntools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}],"versions":["2.0","2.1.0","2.1.1","2.1.2","2.1.3","2.2","3.0.0","3.0.1","3.0.2","3.0.4","3.1.0b0","3.1.0b1","3.1.0b2","3.1.0b3","3.1.0","3.1.1","3.2.0b0","3.2.0b2","3.2.0b3","3.2.0b4","3.2.0b5","3.2.0","3.2.1","3.3.0b0","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","3.4.0b0","3.4.0b1","3.4.0b2","3.4.0b3","3.4.0b4","3.4.0","3.4.1","3.5.0b0","3.5.0b1","3.5.0","3.5.1","3.6.0b0","3.6.0b1","3.6.0","3.6.1","3.7.0b0","3.7.0b1","3.7.0","3.7.1","3.8.0b0","3.8.0b1","3.8.0","3.9.0b0","3.9.0","3.9.1","3.9.2","3.9.3","3.10.0b0","3.10.0b1","3.10.0b2","3.10.0","3.11.0b0","3.11.0","3.12.0b0","3.12.0","3.12.1","3.12.2","3.13.0b0","3.13.0","4.0.0b0","4.0.0","4.0.1","4.1.0b0","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.2.0b0","4.2.0","4.2.1","4.2.2","4.3.0b0","4.3.0"]}],"products":[{"vendor":"pwntools_project","product":"pwntools"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-PWNTOOLS-1047345","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://github.com/Gallopsled/pwntools/issues/1427","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/Gallopsled/pwntools/pull/1732","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28468","tags":["advisory"]},{"url":"https://github.com/Gallopsled/pwntools/commit/138188eb1c027a2d0ffa4151511c407d3a001660","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7xc5-ggpp-g249","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pwntools/PYSEC-2021-72.yaml","tags":["web"]},{"url":"https://github.com/Gallopsled/pwntools","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-28468","title":"Improper Control of Generation of Code ('Code Injection')","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-01-08T11:20:13.794Z","modified":"2024-09-16T23:22:02.072Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:57.017407Z"}],"euvd":[{"id":"EUVD-2021-0204","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-01-08T11:20:13Z","modified":"2024-09-16T23:22:02Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:54:54.099071Z"}],"ghsa":[{"id":"GHSA-7xc5-ggpp-g249","title":"pwntools Server-Side Template Injection (SSTI) vulnerability","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-04-20T16:13:24Z","modified":"2024-10-18T21:58:02Z","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"},{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:38:11.479492Z"}],"nvd":[{"id":"CVE-2020-28468","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-01-08T12:15:12.687Z","modified":"2026-06-17T03:10:30.207Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"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","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-74"],"updated_at":"2026-11-02T14:06:28.892872Z"}],"osv":[{"id":"CVE-2020-28468","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-01-08T12:15:12.687Z","modified":"2026-10-20T10:53:05.081622667Z","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:44:16.248747Z"},{"id":"GHSA-7xc5-ggpp-g249","title":"pwntools Server-Side Template Injection (SSTI) vulnerability","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-04-20T16:13:24Z","modified":"2024-10-18T22:22:40.219895Z","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"},{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T15:46:41.732368Z"},{"id":"PYSEC-2021-72","description":"This affects the package pwntools before 4.3.1. The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.","status":"published","published":"2021-01-08T12:15:00Z","modified":"2023-11-08T04:03:27.563618Z","updated_at":"2026-11-02T15:52:53.119977Z"}]}}
