CVE-2004-0397: Stack-based buffer overflow during the apr_time_t data conversion in Subversion 1.0.2 and earlier allows remot
CVE-2004-0397 is a high-severity flaw (CVSS 7.5) affecting subversion. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Stack-based buffer overflow during the apr_time_t data conversion in Subversion 1.0.2 and earlier allows remote attackers to execute arbitrary code via a (1) DAV2 REPORT query or (2) get-dated-rev svn-protocol command.
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 7.5 (High) |
| EPSS exploit chance | 75.2% (top 1%) |
| CISA exploited list | No |
| Published | 2004-07-07 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: Subversion 1.0.2 - 'svn_time_from_cstring()' Remote Overflow
- Exploit-DB: Subversion 1.0.2 - Date Overflow (Metasploit)
- Exploit-DB: Subversion - Date Svnserve (Metasploit)
- Metasploit: Subversion Date Svnserve
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2004-0397?
subversion: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2004-0397 being exploited?
CVE-2004-0397 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2004-0397 affect?
CVE-2004-0397 affects subversion. Severity is high (CVSS 7.5). Stack-based buffer overflow during the apr_time_t data conversion in Subversion 1.0.2 and earlier allows remote attackers to execute arbitrary code via a (1) DAV2 REPORT query or (2) get-dated-rev svn-protocol command.
How urgent is CVE-2004-0397?
Priority 56/100. High severity; EPSS top 1%: very likely to be exploited; Public exploit reference
Related CVEs
- CVE-2024-46901 LOW 3.1 UPGRADE MITIGATE Insufficient validation of filenames against control characters in Apache Subversion repositories served via m
- CVE-2024-45720 HIGH 8.2 UPGRADE On Windows platforms, a "best fit" character encoding conversion of command line arguments to Subversion's exe
- CVE-2022-29048 MEDIUM 4.3 UPGRADE UPGRADE A cross-site request forgery (CSRF) vulnerability in Jenkins Subversion Plugin 2.15.3 and earlier allows attac
- CVE-2022-29046 MEDIUM 5.4 UPGRADE UPGRADE Jenkins Subversion Plugin 2.15.3 and earlier does not escape the name and description of List Subversion tags
- CVE-2022-24070 HIGH 7.5 UPGRADE MITIGATE Subversion's mod_dav_svn is vulnerable to memory corruption