# CVE-2022-24070: Apache Subversion mod_dav_svn is vulnerable to memory corruption

> Attackers can trigger a use-after-free in Apache Subversion's mod_dav_svn module, potentially causing crashes or arbitrary code execution.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Apr 2022
- **Updated:** 3 Aug 2024
- **Also known as:** ALPINE-CVE-2022-24070, ALSA-2022:2234, AZL-9368, BIT-subversion-2022-24070, CLSA-2022-1654175372, CLSA-2022-1654175590, DEBIAN-CVE-2022-24070, GHSA-c3j6-9rv7-vmqq, RHSA-2022:2222, RHSA-2022:2234, RHSA-2022:2236, RHSA-2022:2237, RHSA-2022:4591, RHSA-2022:4722, RHSA-2022:4941, RLSA-2022:2234, RLSA-2022:4591, RLSA-2022:4941, UBUNTU-CVE-2022-24070

## What is CVE-2022-24070?

CVE-2022-24070 is a high-severity use after free vulnerability in Apple Macos, published on 12 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### 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.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2022-24070?

1 open source package ship an affected version, including subversion. It affects 4 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `subversion` | Bitnami | From 1.10.0 | 1.10.8, 1.14.2 |
| `libserf` | AlmaLinux:8 | All versions | 1.3.9-9.module_el8.3.0+2053+ac338b6d |
| `libserf` | AlmaLinux:8 | All versions | 1.3.9-9.module_el8.4.0+2266+ac338b6d |
| `libserf` | AlmaLinux:8 | All versions | 1.3.9-9.module_el8.6.0+2912+eb1cdf5a |
| `mod_dav_svn` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `mod_dav_svn` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion-devel` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion-devel` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion-gnome` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion-gnome` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion-javahl` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion-javahl` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion-libs` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion-libs` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion-perl` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion-perl` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `subversion-tools` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.5.0+2896+dbb67bd2 |
| `subversion-tools` | AlmaLinux:8 | All versions | 1.10.2-5.module_el8.6.0+2897+d2f1747f |
| `utf8proc` | AlmaLinux:8 | All versions | 2.1.1-5.module_el8.3.0+2053+ac338b6d |
| `utf8proc` | AlmaLinux:8 | All versions | 2.1.1-5.module_el8.4.0+2266+ac338b6d |
| `utf8proc` | AlmaLinux:8 | All versions | 2.1.1-5.module_el8.6.0+2912+eb1cdf5a |
| `libserf` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.9-9.module+el8.3.0+6671+2675c974 |
| `libserf` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.9-9.module+el8.4.0+8637+d3bad2c2 |
| `libserf-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.9-9.module+el8.3.0+6671+2675c974 |
| `libserf-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.9-9.module+el8.4.0+8637+d3bad2c2 |
| `libserf-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.9-9.module+el8.3.0+6671+2675c974 |
| `libserf-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.9-9.module+el8.4.0+8637+d3bad2c2 |
| `mod_dav_svn` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.10.2-5.module+el8.6.0+15157+188c9801 |
| `mod_dav_svn` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.14.1-2.module+el8.6.0+15201+2f551d15 |
| `mod_dav_svn-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.10.2-5.module+el8.6.0+15157+188c9801 |
| `mod_dav_svn-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.14.1-2.module+el8.6.0+15201+2f551d15 |
| `python3-subversion` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.14.1-2.module+el8.6.0+15201+2f551d15 |
| `python3-subversion-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.14.1-2.module+el8.6.0+15201+2f551d15 |
| `subversion` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.10.2-5.module+el8.6.0+15157+188c9801 |
| `subversion` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.14.1-2.module+el8.6.0+15201+2f551d15 |
| `subversion-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.10.2-5.module+el8.6.0+15157+188c9801 |
| `subversion-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.14.1-2.module+el8.6.0+15201+2f551d15 |
| `subversion-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.10.2-5.module+el8.6.0+15157+188c9801 |

Products: Apache Subversion, Apple Macos, Debian Debian Linux, Fedoraproject Fedora.

## How do I fix CVE-2022-24070?

Upgrade subversion to a fixed version for your release line: 1.10.8 or 1.14.2.

## Is CVE-2022-24070 being exploited?

There is no known exploitation of CVE-2022-24070 in the wild and no public exploit code.

## Other vulnerabilities in Apple Macos

- [CVE-2017-9800](https://insights.sbomify.com/CVE-2017-9800/): A maliciously constructed svn+ssh:// URL would cause Subversion clients before 1.8.19, 1.9.x before 1.9.7, and 1.10.0.x through 1.10.0-alpha (critical 9.8)
- [CVE-2013-4246](https://insights.sbomify.com/CVE-2013-4246/): Denial of service in n/a (high 8.8)
- [CVE-2015-5259](https://insights.sbomify.com/CVE-2015-5259/): Integer overflow in n/a (high 8.6)
- [CVE-2024-45720](https://insights.sbomify.com/CVE-2024-45720/): Apache Subversion: Command line argument injection on Windows platforms (high 8.2)
- [CVE-2015-0202](https://insights.sbomify.com/CVE-2015-0202/): Denial of service in n/a (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-24070 and fix it if it is affected.

What it is: CVE-2022-24070 is a high-severity use after free vulnerability in Apple Macos, published on 12 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-24070 in the wild and no public exploit code.

Affected packages and fixed versions:
- subversion (Bitnami): affected from 1.10.0; fixed in 1.10.8, 1.14.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-24070/ (Markdown: https://insights.sbomify.com/CVE-2022-24070/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-24070
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-24070
- OSV: https://osv.dev/vulnerability/CVE-2022-24070

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-24070/
Summaries are generated and may contain mistakes; the official description above is the record.
