Skip to content

Instantly share code, notes, and snippets.

@fourcube
Created March 23, 2025 22:37
Show Gist options
  • Save fourcube/db12eae7c7f519fd6440274cab566d58 to your computer and use it in GitHub Desktop.
Save fourcube/db12eae7c7f519fd6440274cab566d58 to your computer and use it in GitHub Desktop.
Temporary AWS WAF rule as a workaround for CVE-2025-29927
{
"Name": "Block_CVE-2025-29927",
"Priority": 0,
"Action": {
"Block": {}
},
"VisibilityConfig": {
"SampledRequestsEnabled": true,
"CloudWatchMetricsEnabled": true,
"MetricName": "Block_CVE-2025-29927"
},
"Statement": {
"SizeConstraintStatement": {
"FieldToMatch": {
"SingleHeader": {
"Name": "x-middleware-subrequest"
}
},
"ComparisonOperator": "GT",
"Size": 0,
"TextTransformations": [
{
"Type": "NONE",
"Priority": 0
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment