CVE-2024-24753 Bref Multiple Value Headers Not Supported in ApiGatewayFormatV2
Bref library drops duplicate security headers, allowing attackers to bypass protections like Content-Security-Policy in AWS Lambda applications.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-24753?
CVE-2024-24753 is a medium-severity vulnerability in brefphp bref, published on 1 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-436
Which versions are affected by CVE-2024-24753?
2 open source packages ship an affected version, including bref/bref. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bref/bref Packagist | All versions | 2.1.13 |
bref/bref Packagist | All versions | 2.1.13 |
Products include Mnapoli Bref.
How do I fix CVE-2024-24753?
Upgrade bref/bref to 2.1.13 or later.
Is CVE-2024-24753 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24753 exists.
Other vulnerabilities in brefphp bref
Sources
Also known as GHSA-99f9-gv72-fw9r.