Описание
ReDoS issue in dparse
Impact
dparse versions prior to 0.5.1 contain a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service).
All users parsing index server URLs with dparse are impacted by this vulnerability.
Patches
The Patch is applied in the 0.5.2 version, all users are recommended to upgrade as soon as possible.
Workarounds
Avoid passing index server URLs in the source file to be parsed.
References
https://github.com/pyupio/dparse/tree/security/remove-intensive-regex
For more information
If you have any questions or comments about this advisory:
- Email us at support@pyup.io
Ссылки
- https://github.com/pyupio/dparse/security/advisories/GHSA-8fg9-p83m-x5pq
- https://nvd.nist.gov/vuln/detail/CVE-2022-39280
- https://github.com/pyupio/dparse/commit/8c990170bbd6c0cf212f1151e9025486556062d5
- https://github.com/pyupio/dparse/commit/d87364f9db9ab916451b1b036cfeb039e726e614
- https://github.com/pypa/advisory-database/tree/main/vulns/dparse/PYSEC-2022-301.yaml
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
Пакеты
dparse
< 0.5.2
0.5.2
EPSS
8.2 High
CVSS4
5.9 Medium
CVSS3
CVE ID
Дефекты
Связанные уязвимости
dparse is a parser for Python dependency files. dparse in versions before 0.5.2 contain a regular expression that is vulnerable to a Regular Expression Denial of Service. All the users parsing index server URLs with dparse are impacted by this vulnerability. A patch has been applied in version `0.5.2`, all the users are advised to upgrade to `0.5.2` as soon as possible. Users unable to upgrade should avoid passing index server URLs in the source file to be parsed.
EPSS
8.2 High
CVSS4
5.9 Medium
CVSS3