From 967ec7371b7638ebbb9561b930d252861877bae9 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Fri, 25 Sep 2026 16:36:42 +0200 Subject: [PATCH 1/5] Add vpatch-CVE-2026-42596 rule --- .../crowdsecurity/vpatch-CVE-2026-42596.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.yaml new file mode 100644 index 00000000000..84f32a552cb --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.yaml @@ -0,0 +1,35 @@ +## autogenerated on 2026-09-25 14:36:39 +name: crowdsecurity/vpatch-CVE-2026-42596 +description: 'Detects IPv4-mapped IPv6 address SSRF attempts in Gotenberg downloadFrom requests.' +rules: + - and: + - zones: + - URI + transform: + - urldecode + - lowercase + match: + type: contains + value: '/forms/libreoffice/convert' + - zones: + - BODY_ARGS + variables: + - downloadFrom + transform: + - urldecode + - lowercase + match: + type: contains + value: '::ffff:' + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'Gotenberg - SSRF' + classification: + - cve.CVE-2026-42596 + - attack.T1190 + - cwe.CWE-918 From c36176217082f75597a7c859a700f84b5a835a65 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Fri, 25 Sep 2026 16:36:44 +0200 Subject: [PATCH 2/5] Add vpatch-CVE-2026-42596 documentation --- appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.md diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.md b/appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.md new file mode 100644 index 00000000000..ced58fcdbe6 --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.md @@ -0,0 +1,9 @@ +This rule provides virtual patching for **CVE-2026-42596**, an SSRF vulnerability in **Gotenberg**, published on 2026-05-14, with a CVSS 3.1 score of **9.4 (Critical)**. + +**Detection:** Detects IPv4-mapped IPv6 address SSRF attempts in Gotenberg downloadFrom requests. + +Virtual patching mitigates exploitation attempts, but it does not fix the underlying vulnerability: upgrading Gotenberg to a patched version is always recommended. + +### References +- [CVE-2026-42596 on NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-42596) +- [Exploit reference](https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42596.yaml) From 491de209d7e64b92804f92a875f78415eff374ad Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Fri, 25 Sep 2026 16:36:46 +0200 Subject: [PATCH 3/5] Add vpatch-CVE-2026-42596 test config --- .appsec-tests/vpatch-CVE-2026-42596/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .appsec-tests/vpatch-CVE-2026-42596/config.yaml diff --git a/.appsec-tests/vpatch-CVE-2026-42596/config.yaml b/.appsec-tests/vpatch-CVE-2026-42596/config.yaml new file mode 100644 index 00000000000..88f5e3f7943 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2026-42596/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2026-09-25 14:36:39 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2026-42596.yaml +nuclei_template: CVE-2026-42596.yaml From 26ff6b57b9c1904326da08093d1b19eb7b0e4c10 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Fri, 25 Sep 2026 16:36:49 +0200 Subject: [PATCH 4/5] Add CVE-2026-42596.yaml test --- .../vpatch-CVE-2026-42596/CVE-2026-42596.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .appsec-tests/vpatch-CVE-2026-42596/CVE-2026-42596.yaml diff --git a/.appsec-tests/vpatch-CVE-2026-42596/CVE-2026-42596.yaml b/.appsec-tests/vpatch-CVE-2026-42596/CVE-2026-42596.yaml new file mode 100644 index 00000000000..811dc9951fc --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2026-42596/CVE-2026-42596.yaml @@ -0,0 +1,25 @@ +## autogenerated on 2026-09-25 14:36:39 +id: CVE-2026-42596 +info: + name: CVE-2026-42596 + author: crowdsec + severity: info + description: CVE-2026-42596 testing + tags: appsec-testing +http: + - raw: + - | + POST /forms/libreoffice/convert HTTP/1.1 + Host: {{Hostname}} + Content-Type: multipart/form-data; boundary=----testBoundary + + ------testBoundary + Content-Disposition: form-data; name="downloadFrom" + + [{"url":"http://[::ffff:127.0.0.1]:3000/health"}] + ------testBoundary-- + cookie-reuse: true + matchers: + - type: status + status: + - 403 From 6169b14010bac942b40158c228fd7d14f9976359 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Fri, 25 Sep 2026 16:36:51 +0200 Subject: [PATCH 5/5] Add vpatch-CVE-2026-42596 rule to vpatch collection --- collections/crowdsecurity/appsec-virtual-patching.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index f9f427c4f10..3d9d472f8a5 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -19,6 +19,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2023-3519 - crowdsecurity/vpatch-CVE-2023-42793 - crowdsecurity/vpatch-CVE-2025-53693 +- crowdsecurity/vpatch-CVE-2026-42596 - crowdsecurity/vpatch-CVE-2023-50164 - crowdsecurity/vpatch-CVE-2023-38205 - crowdsecurity/vpatch-CVE-2023-24489