Lib CGI Include Buffer Overflow Vulnerability



Date Discovered

November 27, 2002


Lib CGI is a freely available, open source CGI library for C programmers. It is available for Unix and Linux operating systems. It has been reported that a buffer overflow exists in the Lib CGI development library. Due to improper bounds checking in an include file, programs making use of this include, or programs linked against libraries using this include could be vulnerable to a remote buffer overflow attack. This could result in an attacker gaining remote access with the privileges of the web server process.

Technologies Affected

  • Lib CGI Lib CGI 0.1.0


Block external access at the network boundary, unless external parties require service.
The filtering of untrusted network traffic may limit unauthorized access to resources, as well as prevent connectivity on arbitrary ports.

Deploy network intrusion detection systems to monitor network traffic for malicious activity.
Use network intrusion detection systems to identify attacks.

Run all software as a nonprivileged user with minimal access rights.
Do not execute server processes with elevated privileges.

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: <>.


Vulnerability discovery credited to "dong-h0un U" <>.

© 1995- Symantec Corporation

Permission to redistribute this alert electronically is granted as long as it is not edited in any way unless authorized by Symantec Security Response. Reprinting the whole or part of this alert in any medium other than electronically requires permission from


The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.

Symantec, Symantec products, Symantec Security Response, and are registered trademarks of Symantec Corp. and/or affiliated companies in the United States and other countries. All other registered and unregistered trademarks represented in this document are the sole property of their respective companies/owners.