Stunnel Leaked File Descriptor Vulnerability

BID:8537

Info

Stunnel Leaked File Descriptor Vulnerability

Bugtraq ID: 8537
Class: Failure to Handle Exceptional Conditions
CVE: CVE-2003-0740
Remote: No
Local: Yes
Published: Sep 03 2003 12:00AM
Updated: Jul 11 2009 11:56PM
Credit: Discovery of this issue has been credited to Steve Grubb <[email protected]>.
Vulnerable: Stunnel Stunnel 4.0 0
Stunnel Stunnel 3.24
Stunnel Stunnel 3.22
+ EnGarde Secure Community 2.0
+ EnGarde Secure Community 1.0.1
+ EnGarde Secure Professional 1.5
+ EnGarde Secure Professional 1.2
+ EnGarde Secure Professional 1.1
+ Sun Linux 5.0.7
Stunnel Stunnel 3.21 c
Stunnel Stunnel 3.21 b
Stunnel Stunnel 3.21 a
Stunnel Stunnel 3.21
Stunnel Stunnel 3.19
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 i386
Stunnel Stunnel 3.18
Stunnel Stunnel 3.17
Stunnel Stunnel 3.16
Stunnel Stunnel 3.15
Stunnel Stunnel 3.14
Stunnel Stunnel 3.13
Stunnel Stunnel 3.12
- Microsoft Windows 2000 Professional
- Microsoft Windows 98
- Sun Solaris 8_sparc
- Sun Solaris 7.0
Stunnel Stunnel 3.11
- Microsoft Windows 2000 Professional
- Microsoft Windows 98
- Sun Solaris 8_sparc
- Sun Solaris 7.0
Stunnel Stunnel 3.9
- Debian Linux 2.3
- Debian Linux 2.2
- Debian Linux 2.1
- Debian Linux 2.0
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.2
- FreeBSD FreeBSD 4.1
- FreeBSD FreeBSD 4.0
- OpenBSD OpenBSD 2.8
- OpenBSD OpenBSD 2.7
- OpenBSD OpenBSD 2.6
- OpenBSD OpenBSD 2.5
- OpenBSD OpenBSD 2.4
- OpenBSD OpenBSD 2.3
- OpenBSD OpenBSD 2.1
- OpenBSD OpenBSD 2.0
- Redhat Linux 7.0
- Redhat Linux 6.0 x
- Redhat Linux 5.0
Stunnel Stunnel 3.8
- Debian Linux 2.3
- Debian Linux 2.2
- Debian Linux 2.1
- Debian Linux 2.0
+ EnGarde Secure Linux 1.0.1
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.2
- FreeBSD FreeBSD 4.1
- FreeBSD FreeBSD 4.0
- OpenBSD OpenBSD 2.8
- OpenBSD OpenBSD 2.7
- OpenBSD OpenBSD 2.6
- OpenBSD OpenBSD 2.5
- OpenBSD OpenBSD 2.4
- OpenBSD OpenBSD 2.3
- OpenBSD OpenBSD 2.1
- OpenBSD OpenBSD 2.0
- Redhat Linux 7.0
- Redhat Linux 6.0 x
- Redhat Linux 5.0
Stunnel Stunnel 3.7
- Debian Linux 2.3
- Debian Linux 2.2
- Debian Linux 2.1
- Debian Linux 2.0
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.2
- FreeBSD FreeBSD 4.1
- FreeBSD FreeBSD 4.0
- OpenBSD OpenBSD 2.8
- OpenBSD OpenBSD 2.7
- OpenBSD OpenBSD 2.6
- OpenBSD OpenBSD 2.5
- OpenBSD OpenBSD 2.4
- OpenBSD OpenBSD 2.3
- OpenBSD OpenBSD 2.1
- OpenBSD OpenBSD 2.0
- Redhat Linux 7.0
- Redhat Linux 6.0 x
- Redhat Linux 5.0
Stunnel Stunnel 3.4 a
- Debian Linux 2.3
- Debian Linux 2.2
- Debian Linux 2.1
- Debian Linux 2.0
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.2
- FreeBSD FreeBSD 4.1
- FreeBSD FreeBSD 4.0
- OpenBSD OpenBSD 2.8
- OpenBSD OpenBSD 2.7
- OpenBSD OpenBSD 2.6
- OpenBSD OpenBSD 2.5
- OpenBSD OpenBSD 2.4
- OpenBSD OpenBSD 2.3
- OpenBSD OpenBSD 2.1
- OpenBSD OpenBSD 2.0
- Redhat Linux 7.0
- Redhat Linux 6.0 x
- Redhat Linux 5.0
Stunnel Stunnel 3.3
- Debian Linux 2.3
- Debian Linux 2.2
- Debian Linux 2.1
- Debian Linux 2.0
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.2
- FreeBSD FreeBSD 4.1
- FreeBSD FreeBSD 4.0
- OpenBSD OpenBSD 2.8
- OpenBSD OpenBSD 2.7
- OpenBSD OpenBSD 2.6
- OpenBSD OpenBSD 2.5
- OpenBSD OpenBSD 2.4
- OpenBSD OpenBSD 2.3
- OpenBSD OpenBSD 2.1
- OpenBSD OpenBSD 2.0
- Redhat Linux 7.0
- Redhat Linux 6.0 x
- Redhat Linux 5.0
- Trustix Secure Linux 1.2
- Trustix Trustix Secure Linux 1.1
- Trustix Trustix Secure Linux 1.0
Stunnel Stunnel 3.20
+ Mandriva Linux Mandrake 8.1 ia64
+ Mandriva Linux Mandrake 8.1
Stunnel Stunnel 3.10
- Microsoft Windows 2000 Professional
- Microsoft Windows 98
- Sun Solaris 8_sparc
- Sun Solaris 7.0
SGI ProPack 2.3
Redhat Enterprise Linux WS 2.1
Redhat Enterprise Linux ES 2.1
Redhat Enterprise Linux AS 2.1 IA64
Redhat Enterprise Linux AS 2.1
Redhat Advanced Workstation for the Itanium Processor 2.1 IA64
Redhat Advanced Workstation for the Itanium Processor 2.1
Mandriva Linux Mandrake 9.0
MandrakeSoft Corporate Server 2.1 x86_64
MandrakeSoft Corporate Server 2.1
Not Vulnerable: Stunnel Stunnel 4.0 4
Stunnel Stunnel 4.0 3
Stunnel Stunnel 4.0 2
Stunnel Stunnel 4.0 1
Stunnel Stunnel 3.26

Exploit / POC

Stunnel Leaked File Descriptor Vulnerability

The following proof of code has been supplied:

To compile:
$(CC) $(CFLAGS) -o $@ leak-sploit.c -lssl

To run the POC code, you can execute it directly as the
local program (-l argument) for Stunnel :

/usr/sbin/stunnel -s nobody -g nobody -D 7 -p
/etc/ssl/certs/stunnel.pem -o /tmp/stunnel.log -P
/tmp/stunnel.pid -d 2222 -l
/opt/stunnel-sploit/leak-sploit -- leak-sploit

Then connect to stunnel like: lynx https://localhost:2222

Solution / Fix

Stunnel Leaked File Descriptor Vulnerability

Solution:
Conectiva has released an advisory (CLA-2003:736) to address this issue. Please see the attached advisory for details on obtaining and applying fixes.

Red Hat has released advisories RHSA-2003:297-07 and RHSA-2003:296-01 to address this issue. See the referenced advisories for additional details.

Mandrake has released a security advisory (MDKSA-2003:108) to address this issue in 9.0 and Corporate Server 2.1. Users are advised to upgrade as soon as possible.

SGI has released an advisory (20031103-01-U) pertaining to their ProPack Linux distribution. The advisory has been released in response to a number of RHSA advisories, and includes a patch (Patch 10033) containing updated RPM packages relating to a number of different BIDS.

Patch 10033 can be obtained via the following link:
http://support.sgi.com/

For information regarding how to obtain individual RPM packages included in Patch 10033, please see the attached advisory.

The vendor has released upgrades to address this issue:


Stunnel Stunnel 3.20

Stunnel Stunnel 3.10

MandrakeSoft Corporate Server 2.1

MandrakeSoft Corporate Server 2.1 x86_64

Stunnel Stunnel 3.11

Stunnel Stunnel 3.12

Stunnel Stunnel 3.13

Stunnel Stunnel 3.14

Stunnel Stunnel 3.15

Stunnel Stunnel 3.16

Stunnel Stunnel 3.17

Stunnel Stunnel 3.18

Stunnel Stunnel 3.19

Stunnel Stunnel 3.21

Stunnel Stunnel 3.21 c

Stunnel Stunnel 3.21 b

Stunnel Stunnel 3.21 a

Stunnel Stunnel 3.22

Stunnel Stunnel 3.24

Stunnel Stunnel 3.3

Stunnel Stunnel 3.4 a

Stunnel Stunnel 3.7

Stunnel Stunnel 3.8

Stunnel Stunnel 3.9

Stunnel Stunnel 4.0 0

Mandriva Linux Mandrake 9.0

References

Stunnel Leaked File Descriptor Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report