Read the docs
TI-2024-16269 Aliases CVE-2024-24752GHSA-x4hh-frx8-98r5

Bref Uploaded Files Not Deleted in Event-Driven Functions

Priority MEDIUM 62CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

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 is patched in 2.1.13.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0075 55th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed bref (brefphp): 2.1.13bref/bref (Packagist): 2.1.13

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
brefphpbrefbefore 2.1.132.1.13Patch availableCNA
—bref/bref (Packagist)before 2.1.132.1.13Patch availableGHSA-x4hh-frx8-98r5
  • bref Vendorbrefphp Affected before 2.1.13 Fixed in 2.1.13 Patch available CNA
  • bref/bref (Packagist) Vendor— Affected before 2.1.13 Fixed in 2.1.13 Patch available GHSA-x4hh-frx8-98r5

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mnapoli:bref:*:*:*:*:*:*:*:*before 2.1.13Vulnerablebrefphp
  • cpe:2.3:a:mnapoli:bref:*:*:*:*:*:*:*:* Versions before 2.1.13 Vulnerable ·brefphp

Remediation

  • Fix · CNA bref (brefphp) Fixed in 2.1.13
  • Fix · GHSA-x4hh-frx8-98r5 bref/bref (Packagist) Fixed in 2.1.13 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-24752
  2. 2026-10-03 Alias added: GHSA-x4hh-frx8-98r5

References

  • TI-2024-16271 Bref Body Parsing Inconsistency in Event-Driven Functions CVSS 3.1CRITICAL 9.8
  • TI-2024-16270 Bref Multiple Value Headers Not Supported in ApiGatewayFormatV2 CVSS 3.1MEDIUM 6.5
  • TI-2024-19355 Slow String Operations via MultiPart Requests in Event-Driven Functions CVSS 3.1MEDIUM 5.3

Sources