Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. bref/bref
  4. ›
  5. CVE-2024-29186

CVE-2024-29186: Slow String Operations via MultiPart Requests in Event-Driven Functions

March 22, 2024

When Bref is used with the Event-Driven Function runtime and the handler is a RequestHandlerInterface, then the Lambda event is converted to a PSR7 object. During the conversion process, if the request is a MultiPart, each part is parsed. In the parsing process, the Content-Type header of each part is read using the Riverline/multipart-parser library.

The library, in the StreamedPart::parseHeaderContent function, performs slow multi-byte string operations on the header value. Precisely, the mb_convert_encoding function is used with the first ($string) and third ($from_encoding) parameters read from the header value.

References

  • github.com/advisories/GHSA-j4hq-f63x-f39r
  • github.com/brefphp/bref
  • github.com/brefphp/bref/commit/5f7c0294628dbcec6305f638ff7e2dba8a1c2f45
  • github.com/brefphp/bref/security/advisories/GHSA-j4hq-f63x-f39r
  • nvd.nist.gov/vuln/detail/CVE-2024-29186

Code Behaviors & Features

Detect and mitigate CVE-2024-29186 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.17

Fixed versions

  • 2.1.17

Solution

Upgrade to version 2.1.17 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

packagist/bref/bref/CVE-2024-29186.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.