AWS waf: Add Known bad inputs rules for Java4Shell and Ruby2Shell CVEs
Summary
Adds four new rules to the AWS WAF Known bad inputs managed rule group: Java4Shell_AUTHORIZATION_HEADER (inspects Authorization header) and Ruby2Shell_METHODOVERRIDE_HEADER, Ruby2Shell_MethodOverride_BODY, Ruby2Shell_MULTIPARTMETHOD (inspect headers/body), each with Count action, labels, and body-size-limit warnings.
Security assessment
The added rules explicitly target exploitation of named CVEs (CVE-2026-114938, CVE-2026-132825) by inspecting the Authorization header, method-override headers, and request bodies, giving WAF-level detection of known exploit patterns. This is vulnerability-mitigation documentation, though the rules default to Count (detect-only) rather than Block.
Evidence
`Java4Shell_AUTHORIZATION_HEADER` | Inspects the `Authorization` header for patterns that indicate exploitation of CVE-2026-114938. Rule action: Count Label: `awswaf:managed:aws:known-bad-inputs:Java4Shell_Authorization_Header`
Diff
diff --git a/waf/latest/developerguide/aws-managed-rule-groups-baseline.md b/waf/latest/developerguide/aws-managed-rule-groups-baseline.md index baa2b78..18a5372 100644 --- a//waf/latest/developerguide/aws-managed-rule-groups-baseline.md +++ b//waf/latest/developerguide/aws-managed-rule-groups-baseline.md @@ -111,0 +112,4 @@ Rule name | Description and label +`Java4Shell_AUTHORIZATION_HEADER` | Inspects the `Authorization` header for patterns that indicate exploitation of CVE-2026-114938. Rule action: Count Label: `awswaf:managed:aws:known-bad-inputs:Java4Shell_Authorization_Header` +`Ruby2Shell_METHODOVERRIDE_HEADER` | Inspects the request headers for patterns that indicate exploitation of CVE-2026-132825. Rule action: Count Label: `awswaf:managed:aws:known-bad-inputs:Ruby2Shell_MethodOverride_Header` +`Ruby2Shell_MethodOverride_BODY` | Inspects the request body for patterns that indicate exploitation of CVE-2026-132825. WarningThis rule only inspects the request body up to the body size limit for the protection pack (web ACL) and resource type. For Application Load Balancer and AWS AppSync, the limit is fixed at 8 KB. For CloudFront, API Gateway, Amazon Cognito, App Runner, Verified Access, and Amazon Bedrock AgentCore Gateway, the default limit is 16 KB and you can increase the limit up to 64 KB in your protection pack (web ACL) configuration. This rule uses the `Continue` option for oversize content handling. For more information, see [Oversize web request components in AWS WAF](./waf-oversize-request-components.html). Rule action: Count Label: `awswaf:managed:aws:known-bad-inputs:Ruby2Shell_MethodOverride_Body` +`Ruby2Shell_MULTIPARTMETHOD` | Inspects the request body for patterns that indicate exploitation of CVE-2026-132825. WarningThis rule only inspects the request body up to the body size limit for the protection pack (web ACL) and resource type. For Application Load Balancer and AWS AppSync, the limit is fixed at 8 KB. For CloudFront, API Gateway, Amazon Cognito, App Runner, Verified Access, and Amazon Bedrock AgentCore Gateway, the default limit is 16 KB and you can increase the limit up to 64 KB in your protection pack (web ACL) configuration. This rule uses the `Continue` option for oversize content handling. For more information, see [Oversize web request components in AWS WAF](./waf-oversize-request-components.html). Rule action: Count Label: `awswaf:managed:aws:known-bad-inputs:Ruby2Shell_MultipartMethod`