ModSecurity: Access denied with code 44 -- Multipart parser detected a possible unmatched boundary

Solution Verified - Updated -

Issue

ModSecurity is denying file uploads and showing the following error message:

ModSecurity: Access denied with code 44 (phase 2). Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required. [file "/opt/rh/jbcs-httpd24/root/etc/httpd/conf.d/mod_security.conf"] [line "34"] [id "200003"] [msg "Multipart parser detected a possible unmatched boundary."] [hostname "example.com"] [uri "/FileUpload.do"] [unique_id "WTbGzKwclxoAAE9SjfgAAAAA"], referer: https://example.com/UploadForm

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat JBoss Core Services (JBCS) Apache HTTPD 2.4
  • Red Hat JBoss Web Server 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content