CVE-2015-0251: Medium severity Apache subversion vulnerability
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.
Other sources
The moddavsvn server in Subversion 1.5.0 through 1.7.19 and 1.8.0 through 1.8.11 allows remote authenticated users to spoof the svn:author property via a crafted v1 HTTP protocol request sequences.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/Subversionto a version that resolves this vulnerability.Fixed in 1.7.20 - Upgrade
Upgrade
redhat/Subversionto a version that resolves this vulnerability.Fixed in 1.8.13
Event History
Frequently Asked Questions
What is the severity of CVE-2015-0251?
CVE-2015-0251 has a medium severity rating due to its ability to allow remote authenticated users to spoof the svn:author property.
How do I fix CVE-2015-0251?
To fix CVE-2015-0251, upgrade to Subversion version 1.8.12 or later, or apply patches as recommended by your vendor.
What versions of Subversion are affected by CVE-2015-0251?
CVE-2015-0251 affects Subversion versions 1.5.0 through 1.7.19 and 1.8.0 through 1.8.11.
Can CVE-2015-0251 lead to unauthorized changes?
Yes, CVE-2015-0251 can lead to unauthorized changes by allowing attackers to spoof the author of commits.
Who is at risk of CVE-2015-0251?
Remote authenticated users of Subversion who are using affected versions are at risk of the CVE-2015-0251 vulnerability.