Add virtual patches for Java4Shell (CVE-2026-114938) and OwnTracks Recorder (CVE-2026-131852) #26
Loading…
Reference in a new issue
No description provided.
Delete branch "java4shell-virtual-patch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds two virtual patches to the embedded WAF.
1014938 Java4Shell (CVE-2026-114938). Out-of-bounds write in HotSpot's AVX-512 Base64 decode intrinsic (OpenJDK 17.0.6+, x86-64 with AVX-512 VBMI), reachable pre-auth anywhere an app decodes Base64: Basic credentials, SAML, tokens, cookies, MIME encoded words. Matches 64+ contiguous Base64 characters followed by padding the intrinsic miscounts (
=,==,X=,X==,XY=,===after whole groups). Correct Base64 never has this shape. Inspects headers, cookies, args, JSON, XML, multipart part headers and raw bodies.1031852 OwnTracks Recorder (CVE-2026-131852). Stored location fields reach printf as the format string. Matches a printf conversion (positional,
*width/precision,%%skipped) in the JSON fields or raw body of a request to/pubor/pub/, after decoding\uescapes.README and DEPLOY.md document both, their limits, and the real fixes (
-XX:-UseBASE64Intrinsics/ patched JDKs; Recorder 1.0.5). README also notes that Apache httpd mod_http2 CVE-2026-119618 is HTTP/2 framing and out of WAF reach.Known limits (deliberate)
REQUEST_BODY). Values split by whitespace for the MIME decoder are not matched: the AVX-512 path appears to skip MIME input (not confirmed by the advisories), and counting whitespace would break the mod-4 count and cause false positives./pubfield is checked, not justtid/addr/ssid, because Recorder stores the whole payload and upstream PR #589 fixed every output path. MQTT never reaches the WAF.Review
Four rounds of adversarial review (Crush/GPT) plus a test-coverage review; final verdict approve. Fixed along the way: non-JSON Content-Type bypass,
%escapes, missing conversions (%m,%a,%e, ...),%%false positive, positional*width, raw-body coverage for Java4Shell.Testing
make testandmake vetpass.TestVirtualPatchesMatchExploits/TestVirtualPatchesIgnoreBenign.centinela-evaloneval/dataset.jsonl: neither rule fires.🔎 ojo scan results
No findings.