CFEngine CFServD Transaction Packet Buffer Overrun Vulnerability

BID:8699

Info

CFEngine CFServD Transaction Packet Buffer Overrun Vulnerability

Bugtraq ID: 8699
Class: Boundary Condition Error
CVE:
Remote: Yes
Local: No
Published: Sep 25 2003 12:00AM
Updated: Sep 25 2003 12:00AM
Credit: Discovery of this issue is credited to Nick Cleaton <[email protected]>.
Vulnerable: GNU Cfengine 2.1 .0a9
GNU Cfengine 2.1 .0a8
GNU Cfengine 2.1 .0a6
GNU Cfengine 2.0.7 p3
GNU Cfengine 2.0.7 p2
GNU Cfengine 2.0.7 p1
GNU Cfengine 2.0.7
GNU Cfengine 2.0.6
GNU Cfengine 2.0.5 pre2
GNU Cfengine 2.0.5 pre
GNU Cfengine 2.0.5 b1
GNU Cfengine 2.0.5
GNU Cfengine 2.0.4
GNU Cfengine 2.0.3
GNU Cfengine 2.0.2
GNU Cfengine 2.0.1
GNU Cfengine 2.0 .0
Not Vulnerable: GNU Cfengine 2.0 .8p1
GNU Cfengine 2.0 .8
GNU Cfengine 1.6 a11
GNU Cfengine 1.6 a10
GNU Cfengine 1.5.3 -4
+ Debian Linux 2.2
- Redhat Linux 6.0 x

Discussion

CFEngine CFServD Transaction Packet Buffer Overrun Vulnerability

cfengine is prone to a stack-based buffer overrun vulnerability. This issue may be exploited by remote attackers who can send malicious transaction packets to cfservd. This issue is due to insufficient bounds checking of data that is read in during a transaction with a remote user.

The vulnerability may be exploited to execute arbitrary code with the privileges of cfservd. A denial of service may also be the result of exploitation attempts as cfservd is multi-threaded and may not be configured to restart itself via a super-server such as inetd.

Exploit / POC

CFEngine CFServD Transaction Packet Buffer Overrun Vulnerability

An exploit has been made available by kokanin.
A second exploit has been released by jsk.
A third exploit has been made available by snooq.

Solution / Fix

CFEngine CFServD Transaction Packet Buffer Overrun Vulnerability

Solution:
This issue has been addressed in cfengine versions 2.0.8/2.0.8p1. A patch has also been made available for version 2.0.7p3. Versions prior to 2.0.0 do not include the vulnerable code, but users are advised against downgrading to cfengine 1.x since these versions are no longer maintained.

Fixed versions will report exploitation attempts with the following log message:
"Bad transaction packet -- too long"

Gentoo has released an advisory (200310-02) and fixes for this issue. To obtain fixes, execute the folloiwng commands:

emerge sync
emerge -p cfengine
emerge cfengine
emerge clean


GNU Cfengine 2.0 .0

GNU Cfengine 2.0.1

GNU Cfengine 2.0.2

GNU Cfengine 2.0.3

GNU Cfengine 2.0.4

GNU Cfengine 2.0.5

GNU Cfengine 2.0.5 b1

GNU Cfengine 2.0.5 pre2

GNU Cfengine 2.0.5 pre

GNU Cfengine 2.0.6

GNU Cfengine 2.0.7

GNU Cfengine 2.0.7 p1

GNU Cfengine 2.0.7 p3

GNU Cfengine 2.0.7 p2

GNU Cfengine 2.1 .0a8

GNU Cfengine 2.1 .0a9

GNU Cfengine 2.1 .0a6

References

CFEngine CFServD Transaction Packet Buffer Overrun 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