Apache Subversion: Use After Free
CVE-2022-24070 is a high-severity use after free vulnerability in Apache Subversion from Apache, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Apache Subversion versions: 1.10.0 to 1.14.1. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 8.87% chance of exploitation within 30 days, which is in the top 4.71% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Subversion to 1.10.8 or 1.14.2, whichever matches your release line, or a later version.
- Update macOS to 12.5 or a later version.
- Read the advisory on bz.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache Subversion | 1.10.0 to 1.14.1 | Not stated |
| Apache | Subversion | 1.10.0 up to, but not including, 1.10.8; 1.14.0 up to, but not including, 1.14.2 | 1.10.8, 1.14.2 |
| Debian | Debian Linux | 10.0; 11.0 | Not stated |
| Fedora Project | Fedora | 35; 36 | Not stated |
| Apple | macOS | 12.0 up to, but not including, 12.5 | 12.5 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 2.0 | 5.0 | Medium | NVD |
Official description
Subversion's mod_dav_svn is vulnerable to memory corruption. While looking up path-based authorization rules, mod_dav_svn servers may attempt to use memory which has already been freed. Affected Subversion mod_dav_svn servers 1.10.0 through 1.14.1 (inclusive). Servers that do not use mod_dav_svn are not affected.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.
How developers prevent this class of flaw
- Choose a language that provides automatic memory management.
- When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Advisories
Third-party and government advisories
- seclists.org/fulldisclosure/2022/Jul/18Mailing List, Third Party Advisory
- support.apple.com/kb/HT213345Third Party Advisory
- debian.org/security/2022/dsa-5119Third Party Advisory
Other references
Other vulnerabilities in Apache Subversion
- 7.8 High severity
Recent Use After Free vulnerabilities
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.0 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.