CVE-2024-24753
MEDIUM 6.5CVSS 3.1Bref Doesn't Support Multiple Value Headers 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.
- Published
- 1 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-436
- Also known as
- GHSA-99f9-gv72-fw9r
- Sources
- NVDJSONOSV GHSA-99f9-gv72-fw9rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mnapoli | brefcpe:2.3:a:mnapoli:bref:*:*:*:*:*:*:*:* |
< 2.1.13 | 2.1.13 |
| OSV | Packagist | bref/bref | < 2.1.13 | 2.1.13 |
References
- https://github.com/brefphp/bref/commit/f834027aaf88b3885f4aa8edf6944ae920daf2dc · Patch, WEB
- https://github.com/brefphp/bref/security/advisories/GHSA-99f9-gv72-fw9r · Exploit, Vendor Advisory, 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
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 1 Feb 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 1 Feb 2024)