CVE-2020-28468 json
Improper Control of Generation of Code ('Code Injection')
published 2021-01-08 5 y ago modified 2026-06-17 4 mo ago also GHSA-7xc5-ggpp-g249 , PYSEC-2021-72 , EUVD-2021-0204
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.4%
- EPSS 4.4% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pwntools 4.3.1
- n/a pwntools 4.3.1
- python-pwntools Arch Linux 4.3.1-1
arch linux advisories AVG-1419
- github.com/Gallopsled/pwntools@138188e commit
- github.com/Gallopsled/pwntools#1732 pull request
- snyk.io/vuln/SNYK-PYTHON-PWNTOOLS-1047345 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-28468 updated cvss 8.1
pwntools: shellcraft generator is vulnerable to Server-Side Template Injection, which can lead to remote code execution
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.38% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-PYTHON-PWNTOOLS-1047345 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/Gallopsled/pwntools/issues/1427 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pwntools | <4.3.1 |
4.3.1 |
Affected products
- n/a pwntools
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/Gallopsled/pwntools/pull/1732
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-PYTHON-PWNTOOLS-1047345
web, exploit, patch, third-party-advisory, advisory
-
github.com
/Gallopsled/pwntools/commit/138188eb1c027a2d0ffa4151511c407d3a001660
web
-
github.com
/Gallopsled/pwntools/issues/1427
web, exploit, issue-tracking, third-party-advisory, report
-
nvd.nist.gov
/vuln/detail/CVE-2020-28468
advisory
-
github.com
/Gallopsled/pwntools
package
-
github.com
/advisories/GHSA-7xc5-ggpp-g249
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pwntools/PYSEC-2021-72.yaml
web
Sources
- CVE List CVE-2020-28468
- GitHub Advisory GHSA-7xc5-ggpp-g249
- NVD CVE-2020-28468
- OSV PYSEC-2021-72
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.