← Vulnerability feed

Vulnerability record · CVE-2004-0396 · published 14 June 2004

CVE-2004-0396: CVS pserver heap buffer overflow allows remote code execution

CCvs · Cvs

CVS versions 1.11.x through 1.11.15 and 1.12.x through 1.12.7 contain a heap-based buffer overflow that is triggered when the pserver mechanism processes crafted Entry lines. Because pserver is a network-facing service, a remote attacker can corrupt heap memory and potentially execute arbitrary code on the CVS server.

7.5 CVSS 2.0 High EPSS 68% · top 0.7%
7.5CVSS 2.0 base score
68%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
56References
16 Jun 2026Last modified by NVD

Description

Heap-based buffer overflow in CVS 1.11.x up to 1.11.15, and 1.12.x up to 1.12.7, when using the pserver mechanism allows remote attackers to execute arbitrary code via Entry lines.

AV:N/AC:L/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityThe vulnerability is remotely reachable without authentication, can lead to code execution, and has a very high EPSS score, though it is not in CISA KEV and affects legacy software.

What it is

CVS versions 1.11.x through 1.11.15 and 1.12.x through 1.12.7 contain a heap-based buffer overflow that is triggered when the pserver mechanism processes crafted Entry lines. Because pserver is a network-facing service, a remote attacker can corrupt heap memory and potentially execute arbitrary code on the CVS server.

Impact

A remote attacker can execute arbitrary code with the privileges of the CVS server process, leading to full compromise of the repository host. Even without reliable code execution, the overflow can crash the service and disrupt version control operations.

Attack surface

The flaw is reached over the network through the CVS pserver protocol, as indicated by the AV:N vector and the description's reference to the pserver mechanism. No authentication or user interaction is required per the CVSS vector (Au:N), meaning an unauthenticated remote client can trigger the vulnerable parsing path.

Exploitation

CVE-2004-0396 is not listed in CISA KEV, but EPSS shows a 30-day exploitation probability of 0.67525 (99.275th percentile), indicating a high likelihood of attempted exploitation. Reference tags include Patch and Vendor Advisory, but no public exploit tag is present in the supplied data.

What to do

  • Upgrade CVS to a version later than 1.11.15 or 1.12.7 as directed by the vendor advisories.
  • If pserver is not required, disable or block the pserver service and restrict network access to the CVS port.
  • Apply the patches referenced by the Debian, Red Hat, and CERT/CC advisories for affected distributions.
  • Run the CVS service with least privilege and isolate it from sensitive data where possible.
  • Monitor vendor advisories for updated fixed versions if the installed CVS release is older than the listed ranges.

Detection

  • Inspect CVS server logs for malformed or unusually long Entry lines in pserver sessions.
  • Monitor for crashes or abnormal termination of the CVS daemon that could indicate heap corruption attempts.
  • Use network detection to flag pserver traffic containing oversized or non-standard Entry records.
  • Correlate CVS process crashes with inbound connections from untrusted sources.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
ftp://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2004-008.txt.asc
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-04:10.cvs.asc
http://archives.neohapsis.com/archives/fulldisclosure/2004-05/0980.html
http://cert.uni-stuttgart.de/archive/bugtraq/2004/05/msg00219.html
http://lists.grok.org.uk/pipermail/full-disclosure/2004-May/021742.html
http://marc.info/?l=bugtraq&m=108498454829020&w=2
http://marc.info/?l=bugtraq&m=108500040719512&w=2
http://marc.info/?l=bugtraq&m=108636445031613&w=2
http://marc.info/?l=openbsd-security-announce&m=108508894405639&w=2
http://secunia.com/advisories/11641
http://secunia.com/advisories/11647
http://secunia.com/advisories/11651
http://secunia.com/advisories/11652
http://secunia.com/advisories/11674
http://security.e-matters.de/advisories/072004.html
http://security.gentoo.org/glsa/glsa-200405-12.xml
http://www.ciac.org/ciac/bulletins/o-147.shtml
http://www.debian.org/security/2004/dsa-505 PatchVendor Advisory
http://www.kb.cert.org/vuls/id/192038 PatchThird Party AdvisoryUS Government Resource
http://www.mandriva.com/security/advisories?name=MDKSA-2004:048
http://www.osvdb.org/6305
http://www.redhat.com/support/errata/RHSA-2004-190.html PatchVendor Advisory
http://www.securityfocus.com/bid/10384
http://www.slackware.com/security/viewer.php?l=slackware-security&y=2004&m=slackware-security.395865
http://www.us-cert.gov/cas/techalerts/TA04-147A.html US Government Resource
https://exchange.xforce.ibmcloud.com/vulnerabilities/16193
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9058
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A970
ftp://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2004-008.txt.asc
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-04:10.cvs.asc
http://archives.neohapsis.com/archives/fulldisclosure/2004-05/0980.html
http://cert.uni-stuttgart.de/archive/bugtraq/2004/05/msg00219.html
http://lists.grok.org.uk/pipermail/full-disclosure/2004-May/021742.html
http://marc.info/?l=bugtraq&m=108498454829020&w=2
http://marc.info/?l=bugtraq&m=108500040719512&w=2
http://marc.info/?l=bugtraq&m=108636445031613&w=2
http://marc.info/?l=openbsd-security-announce&m=108508894405639&w=2
http://secunia.com/advisories/11641
http://secunia.com/advisories/11647
http://secunia.com/advisories/11651

Track CVE-2004-0396 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2012-0804Cvs memory buffer overflow vulnerabilityHeap-based buffer overflow in the proxy_connect function in src/client.c in CVS 1.11 and 1.12 allows remote HTTP proxy servers to cause a denial of s…EPSS 8.5%10.0CVE-2004-0414Cvs vulnerabilityCVS 1.12.x through 1.12.8, and 1.11.x through 1.11.16, does not properly handle malformed "Entry" lines, which prevents a NULL terminator from being …EPSS 4.0%10.0CVE-2004-0416Cvs memory buffer overflow vulnerabilityDouble free vulnerability for the error_prog_name string in CVS 1.12.x through 1.12.8, and 1.11.x through 1.11.16, may allow remote attackers to exec…EPSS 13%10.0CVE-2004-0418Cvs vulnerabilityserve_notify in CVS 1.12.x through 1.12.8, and 1.11.x through 1.11.16, does not properly handle empty data lines, which may allow remote attackers to…EPSS 5.7%7.5CVE-2004-1342Cvs vulnerabilityCVS 1.12 and earlier on Debian GNU/Linux, when using the repouid patch, allows remote attackers to bypass authentication via the pserver access metho…EPSS 2.3%7.5CVE-2005-0753Cvs vulnerabilityBuffer overflow in CVS before 1.11.20 allows remote attackers to execute arbitrary code.EPSS 4.7%7.5CVE-2003-0977Cvs vulnerabilityCVS server before 1.11.10 may allow attackers to cause the CVS server to create directories and files in the file system root directory via malformed…EPSS 2.3%7.5CVE-2003-0015Freebsd double free vulnerabilityDouble-free vulnerability in CVS 1.11.4 and earlier allows remote attackers to cause a denial of service and possibly execute arbitrary code via a ma…EPSS 24%

Source: NIST National Vulnerability Database (record CVE-2004-0396), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.