In Apache Subversion versions up to and including 1.9.10, 1.10.4, 1.12.0, Subversion's svnserve server process may exit when a well-formed read-only request produces a particular answer. This can lead to disruption for users of the server.
Insufficient validation of filenames against control characters in Apache Subversion repositories served via moddavsvn allows authenticated users with commit access to commit a corrupted revision, leading to disruption for users of the repository.
All versions of Subversion up to and including Subversion 1.14.4 are affected if serving repositories via moddavsvn. Users are recommended to upgrade to version 1.14.5, which fixes this issue.
Repositories served via other access methods are not affected.
AMD. A memory corruption issue was addressed with improved input validation.
A moddavsvn crash was reported when SVNListParentPath is on:
http://mail-archives.apache.org/modmbox/subversion-dev/201401.mbox/%3CCANvU9scLHr2yOLABW8q6wNzhEf7pWM=NiavGcobqvUuyhKyAA@mail.gmail.com%3E
Certain requests could cause moddavsvn to crash.
This has been corrected in version 1.7.15:
https://svn.apache.org/repos/asf/subversion/branches/1.7.x/CHANGES
Upstream fix for CVE-2014-0032:
http://svn.apache.org/viewvc?view=revision&revision=r1557320
Multiple format string vulnerabilities in (1) neon 0.24.4 and earlier, and other products that use neon including (2) Cadaver, (3) Subversion, and (4) OpenOffice, allow remote malicious WebDAV servers to execute arbitrary code.
A NULL pointer dereference flaw was found in the way moddavsvn, Apache httpd module for Subversion server, processed certain requests to display collection of Subversion repositories, available on particular host, when listing of repositories (SVNListParentPath directive) was enabled. A remote user could use this flaw to cause denial of service (particular httpd thread crash).
References: [1] http://svn.apache.org/repos/asf/subversion/tags/1.6.15/CHANGES
Upstream changeset: [2] http://svn.apache.org/viewvc?view=revision&revision=1033166
Public PoC: [3] http://svn.haxx.se/users/archive-2010-11/0084.shtml
Flaw exploitation note: ----------------------- This flaw to be successfully exploited requires the "SVNListParentPath" directive / listing of repositories to be enabled. This feature is turned off by default in versions of subversion package, as shipped with Red Hat Enterprise Linux 5 and 6, which prevents occurrence / exploitation of this flaw.
authz.c in the moddavsvn module for the Apache HTTP Server, as distributed in Apache Subversion 1.5.x before 1.5.8 and 1.6.x before 1.6.13, when SVNPathAuthz shortcircuit is enabled, does not properly handle a named repository as a rule scope, which allows remote authenticated users to bypass intended access restrictions via svn commands.
An unintended file contents disclosure flaw was found in the way moddavsvn module of the subversion concurrent version control system processed certain URLs, when path-access control for files and directories was enabled. A remote attacker could use this flaw to obtain information, which should be otherwise prohibited by the authorization subsystem.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Kamesh Jayachandran of CollabNet, Inc. as the original reporter.
A NULL pointer dereference flaw was found in the way moddavsvn module of the subversion concurrent version control system processed requests submitted against the URL of a baselined resource. A remote attacker could use this flaw to cause the httpd child process to crash.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Joe Schaefer of Apache Software Foundation as the original reporter.
An infinite loop was found in the way moddavsvn module of the subversion concurrent version control system processed certain data sets, when SVNPathAuthz configuration directive with value of 'shortcircuit' was used. A remote attacker could use this flaw to cause the httpd child process to consume excessive amount of system memory.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Ivan Zhakov of VisualSVN as the original reporter.
A NULL pointer dereference flaw was found in the way moddavsvn, Apache httpd module for Subversion server, processed requests to lock working copy paths in the repository, when particular Subversion client, requesting the lock, was not previously authenticated to the Subversion server. A remote attacker could use this flaw to cause a denial of service (crash of particular httpd thread, serving the request).
Acknowledgements:
Red Hat would like to thank Hyrum Wright of the Apache Subversion project for reporting this issue. Upstream acknowledges Philip Martin, WANdisco, Inc. as the original reporter.
A denial of service flaw was found in the way moddavsvn module of Subversion (SVN), a concurrent version control system, used to process certain MOVE, COPY, or DELETE HTTP requests (requests that originated or targeted against a revision root). A remote attacker, with commit access / privileges could use this flaw to cause denial of service (depending on the Apache httpd web server configuration either child assertion failure or crash [prefork MPM configuration] or failure to handle other requests, originally scheduled to be handled within the same thread [threaded MPM configuration] due to a process termination) by issuing a specially-crafted SVN commit request.
Vulnerable package versions: Subversion HTTPD servers 1.7.0 through 1.7.10 (inclusive) Subversion HTTPD servers 1.8.0 (including 1.8.0 release candidates). svnserve (any version) is not vulnerable. Subversion 1.6.x is not vulnerable.
A security flaw was found in the way FSFS repository format functionality of Subversion, a concurrent version control system, processed filenames containing newline (ASCII 0x0a) character sequence. Remote attacker (via malicious client) could commit a revision for the FSFS repository, containing specially-crafted content that in subsequent requests could lead to disruption of the service of that repository for other users.
References: [1] http://subversion.apache.org/security/CVE-2013-1968-advisory.txt
Announcements: [2] http://mail-archives.apache.org/modmbox/subversion-dev/201305.mbox/%3CCADkdwvTxsMFeHgc8bK2V-2PrSrKoBffTi8+xbHA5tocrrewWew@mail.gmail.com%3E (1.6.23) [3] http://mail-archives.apache.org/modmbox/subversion-dev/201305.mbox/%3CCADkdwvRK51pQsybfvsAzjxQJrmVpL0fEa1K4WGkUP9Tzz6KFDw@mail.gmail.com%3E (1.7.10)
It was found that Subversion's moddavsvn Apache HTTPD server module will crash in some circumstances when a LOCK request is made against a non-existent URL. This can lead to DoS.
The vulnerability can be triggered by doing a LOCK request against a URL for a path that does not exist in the repository or an invalid activity URL where authentication is not required for the LOCK method.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Philip Martin and Ben Reser as the original reporter of this flaw.
It was found that Subversion's moddavsvn Apache HTTPD server module will crash when a PROPFIND request is made against activity URLs. This can lead to a DoS.
There is a flaw in moddavsvn that improperly tries to process this request instead of rejecting it and results in an attempt to access invalid memory (NULL). Which results in the httpd process segfaulting and dying. How bad the impact of that is varies based upon the configuration of the httpd server. httpd servers using a prefork MPM will simply start a new process to replace the process that died. Servers using threaded MPMs may be processing other requests in the same process as the process that the attack causes to die. In either case there is an increased processing impact of restarting a process and the cost of per process caches being lost.
It was found that Subversion's moddavsvn Apache HTTPD server module will crash when a LOCK request is made against activity URLs. This can lead to a DoS.
An activity URL is used by the server to map transactions in the repository to an incoming commit by a client. They are created by using the MKACTIVITY http method on the activity URL the client wishes to create. Activity URLs following the pattern of having /!svn/act/$uuid where $uuid is some unique id the client chooses to use. The denial of service described here issues a LOCK request on an activity URL. There is no meaning to this request in the DAV based HTTP protocols that Subversion uses. There is a flaw in moddavsvn that improperly tries to process this request instead of rejecting it and results in an attempt to access invalid memory (NULL). The invalid memory access causes the httpd child process to segfault.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Ben Reser as the original reporter of this flaw.
A NULL pointer dereference flaw was found in the way moddavsvn handled URIs for virtual transaction names. A remote, unauthenticated attacker could send a request for a virtual transaction name that does not exist, causing moddavsvn to crash.
Versions 1.7.0 up to and including 1.7.18, and 1.8.0 up to and including 1.8.10, are affected.
This issue will be fixed in versions 1.7.19 and 1.8.11.
Acknowledgements:
Red Hat would like to thank the Subversion project for reporting this issue. Upstream acknowledges Evgeny Kotkov of VisualSVN as the original reporter.
A NULL pointer dereference flaw was found in the way moddavsvn handled REPORT requests. A remote, unauthenticated attacker could use a crafted REPORT request to crash moddavsvn.
Versions 1.0.0 up to and including 1.7.18, and 1.8.0 up to and including 1.8.10, are affected.
This issue will be fixed in versions 1.7.19 and 1.8.11.
Acknowledgements:
Red Hat would like to thank the Subversion project for reporting this issue. Upstream acknowledges Evgeny Kotkov of VisualSVN as the original reporter.
A possible MD5 collision issue was found in the way Subversion handled cached credentials. If an attacker could trick a victim into connecting to their Subversion server, they could send a specially-crafted realm string to the victim that could trigger an MD5 collision. This could lead to the Subversion client sending another realm's credentials to the attacker's server.
Upstream patches:
http://svn.apache.org/r1550691 http://svn.apache.org/r1550772
References:
http://mail-archives.apache.org/modmbox/subversion-dev/201406.mbox/%3C53915FD8.7050600@reser.org%3E
Below is the upstream report about a security issue in Subversion:
Summary =======
Subversion's modauthzsvn does not properly restrict anonymous access in some mixed anonymous/authenticated environments when using Apache httpd 2.4. The result is that anonymous access may be possible to files for which only authenticated access should be possible.
Known vulnerable ================
CVE-2015-3185 Apache httpd 2.4.0 to 2.4.12 CVE-2015-3184 Apache Subversion 1.8.0 to 1.8.13 CVE-2015-3184 Apache Subversion 1.7.0 to 1.7.20
Servers are vulnerable if either httpd or Subversion is as listed.
Subversion 1.6 does not build with httpd 2.4 and servers using httpd 2.2 are not vulnerable. Servers that are configured to deny anonymous access are not vulnerable.
Known fixed ===========
Apache httpd 2.4.13 Apache Subversion 1.8.14 and 1.7.21
Both httpd and Subversion need to be updated.
Details =======
If you have a Subversion repository configured for anonymous read that has modauthzsvn configured such that some portion of the repository is hidden from an anonymous user, then in certain cases when Subversion is used with Apache httpd 2.4.x the file contents of the repository may be exposed to someone who knows the path name within the repository. The protected files and directories will not show on directory listings. Protected directories that do not show in their parent will return an empty directory listing rather than a 403 error. Protected files will return the full content of the file. Specifically the conditions required for this to happen is that there needs to be a <Directory> block for the DocumentRoot allowing access to everyone (e.g. Require all granted) and "Satisfy any" must not be set. This sort of configuration is included in the default httpd.conf that make install provides and is fairly standard.
Severity ========
CVSSv2 Base Score: 4.3 CVSSv2 Base Vector: AV:N/AC:M/Au:N/C:P/I:N/A:N
The repository needs to be configured with mixed anonymous and authenticated path-based authz and the the attacker needs to know the paths to files in the repository that require authentication.
Acknowledgements:
Red Hat would like to thank Apache Software Foundation for reporting this issue. Upstream acknowledges C. Michael Pilato, CollabNet, as the original reporter.
Statement:
This issue did not affect versions of subversion as shipped with Red Hat Enterprise Linux 5 and 6.
The svnrepostracenodelocations function in Apache Subversion before 1.7.21 and 1.8.x before 1.8.14, when path-based authorization is used, allows remote authenticated users to obtain sensitive path information by reading the history of a node that has been moved from a hidden path.
Summary: ========
Subversion's moddavsvn server allows setting arbitrary svn:author property values when committing new revisions. This can be accomplished using a specially crafted sequence of requests. An evil-doer can fake svn:author values on his commits. However, as authorization rules are applied to the evil-doer's true username, forged svn:author values can only happen on commits that touch the paths the evil-doer has write access to.
Doing so does not grant any additional access and does not circumvent the standard Apache authentication or authorization mechanisms. Still, an ability to spoof svn:author property values can impact data integrity in environments that rely on these values.
There are no known instances of the problem being exploited in the wild, but an exploit has been tested.
Details: ========
The Subversion http://-based protocol used for communicating with a Subversion moddavsvn server has two versions, v1 and v2. The v2 protocol was added in Subversion 1.7.0, but the server allows using both protocol versions for compatibility reasons. When a commit happens, the client sends a sequence of requests (POST, PUT, MERGE, etc.) that depend on the negotiated protocol version.
Usually, a server uses the name of the authenticated user as the svn:author value for a new revision. However, with a specially handcrafted v1 request sequence, a client can instruct the server to use the svn:author property that she/he provided. In this case, the server will use an arbitrary value coming from the client instead of the svn:author value originating from the authentication mechanism.
Severity: =========
CVSSv2 Base Score: 3.5 CVSSv2 Base Vector: AV:N/AC:M/Au:S/C:N/I:P/A:N
We consider this to be a medium risk vulnerability.
An attacker needs to have commit access to the repository to exploit the vulnerability. The ability to spoof svn:author property values can impact data integrity in environments that expect the values to denote the actual commit author. The real ID of the author could still be determined using server access logs. However, it is also possible that a spoofed change could go in unnoticed.
Subversion's repository hooks might see the real ID of the author or the forged value, depending on the hook type and the hook contents:
- A start-commit hook will see the real username in the USER argument - A start-commit hook will see the real username when performing 'svnlook propget --revprop -t TXNNAME' - A pre-commit hook will see the forged username when performing 'svnlook propget --revprop -t TXNNAME' - A post-commit hook will see the forged username when performing 'svnlook propget --revprop -r REV'
Unfortunately, no special configuration is required and all moddavsvn servers are vulnerable.
Recommendations: ================
No workaround is available.
Acknowledgements:
Red Hat would like to thank the Apache Software Foundation for reporting this issue. Upstream acknowledges Evgeny Kotkov of VisualSVN as the original reporter.
Summary: ========
Subversion's moddavsvn and svnserve servers will trigger an assertion while processing some requests with special parameters, which are evaluated on the server side. Assertion will cause svnserve process or the process hosting moddavsvn module (Apache) to abort.
This can lead to a DoS. There are no known instances of this problem being exploited in the wild, but an exploit has been tested.
Details: ========
Subversion's http:// and svn:// protocol support includes certain request types with parameters, which are evaluated on the server side. As an example, sometimes clients need to trace the history of the object to its origin, while not knowing the exact value of the origin (revision number) prior to issuing the request.
Certain parameter combinations can exploit this behavior and force a server into attempting an operation with invalid arguments. Subversion servers guard against these situations with assertion statements, and the default behavior for a failed assertion is to abort the current process.
Severity: =========
CVSSv2 Base Score: 5.0 CVSSv2 Base Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P
We consider this to be a medium risk vulnerability.
Apache HTTPD servers with repositories that allow anonymous reads will be vulnerable without authentication. Many Apache servers will respawn the listener processes, but a determined attacker will be able to crash these processes as they appear, denying service to legitimate users. Servers using threaded MPMs will close the connection on other clients being served by the same process that services the request from the attacker. In either case there is an increased processing impact of restarting a process and the cost of per process caches being lost.
Exploiting this behavior against svnserve does not require an attacker to authenticate. A remote attacker can cause svnserve process to terminate and thus deny service to users of the server.
Unfortunately, no special configuration is required and all moddavsvn and svnserve servers are vulnerable.
Recommendations: ================
No known workarounds are available.
Acknowledgements:
Red Hat would like to thank the Apache Software Foundation for reporting this issue. Upstream acknowledges Evgeny Kotkov of VisualSVN as the original reporter.
The canonicalizeusername function in svnserve/cyrusauth.c in Apache Subversion before 1.8.16 and 1.9.x before 1.9.4, when Cyrus SASL authentication is used, allows remote attackers to authenticate and bypass intended access restrictions via a realm string that is a prefix of an expected repository realm string.
The reqcheckaccess function in the modauthzsvn module in the httpd server in Apache Subversion before 1.8.16 and 1.9.x before 1.9.4 allows remote authenticated users to cause a denial of service (NULL pointer dereference and crash) via a crafted header in a (1) MOVE or (2) COPY request, involving an authorization check.
A NULL pointer dereference flaw was found in the way moddavsvn module of the subversion concurrent version control system processed requests submitted against the URL of a baselined resource. A remote attacker could use this flaw to cause the httpd child process to crash.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Joe Schaefer of Apache Software Foundation as the original reporter.
An infinite loop was found in the way moddavsvn module of the subversion concurrent version control system processed certain data sets, when SVNPathAuthz configuration directive with value of 'shortcircuit' was used. A remote attacker could use this flaw to cause the httpd child process to consume excessive amount of system memory.
Acknowledgements:
Red Hat would like to thank the Apache Subversion project for reporting this issue. Upstream acknowledges Ivan Zhakov of VisualSVN as the original reporter.
A server-side memory leak in Subversion before v1.6.15 allowed remote attackers to cause a denial of service (memory consumption and daemon outage or crash) via Subversion client "blame" or "log" operations performed on certain repository files, when the -g option (request to display additional merge history for the file) was used.
References: [1] http://svn.haxx.se/dev/archive-2010-11/0102.shtml [2] http://svn.apache.org/repos/asf/subversion/tags/1.6.15/CHANGES
Upstream changeset: [3] http://svn.apache.org/viewvc?view=revision&revision=1032808
Public PoC: [4] http://svn.haxx.se/dev/archive-2010-11/0163.shtml
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-3315 to the following vulnerability:
authz.c in the moddavsvn module for the Apache HTTP Server, as distributed in Apache Subversion 1.5.x before 1.5.8 and 1.6.x before 1.6.13, when SVNPathAuthz shortcircuit is enabled, does not properly handle a named repository as a rule scope, which allows remote authenticated users to bypass intended access restrictions via svn commands.
References: [1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3315 [2] http://security-tracker.debian.org/tracker/CVE-2010-3315 [3] http://subversion.apache.org/security/CVE-2010-3315-advisory.txt [4] http://secunia.com/advisories/41652