Bug 2028452 - python-markdown2: Regular expression denial of service in auto linking urls
Summary: python-markdown2: Regular expression denial of service in auto linking urls
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2028454 2028455
Blocks: 2028456
TreeView+ depends on / blocked
 
Reported: 2021-12-02 12:30 UTC by Pedro Sampaio
Modified: 2021-12-23 09:10 UTC (History)
28 users (show)

Fixed In Version: python-markdown 2.4.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-23 09:10:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2021-12-02 12:30:07 UTC
Changelog from python-markdown2-2.4.2 points to a fix for a regular expression denial of service.

References:

https://github.com/trentm/python-markdown2/pull/410

Comment 1 Pedro Sampaio 2021-12-02 12:30:33 UTC
Created python-markdown tracking bugs for this issue:

Affects: fedora-all [bug 2028455]


Created python-markdown2 tracking bugs for this issue:

Affects: fedora-all [bug 2028454]

Comment 2 Garrett Tucker 2021-12-02 15:05:55 UTC
This flaw is specifically within python-markdown2, which is distinct from python-markdown. python-markdown is shipped in RHEL while python-markdown2 is not. Python-markdown does not contain this flaw. The flaw stemmed from loose regex checks when auto linking a URL. This regex expression allowed values that could result in a denial of service and has since been fixed by applying stricter regex checks when auto linking.

Comment 3 Yadnyawalk Tale 2021-12-03 14:20:02 UTC
Red Hat Satellite does not ship python-markdown2 and rather ship python-markdown which is completely different python module and not affected.
Affected >> https://github.com/trentm/python-markdown2
Not Affected >> https://github.com/Python-Markdown/markdown

Comment 5 Miro Hrončok 2021-12-03 21:44:14 UTC
(In reply to Garrett Tucker from comment #2)
> This flaw is specifically within python-markdown2, which is distinct from
> python-markdown. python-markdown is shipped in RHEL while python-markdown2
> is not. Python-markdown does not contain this flaw. The flaw stemmed from
> loose regex checks when auto linking a URL. This regex expression allowed
> values that could result in a denial of service and has since been fixed by
> applying stricter regex checks when auto linking.

Comment 8 Tapas Jena 2021-12-23 08:36:04 UTC
Analysis is complete for all the Ansible components and it was found that none of the ansible components ship python-markdown2. Among Ansible components, Ansible Tower/AWX does use python-markdown[1] which is not affected by this vulnerability. Hence, marking Ansible as "Not Affected".

[1] https://github.com/ansible/galaxy_ng/blob/315235807c88aa04f07517a8547fa18a8081b97c/requirements/requirements.insights.txt#L183


Note You need to log in before you can comment on or make changes to this bug.