ReportLab through 3.5.26 allows remote code execution because of toColor(eval(arg)) in colors.py, as demonstrated by a crafted XML document with '<span color="' followed by arbitrary Python code.
| Score | Percentile |
|---|---|
| 16.84% | 94.83% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 9.8 | 3.1 | — |
|
| 9.3 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-qpg2-vx7j-3869 ↗ |
| CVE | CVE-2019-17626 ↗ |
| CWE id | Name |
|---|---|
| CWE-91 | XML Injection (aka Blind XPath Injection) |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| pip | reportlab | < 3.5.28 | 3.5.28 | — |