man-cgi Local File Inclusion

man-cgi versions prior to 1.16 suffer from a local file inclusion vulnerability.

MD5 | bca0e6274252ccbf0017f77e91d0f04e

man-cgi before 1.16 allows Local File Inclusion via absolute path traversal. If an Attacker provides a Filename as a Parameter (e.g. the Script will read  and return the local file. This is happening because of the way the Script calls the "man" command. Tests have shown that "man /some/random/file" (depending on it's  configuration) will first try to locate a manual page for the given  Parameter and will fallback to reading the file provided by the Parameter if it wasn't able to find the requested manual page.

The Author of the Script was contacted and was kind enough to provide a bugfix Version. You can find the bugfix Version here:

[Vendor of Product]
Panagiotis Christias (

[Affected Product Code Base]
man-cgi < 1.16

[Attack Type]

[Impact Information Disclosure]

[Attack Vectors]
HTTP(s) Request

[Has vendor confirmed or acknowledged the vulnerability?]

Related Posts