Project

General

Profile

Actions

Security #6306

closed

mime: quadratic complexity in MimeDecAddEntity

Added by Philippe Antoine over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Label:
CVE:
Git IDs:
Severity:
CRITICAL
Disclosure Date:

Description

Found by quadfuzz

500 kilobytes pcap takes 40 seconds to process, just spending time adding to a linked list

The fuzz input to fuzz_mimedecparseline is

content-Type:;boundary=;

--

--

--

With the lines repeating many times

Solution to add to a linked list should be to keep the tail known


Files

lol.pcap (438 KB) lol.pcap Philippe Antoine, 09/11/2023 02:44 PM

Subtasks 1 (0 open1 closed)

Security #6363: mime: quadratic complexity in MimeDecAddEntity (6.0.x backport)ClosedPhilippe AntoineActions
Actions #1

Updated by Philippe Antoine over 1 year ago

  • Status changed from New to In Review
  • Assignee changed from OISF Dev to Philippe Antoine

Gitlab MR

Actions #2

Updated by OISF Ticketbot over 1 year ago

  • Subtask #6363 added
Actions #3

Updated by OISF Ticketbot over 1 year ago

  • Label deleted (Needs backport to 6.0)
Actions #4

Updated by Victor Julien about 1 year ago

  • Severity changed from MODERATE to CRITICAL
Actions #5

Updated by Philippe Antoine about 1 year ago

I wonder if there is the same issue with AddDataValue

Actions #6

Updated by Philippe Antoine about 1 year ago

Philippe Antoine wrote in #note-5:

I wonder if there is the same issue with AddDataValue

No, because it is bound by mdcfg->header_value_depth

Actions #7

Updated by Shivani Bhardwaj about 1 year ago

  • Status changed from In Review to Resolved
Actions #9

Updated by Victor Julien about 1 year ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF