]> git.kaiwu.me - haproxy.git/commit
BUG/MAJOR: fcgi: Fix param decoding by properly checking its size
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Mar 2026 13:53:04 +0000 (14:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:35:21 +0000 (15:35 +0100)
commit96286b2a8440e98c43c5a027a3f820ca327cb1e5
tree6a397761000b1a96d3f8b4e5a5cedb243ab2164d
parent306931dfb1d3b40cf0e2364be0fe719389905feb
BUG/MAJOR: fcgi: Fix param decoding by properly checking its size

In functions used to decode a FCGI parameter, the test on the data length
before reading the parameter's name and value did not consider the offset
value used to skip already parsed data. So it was possible to read more data
than available (OOB read). To do so, a malicious FCGI server must send a
forged GET_VALUES_RESULT record containing a parameter with wrong name/value
length.

Thank you to Kamil Frankowicz for having reported this.

This patch must be backported to all stable versions.
src/fcgi.c