# CVE-2024-24753: Bref Multiple Value Headers Not Supported in ApiGatewayFormatV2

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-01T16:09:55.328Z
- Modified: 2026-09-10T03:50:06.175Z
- Also known as: GHSA-99f9-gv72-fw9r
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- brefphp bref: < 2.1.13
- bref/bref (Packagist): before 2.1.13
- mnapoli bref: before 2.1.13

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/brefphp/bref/security/advisories/GHSA-99f9-gv72-fw9r> (exploit, vendor-advisory, web)
- <https://github.com/brefphp/bref/commit/f834027aaf88b3885f4aa8edf6944ae920daf2dc> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24753> (advisory)
- <https://github.com/brefphp/bref> (package)
- <https://github.com/brefphp/bref/blob/2.1.12/src/Event/Http/HttpResponse.php#L61-L90> (web)

## Sources

- CVE List: [CVE-2024-24753](https://www.cve.org/CVERecord?id=CVE-2024-24753), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-99f9-gv72-fw9r](https://github.com/advisories/GHSA-99f9-gv72-fw9r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24753](https://nvd.nist.gov/vuln/detail/CVE-2024-24753), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24753 · Whole record: https://cve.day/CVE-2024-24753.json · Rebuilt by cve.day 2026-11-25T22:58:36.497Z
