Skip to content
Known conformance gaps

Known conformance gaps

Core tests in tests/ that a surveyed engine is known to fail today, with the spec section that decides the behaviour. The engines are ModSecurity v2 (v2/master, 2026-09), libmodsecurity v3.0.17 and Coraza v3.8.1, as read from source on 2026-10-06 and 2026-10-07 (libmodsecurity rechecked against v3.0.17 on 2026-11-09, ModSecurity v2 run as v2.9.15 from 2026-11-09). Every row is verified: adapters/coraza, adapters/libmodsecurity and adapters/modsecurity2 run every test in CI and fail when a listed file passes or an unlisted one fails. An entry here is a bug for the engine, not a weakness of the test. Entries are removed when the engine is fixed; new ones are added whenever a Divergence ADR or a divergence note picks against an engine.

TestEngineBehaviour todayDecided in
tests/engine/actions/ctl-auditlogparts-absolute.yamllibmodsecurity v3ctl:auditLogParts without + or - is a parse error (“Expecting an action”; seclang-scanner.ll, `=[+-]{AUDIT_PARTS}`)
tests/engine/body/files-combined-size-fields.yamlCorazaFILES_COMBINED_SIZE includes the bytes of non-file fields (internal/bodyprocessors/multipart.go, totalSize grows in the field branch too)05-variables.md#files_combined_size
tests/engine/directives/secrequestbodyjsondepthlimit.yamlModSecurity v2top-level object not counted toward SecRequestBodyJsonDepthLimit; limit 2 accepts depth 304-directives.md#secrequestbodyjsondepthlimit
tests/engine/directives/secrequestbodylimit-boundary.yamlCorazaa body of exactly SecRequestBodyLimit bytes is rejected (transaction.go, >= tx.RequestBodyLimit; v2 and v3 use >)04-directives.md#secrequestbodylimit
tests/engine/directives/secresponsebodylimit-boundary.yamlCorazaa response of exactly SecResponseBodyLimit bytes is rejected (transaction.go, WriteResponseBody, >=; v2 and v3 use >)04-directives.md#secresponsebodylimit
tests/engine/directives/secresponsebodylimit-uninspected.yamlCorazaSecResponseBodyLimit enforced on a response whose type is not inspected (transaction.go, WriteResponseBody checks the limit before IsResponseBodyProcessable)04-directives.md#secresponsebodylimit
tests/engine/lexical/case-insensitive-names.yamlCorazaoperator names matched case-sensitivelyADR-0002
tests/engine/lexical/comment-with-trailing-backslash.yamlCorazacontinued comment parsed as a directiveADR-0013
tests/engine/grammar/macro-unset-variable.yamlCorazaa macro naming an unset member expands to the macro body without %{ and } (%{tx.unset} gives tx.unset; experimental/plugins/macro/macro.go expandToken returns token.text)02-grammar.md#macro-expansion
tests/engine/grammar/directive-line-whitespace.yamlCorazatab between arguments is a load error02-grammar.md#directive-line
tests/engine/grammar/secrule-requires-id.yamlCorazarule without id loads (default build)ADR-0015
tests/engine/processing/default-phase.yamllibmodsecurity v3phase-less rule runs in phase 1ADR-0017
tests/engine/processing/default-action-no-phase.yamllibmodsecurity v3missing phase defaults to 1ADR-0014
tests/engine/processing/default-action-redefined.yamlModSecurity v2second SecDefaultAction replaces the firstADR-0014
tests/engine/processing/default-action-tag.yamlModSecurity v2, libmodsecurity v3tag accepted in SecDefaultAction (v2 apache2/apache2_config.c cmd_default_action, unchecked; v3 src/parser/seclang-parser.yy, accepts every run-time action)ADR-0014
tests/engine/processing/default-action-msg.yamllibmodsecurity v3msg accepted in SecDefaultAction (run-time action, src/parser/seclang-parser.yy)ADR-0014
tests/engine/processing/default-action-transformation.yamlModSecurity v2, libmodsecurity v3a transformation other than t:none accepted in SecDefaultAction (v2 warns, cmd_default_action; v3 rejects only t:none, src/parser/seclang-parser.yy)ADR-0014
tests/engine/processing/default-action-no-rule.yamlCorazaa violating SecDefaultAction with no rule after it loads; validation runs when the next rule is parsed (internal/seclang/rule_parser.go, ParseDefaultActions)ADR-0014
tests/engine/processing/phase4-without-inspection.yamllibmodsecurity v3phase 4 rules are not evaluated when the response body is not inspected (src/transaction.cc, processResponseBody returns before evaluate(ResponseBodyPhase) when SecResponseBodyAccess is not On or the type is not listed)03-processing-model.md#phases
tests/engine/processing/rule-exceptions-tag-literal.yamlModSecurity v2ByTag parameter matched as an unanchored regular expression: app/foo also removes the rule tagged app/foobar (apache2/re.c, msre_ruleset_rule_matches_exception)ADR-0029
tests/engine/processing/skipafter-missing-marker.yamllibmodsecurity v3, CorazaskipAfter naming a marker that does not exist disables every later phaseADR-0016
tests/engine/processing/rule-exceptions-bad-range.yamlModSecurity v2200-100 accepted silently03-processing-model.md#rule-exceptions
tests/engine/processing/rule-exceptions-unknown-id.yamlCorazaSecRuleUpdateTargetById with an unknown id is an error03-processing-model.md#rule-exceptions
tests/engine/actions/setvar.yamlCorazaany setvar without =value (setvar:tx.x, setvar:!tx.x) dereferences a nil macro and panics (internal/actions/setvar.go Evaluate)08-actions.md#setvar
tests/engine/lexical/quoted-arguments.yamllibmodsecurity v3\" inside an operator argument keeps its backslash (seclang-scanner.ll)01-lexical.md#quoting-and-escapes
tests/engine/directives/secargumentseparator.yamlCorazadirective parsed and ignored04-directives.md#secargumentseparator, ADR-0005
tests/engine/directives/deprecated-directive-accepted.yamlnoneSecHashEngine Off is accepted everywhere; see ADR-0005 for the Deprecated names v3 and Coraza rejectADR-0005
tests/engine/processing/skipafter-rule-id.yamlModSecurity v2skipAfter:4091 resumes after rule 4091 through a RULE_PH_SKIPAFTER placeholder (apache2/apache2_config.c)ADR-0028
tests/engine/variables/count-scalar.yamlModSecurity v2& on a variable registered as VAR_SIMPLE is a configuration error (apache2/re.c, “The & modificator does not apply to non-collection variables.”), so the profile does not loadADR-0037
tests/engine/variables/count-request-body.yamlModSecurity v2&REQUEST_BODY counts 0 when the body did not reach the variable: var_request_body_generate (apache2/re_variables.c) yields no value when msc_reqbody_buffer is NULLADR-0037
tests/engine/variables/body-errors.yamlModSecurity v2a JSON body that fails to parse aborts the transaction with status 500 before phase 2, so no rule sees REQBODY_ERROR (apache2/msc_reqbody.c modsecurity_request_body_end returns -1 after json_complete fails; apache2/apache2_io.c read_request_body turns that into HTTP_INTERNAL_SERVER_ERROR)05-variables.md#reqbody_error
tests/engine/variables/request-uri-decoded.yamlModSecurity v2REQUEST_URI, REQUEST_FILENAME and REQUEST_BASENAME are not percent-decoded: var_request_uri_generate and var_request_filename_generate (apache2/re_variables.c) read Apache’s r->parsed_uri.path and .query as sentADR-0038
tests/unit/operators/containsWord.jsonModSecurity v2digits and _ are word bytes, so def preceded by the digit 0 (input abc, backslash, 0def ghi) is not a word (apache2/re_operators.c msre_op_containsWord_execute) (one case)06-operators.md#containsword
tests/unit/operators/ipMatch.jsonCoraza::ffff:ffff:ffff does not match 0:0::/80 (one case)06-operators.md#ipmatch
tests/unit/transformations/uppercase-extra.jsonModSecurity v2t:uppercase not implementedADR-0012
tests/unit/transformations/cssDecode.jsonCorazaescapes of three or more hex digits decode to the UTF-8 encoding of the code point instead of its low byte, and code points above U+FFFF become U+FFFD (two cases)07-transformations.md#cssdecode
tests/unit/transformations/urlDecodeUni.jsonCorazaone full-width %u case decodes differently07-transformations.md#urldecodeuni
tests/engine/actions/allow.yamlCorazaallow also skips the logging phase08-actions.md#allow
tests/unit/transformations/htmlEntityDecode.jsonCoraza  decodes to UTF-8 C2 A0 (two cases)07-transformations.md#htmlentitydecode
tests/unit/transformations/htmlEntityDecode-extra.jsonCoraza­ decodes to UTF-8 C2 AD (internal/transformations/html_entity_decode.go, html.UnescapeString) (one case)ADR-0031
tests/engine/variables/key-case-args-regex.yamlCorazaa regex selector on the ARGS family is compiled as written while argument names are stored lower-cased, so a pattern with upper-case letters never matches (internal/corazawaf/rule.go, caseSensitiveVariable is true for ARGS* in every build; other collections lower-case the pattern) (one case)ADR-0008
tests/engine/variables/multipart.yamlCorazaFILES members keyed by the empty string, so FILES:field selects nothing05-variables.md#files
tests/engine/variables/request-uri-decoded.yamlCorazaREQUEST_URI is not percent-decoded: Transaction.ProcessURI (internal/corazawaf/transaction.go) sets it from url.URL.String(), which re-encodes the path; REQUEST_FILENAME and REQUEST_BASENAME are decodedADR-0038
tests/unit/operators/beginsWith.json, tests/unit/operators/contains.json, tests/unit/operators/endsWith.json, tests/unit/operators/streq.json, tests/unit/operators/within.jsonlibmodsecurity v3, Corazaan empty operator parameter is a load error (Coraza: “empty data”; v3: a parser syntax error, the parameter cannot be written at all); the spec says an empty string matches every value (one case per file)06-operators.md#contains
tests/unit/transformations/hexDecode.jsonCorazaan input with an odd length is returned unchanged instead of decoding the complete pairs (one case)07-transformations.md#hexdecode
tests/unit/transformations/compressWhitespace-extra.jsonlibmodsecurity v3byte 0xA0 is not whitespace (isspace only, src/actions/transformations/compress_whitespace.cc); v2 and Coraza compress itADR-0026
tests/unit/transformations/normalisePathWin-extra.jsonlibmodsecurity v3, ModSecurity v2a backslash reached while skipping a run of slashes is kept instead of converted (v3 normalise_path.cc, only the current and next byte are converted; v2 apache2/msc_util.c normalize_path_inplace is the same)07-transformations.md#normalisepathwin
tests/unit/transformations/utf8toUnicode-extra.jsonlibmodsecurity v3, Corazaa malformed lead byte is not left unchanged: v3 drops it (utf8_to_unicode.cc), Coraza emits %ufffd (utf8_to_unicode.go, Go range decoding) (one case)07-transformations.md#utf8tounicode
tests/unit/transformations/removeComments.jsonCorazathe byte after a closing */ or --> is copied without being examined (internal/transformations/remove_comments.go): a value that is only a comment yields one NUL byte, and the opening / or < of an adjacent comment survives, so SELECT/**//**/UNION yields SELECT/**/UNION (ten cases)07-transformations.md#removecomments
tests/engine/grammar/chain-member-without-actions.yamllibmodsecurity v3a chain member without an action list is a parse error unless it is the last directive of the file (“Expecting an action”, seclang-scanner.ll); other profiles give their chain members "t:none" so their own subject stays testable02-grammar.md#secrule-structure
tests/engine/body/json-args.yamllibmodsecurity v3, ModSecurity v2JSON leaves are added to ARGS only, never to ARGS_POST (v3: request_body_processor/json.cc calls addArgument("JSON", …), which transaction.cc routes to ARGS_GET/ARGS_POST only for GET/POST; v2: apache2/msc_json.c gives them origin JSON and apache2/re_variables.c var_args_post_generate keeps origin BODY only)09-body-processors.md#json
tests/engine/directives/secresponsebodymimetype.yaml, tests/engine/directives/secresponsebodymimetypesclear.yamllibmodsecurity v3SecResponseBodyMimeTypesClear discards every SecResponseBodyMimeType of the same configuration, including those written after it (rules_set_properties.h clears the whole set at merge time when m_clear is set)04-directives.md#secresponsebodymimetypesclear
tests/engine/processing/default-action.yamllibmodsecurity v3the disruptive action of SecDefaultAction is applied only to rules carrying block; a matching rule with no disruptive action of its own passes (rule_with_actions.cc, “Ignoring action … (rule does not cotains block)”)04-directives.md#secdefaultaction
tests/engine/processing/default-action-later-rules.yamllibmodsecurity v3the default actions of a phase are looked up at run time (trans->m_rules->m_defaultActions[getPhase()] in rule_with_actions.cc and actions/block.cc), not fixed when the rule is defined, so they also apply to the rules of that phase defined before the SecDefaultAction: an earlier rule takes its setvar, and an earlier block rule its disruptive action and status03-processing-model.md#default-actions
tests/engine/variables/persistent-collections.yamllibmodsecurity v3setvar runs before initcol within one rule (rule_with_actions.cc executeActionsIndependentOfChainedRuleResult evaluates the setvars first), so a member written by the initialising rule is lost when the collection did not exist yet05-variables.md#persistent-collections
tests/unit/operators/rx.jsonlibmodsecurity v3an empty @rx parameter is a parser syntax error (one case)06-operators.md#rx
tests/unit/operators/containsWord.jsonlibmodsecurity v3an empty parameter is a parser syntax error (one case)06-operators.md#containsword
tests/engine/processing/ctl-ruleengine-off-final.yamllibmodsecurity v3, Corazaafter ctl:ruleEngine=Off the rest of the phase is still evaluated and a later ctl:ruleEngine overwrites Off; the mode is read only when a phase starts (v3 src/transaction.cc “Rule engine disabled, returning…”, Coraza internal/corazawaf/transaction.go IsRuleEngineOff at the start of each Process*)ADR-0034
tests/engine/logging/audit-noauditlog-listed.yamllibmodsecurity v3, Corazaa log,noauditlog rule is left out of part H (v3: noauditlog clears RuleMessage::m_saveMessage, src/actions/no_audit_log.cc; Coraza: part H lists only rules with the audit flag, internal/corazawaf/transaction.go AuditLog)ADR-0035
tests/engine/logging/logdata-every-match.yamllibmodsecurity v3a rule matching several targets is logged once, with the logdata of the last target only (src/rule_with_operator.cc, RuleWithOperator::evaluate overwrites the match for each target; src/rule_with_actions.cc, performLogging stores the message once)ADR-0041
tests/engine/operators/ipmatch-invalid-entry.yamlCorazaan unparsable @ipMatch entry is skipped instead of rejecting the configuration (internal/operators/ip_match.go)ADR-0024

Divergences no test can observe

Recorded here so they are not lost; they are not rows above because the adapters would otherwise report them as obsolete.

  • Coraza marks a transaction audit-relevant only when a rule carried auditlog explicitly, and when SecAuditLogRelevantStatus is set it also requires the status to match (10-logging.md#audit-log-relevance).
  • Coraza defaults SecAuditLogParts to BCFH instead of ABCFHZ, so without the directive its Native records lack parts A and Z (internal/corazawaf/waf.go NewWAF; 04-directives.md#secauditlogparts). The adapters force SecAuditLogParts ABCFHZ for every profile that asserts on the audit log.
  • Coraza built with coraza.rule.case_sensitive_args_keys compares ARGS keys exactly (ADR-0008); the default build conforms.
  • Coraza calls its error-log callback only for rules carrying log explicitly; ModSecurity logs by default (08-actions.md#log).
  • libmodsecurity v3 parses ctl:forceRequestBodyVariable without implementing it, but it fills REQUEST_BODY for every buffered body, so tests/engine/body/no-processor.yaml and tests/engine/actions/ctl-options.yaml pass anyway (ADR-0022).

Not listed: differences the specification leaves unspecified (defaults, status codes, empty Include globs), since no test asserts on them.