p PatchFirst

PatchFirst · Latest vulnerabilities

bref/bref vulnerabilities

Vulnerabilities published for bref/bref in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 4

  1. CVE-2024-29186

    Medium · CVSS 5.3EPSS 0.67%Fix available

    Slow String Operations via MultiPart Requests in Event-Driven Functions

    Bref is an open-source project that helps users go serverless on Amazon Web Services with PHP. When Bref prior to version 2.1.17 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` func

    • Update to 2.1.17
    Published Updated
  2. CVE-2024-24754

    Low · CVSS 3.7EPSS 0.62%Fix available

    Bref Body Parsing Inconsistency in Event-Driven Functions

    Bref enable serverless PHP on AWS Lambda. 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 and its content added in the `$files` or `$parsedBody` arrays. The conversion process produces a different output compared to the one of plain PHP when keys ending with and open square bracket ([) are used. Based on the application logic the difference in the body parsing might lead to vulnerabilities and/or undefined behaviors. This vulnerability is patched in 2.1.

    • Update to 2.1.13
    Published Updated
  3. CVE-2024-24752

    Medium · CVSS 6.5EPSS 0.75%Fix available

    Bref Uploaded Files Not Deleted in Event-Driven Functions

    Bref enable serverless PHP on AWS Lambda. 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 and for each which contains a file, it is extracted and saved in `/tmp` with a random filename starting with `bref_upload_`. The flow mimics what plain PHP does but it does not delete the temporary files when the request has been processed. An attacker could fill the Lambda instance disk by performing multiple MultiPart requests containing files. This vulnerability

    • Update to 2.1.13
    Published Updated
  4. CVE-2024-24753

    Medium · CVSS 4.8EPSS 0.43%Fix available

    Bref Multiple Value Headers Not Supported in ApiGatewayFormatV2

    Bref enable serverless PHP on AWS Lambda. When Bref is used in combination with an API Gateway with the v2 format, it does not handle multiple values headers. If PHP generates a response with two headers having the same key but different values only the latest one is kept. If an application relies on multiple headers with the same key being set for security reasons, then Bref would lower the application security. For example, if an application sets multiple `Content-Security-Policy` headers, then Bref would just reflect the latest one. This vulnerability is patched in 2.1.13.

    • Update to 2.1.13
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →