GHSA-qpg2-vx7j-3869

Suggest an improvement
Source
https://github.com/advisories/GHSA-qpg2-vx7j-3869
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qpg2-vx7j-3869/GHSA-qpg2-vx7j-3869.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qpg2-vx7j-3869
Aliases
Published
2022-05-24T22:00:57Z
Modified
2024-10-26T22:51:54.343575Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
XML Injection in ReportLab
Details

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.

Database specific
{
    "nvd_published_at": "2019-10-16T12:15:00Z",
    "cwe_ids": [
        "CWE-91"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-27T16:52:31Z"
}
References

Affected packages

PyPI / reportlab

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.5.28

Affected versions

2.*

2.0
2.3
2.4
2.5
2.6
2.7

3.*

3.0
3.1.8
3.1.44
3.2.0
3.3.0
3.4.0
3.5.0
3.5.1
3.5.2
3.5.4
3.5.5
3.5.6
3.5.8
3.5.9
3.5.10
3.5.11
3.5.12
3.5.13
3.5.16
3.5.17
3.5.18
3.5.19
3.5.20
3.5.21
3.5.23
3.5.26