# CVE-2020-28468: Improper Control of Generation of Code ('Code Injection')

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.38%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-01-08T11:20:13.794Z
- Modified: 2026-06-17T03:10:30.207Z
- Also known as: GHSA-7xc5-ggpp-g249, PYSEC-2021-72, SNYK-PYTHON-PWNTOOLS-1047345
- Weaknesses: CWE-74
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- pwntools: from unspecified before 4.3.1
- pwntools (PyPI): before 4.3.1
- pwntools_project pwntools: before 4.3.1

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-PYTHON-PWNTOOLS-1047345> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/Gallopsled/pwntools/issues/1427> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://github.com/Gallopsled/pwntools/pull/1732> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-28468> (advisory)
- <https://github.com/Gallopsled/pwntools/commit/138188eb1c027a2d0ffa4151511c407d3a001660> (web)
- <https://github.com/Gallopsled/pwntools> (package)
- <https://github.com/advisories/GHSA-7xc5-ggpp-g249> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pwntools/PYSEC-2021-72.yaml> (web)

## Sources

- CVE List: [CVE-2020-28468](https://www.cve.org/CVERecord?id=CVE-2020-28468), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-7xc5-ggpp-g249](https://github.com/advisories/GHSA-7xc5-ggpp-g249), CC-BY-4.0, modified 2024-10-18
- NVD: [CVE-2020-28468](https://nvd.nist.gov/vuln/detail/CVE-2020-28468), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-72](https://osv.dev/vulnerability/PYSEC-2021-72), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-28468 · Whole record: https://cve.day/CVE-2020-28468.json · Rebuilt by cve.day 2026-11-25T22:57:56.939Z
