CVE-2008-3863: Buffer Overflow

Published Oct 13, 2008
·
Updated

Stack-based buffer overflow in the readspecialescape function in src/psgen.c in GNU Enscript 1.6.1 and 1.6.4 beta, when the -e (aka special escapes processing) option is enabled, allows user-assisted remote attackers to execute arbitrary code via a crafted ASCII file, related to the setfilename command.

Other sources

Ulf Harnhammar of the Secunia Research discovered a buffer overflow in enscript:

The vulnerability is caused due to a boundary error within the "readspecialescape()" function in src/psgen.c. This can be exploited to cause a stack-based buffer overflow by tricking the user into converting a malicious file.

Successful exploitation allows execution of arbitrary code, but requires that special escapes processing is enabled with the "-e" option.

The vulnerability is confirmed in versions 1.6.1 and 1.6.4 (beta). Other versions may also be affected.

Red Hat

Affected Software

4 affected componentsFixes available
GNU Enscript=1.6.1
GNU Enscript=1.6.4-beta
redhat/enscript<0:1.6.1-33.el4_7.1
0:1.6.1-33.el4_7.1
redhat/enscript<0:1.6.4-4.1.1.el5_2
0:1.6.4-4.1.1.el5_2

Event History

Oct 13, 2008
Data Sourced
via Red Hat·03:09 PM
DescriptionSeverityAffected Software
Oct 22, 2008
CVE Published
via Red Hat·12:00 AM
Oct 23, 2008
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2008-3863?

CVE-2008-3863 is a critical vulnerability due to its potential for remote code execution through a buffer overflow.

2

How do I fix CVE-2008-3863?

To fix CVE-2008-3863, upgrade to the patched versions of GNU Enscript: 1.6.1-33.el4_7.1 or 1.6.4-4.1.1.el5_2.

3

Who is affected by CVE-2008-3863?

CVE-2008-3863 affects users running GNU Enscript versions 1.6.1 and 1.6.4 beta with special escape processing enabled.

4

What causes the CVE-2008-3863 vulnerability?

The CVE-2008-3863 vulnerability is caused by a stack-based buffer overflow in the read_special_escape function.

5

Can CVE-2008-3863 be exploited remotely?

Yes, CVE-2008-3863 can be exploited remotely if a user processes a crafted ASCII file while using the vulnerable versions of Enscript.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203