Since version 1.7.0, Hitch can forward the client certificate to the
backend in the PROXY protocol version 2 header. This is enabled with the
proxy-client-cert setting, and requires write-proxy-v2 (or
write-proxy) and client certificate verification
(client-verify = optional or client-verify = required).
The PROXY header is built in a fixed-size buffer. A client certificate whose PEM encoding did not fit in the remaining space of the buffer caused OpenSSL to free memory it did not own, and the worker process crashed.
An attacker needs a client certificate signed by a CA that Hitch is
configured to trust with client-verify-ca, and the certificate must be
larger than about 32 KiB when PEM encoded. Certificates that fail
verification are rejected during the TLS handshake and cannot trigger the
issue.
The attack vector only exists if proxy-client-cert is enabled. It is
disabled by default.
This affects Hitch and the Varnish Enterprise SSL/TLS add-on
(varnish-plus-addon-ssl), which ships Hitch.
This can be used as a Denial of Service attack vector by malicious clients. Each crash takes down a Hitch worker process and all the connections it is handling. The worker is restarted, and the attack can be repeated.
The vulnerability has been given a severity rating of medium.
Hitch from version 1.7.0 up to and including 1.8.0.
Varnish Enterprise SSL/TLS add-on (varnish-plus-addon-ssl) from
version 1.7.0 up to and including 1.8.0.
Varnish Enterprise SSL/TLS add-on (varnish-plus-addon-ssl) 1.8.1
(released 2026-10-27)
Hitch 1.8.1 (released 2026-12-01)
Hitch master branch at commit 85eb043b8ccca1173eea8c30ba5c4d72df796026 or later
Varnish Enterprise customers have had the fix since 2026-10-27, when
Hitch 1.8.1 was released to them as varnish-plus-addon-ssl 1.8.1. The
open source Hitch 1.8.1 release contains the same fix.
Client certificates too large to fit in the PROXY header are now omitted from it, and an error is logged.
The recommended solution is to upgrade Hitch to one of the versions where this issue has been resolved, and then ensure that Hitch is restarted.
If upgrading is not possible, the vulnerability can be avoided by disabling client certificate forwarding in the Hitch configuration file:
proxy-client-cert = off
and then restarting Hitch. The backend will no longer receive the client certificate in the PROXY header.
2026-10-09
2026-10-13
2026-10-27
varnish-plus-addon-ssl) 1.8.1
is released, fixing the vulnerability.2026-10-30
2026-12-01
We thank John JEAN for responsibly reporting this issue.