Bug 2526711 - CVE-2026-55520 python-protego: Protego: Denial of Service via exponential backtracking in robots.txt URL wildcard matching [fedora-all]
Summary: CVE-2026-55520 python-protego: Protego: Denial of Service via exponential bac...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-protego
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Eduardo Echeverria
QA Contact:
URL:
Whiteboard: {"flaws": ["3cfd7abb-d960-4e59-ae3c-8...
Depends On:
Blocks: CVE-2026-55520
TreeView+ depends on / blocked
 
Reported: 2026-09-01 08:49 UTC by Samuele Negrini
Modified: 2026-09-01 08:49 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Samuele Negrini 2026-09-01 08:49:33 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Protego is a pure-Python robots.txt parser with support for modern conventions. Prior to 0.6.2, protego._urlpattern._URLPattern._prepare_pattern_for_regex translates every asterisk in an Allow or Disallow directive into a lazy regular-expression wildcard, so a directive containing many asterisks creates exponential backtracking. After protego.Protego.parse processes a crafted robots.txt file, protego.Protego.can_fetch can spend an attacker-controlled period matching a near-miss URL and deny service to the crawler. The vulnerable path is src/protego/_urlpattern.py in the _URLPattern match logic. This issue is fixed in version 0.6.2.


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