Archive of FreeBSD Security general posting, FreeBSD Security Advisory FreeBSD-SA-03:01.cvs

05/02/03, FreeBSD Security Advisory FreeBSD-SA-03:01.cvs
From: FreeBSD Security Advisories <security-advisories@FreeBSD.ORG>

Generated by MHonArc

CSIM Logo WelcomeCourses
Faculty, Student, Staff
Projects and reports
Conferences, workshop and seminars
Laboratories and reasearch facilities
Information related to CSIM
Information non-related to CSIM
Address, map, phone, etc.

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

To: FreeBSD Security Advisories <security-advisories@FreeBSD.ORG>
Subject: FreeBSD Security Advisory FreeBSD-SA-03:01.cvs
From: FreeBSD Security Advisories <security-advisories@FreeBSD.ORG>
Date: Tue, 4 Feb 2003 10:46:34 -0800 (PST)
List-archive: <> (Web Archive)
List-help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-id: <freebsd-security-notifications.FreeBSD.ORG>
List-subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-security-notifications>
List-unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-security-notifications>
Mail-from: From owner-freebsd-security-notifications@FreeBSD.ORG Wed Feb 5 01:47:31 2003
Reply-to: postmaster@FreeBSD.ORG
Sender: owner-freebsd-security-notifications@FreeBSD.ORG

Hash: SHA1

FreeBSD-SA-03:01.cvs                                        Security Advisory
                                                          The FreeBSD Project

Topic:          remotely exploitable vulnerability in cvs server

Category:       contrib
Module:         contrib_cvs
Announced:      2003-02-04
Credits:        Stefan Esser <>
Affects:        All FreeBSD versions prior to 4.6-RELEASE-p7, 4.7-RELEASE-p4,
Corrected:      2003-01-21 22:26:46 UTC (RELENG_4)
                2003-02-04 18:05:07 UTC (RELENG_5_0)
                2003-02-04 18:07:20 UTC (RELENG_4_7)
                2003-02-04 18:08:26 UTC (RELENG_4_6)
FreeBSD only:   NO

I.   Background

The Concurrent Versions System (CVS) is a version control system.  It
may be used to access a repository locally, or to access a `remote
repository' using several different methods, including `ext' (rsh),
and `pserver' (password-authenticated server).  When accessing a
remote repository, the target machine runs the CVS server to fulfill
client requests.

II.  Problem Description

The implementation of the CVS server contains a programming error which
can lead to a block of memory being freed more than once (i.e. a
double-free bug).

Separately, the CVS server allows clients with write access to specify
arbitrary commands to execute as part of an update (update-prog) or
commit (checkin-prog).  This is a dangerous feature that is generally
not needed: there are other, safer methods of triggering program

III. Impact

An attacker may exploit the double-free bug in order to bypass write
access checks.  Combined with the update-prog/checkin-prog feature,
the attacker may be able to execute arbitrary commands with the
privileges of the CVS server.  The impact is most severe when running
the CVS server in `pserver' mode to provide read-only access to the
world (anoncvs).

IV.  Workaround

Do not use `pserver' mode directly.  Instead, use one of the safer
methods described in the following online resources:


V.   Solution

1) Upgrade your vulnerable system to 4.7-STABLE; or to the RELENG_4_7
(4.7-RELEASE-p4), RELENG_4_6 (4.6-RELEASE-p7), or RELENG_5_0
(5.0-RELEASE-p1) security branch dated after the correction date.

2) To patch your present system:

The following patch has been verified to apply to FreeBSD 4.6, 4.7, and
5.0 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch
# fetch

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/gnu/usr.bin/cvs
# make obj && make depend && make && make install

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

Path                                                             Revision
- -------------------------------------------------------------------------
- -------------------------------------------------------------------------

VII. References

Version: GnuPG v1.2.1 (FreeBSD)


To Unsubscribe: send mail to
with "unsubscribe freebsd-security-notifications" in the body of the message

Next message sorted by date: FreeBSD Security Advisory FreeBSD-SA-03:02.openssl
Next message by thread: FreeBSD Security Advisory FreeBSD-SA-03:02.openssl
Main Index
Thread Index

CSIM home pageWMailAccount managementCSIM LibraryNetwork test toolsSearch CSIM directories
Contact us: Olivier Nicole CSIM    SET    AIT Last update: Jan 2004