
CVE catalog
CVE-2021-35940
apr: CVE-2021-35940
- Severity
- High · CVSS 7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.19% · Oct 25, 2026
An out-of-bounds array read in the apr_time_exp*() functions was fixed in the Apache Portable Runtime 1.6.3 release (CVE-2017-12613). The fix for this issue was not carried forward to the APR 1.7.x branch, and hence version 1.7.0 regressed compared to 1.6.3 and is vulnerable to the same issue.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | apr | sid | 1.7.6-3 | fixed |
| Debian | apr | forky | 1.7.6-3 | fixed |
| Debian | apr | trixie | 1.7.5-1 | fixed |
| Debian | apr | bookworm | 1.7.2-3+deb12u1 | fixed |
| Alpine | apr | 3.14 | 1.7.0-r1 | fixed |
| Alpine | apr | 3.15 | 1.7.0-r1 | fixed |
| Alpine | apr | 3.16 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.17 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.18 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.19 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.20 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.21 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.22 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.23 | 1.7.0-r2 | fixed |
| Alpine | apr | 3.24 | 1.7.0-r2 | fixed |
| Ubuntu | apr | pro | 1.5.2-3 | vulnerable |
| Ubuntu | apr | pro | 1.5.2-3ubuntu0.1~esm1 | fixed |
| Ubuntu | apr | pro | 1.5.2-3 | vulnerable |
| Ubuntu | apr | pro | 1.5.2-3ubuntu0.1~esm1 | fixed |
| Ubuntu | apr | 22.04 | 1.7.0-6ubuntu1 | fixed |
| Opensuse | apr | tumbleweed | 1.7.0-4.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | apr | source | sid | 1.7.0-7 | not yet assigned | Not reported | [992789] |
| Debian | apr | source | forky | 1.7.0-7 | not yet assigned | Not reported | [992789] |
| Debian | apr | source | trixie | 1.7.0-7 | not yet assigned | Not reported | [992789] |
| Debian | apr | source | bookworm | 1.7.0-7 | not yet assigned | Not reported | [992789] |
| Alpine | apr | apk | 3.14 | 1.7.0-r1 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.15 | 1.7.0-r1 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.16 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.17 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.18 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.19 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.20 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.21 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.22 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.23 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Alpine | apr | apk | 3.24 | 1.7.0-r2 | Not reported | ALPINE-CVE-2021-35940 | Not reported |
| Ubuntu | apr | deb | pro | 1.5.2-3ubuntu0.1~esm1 | Not reported | USN-5056-1 | Not reported |
| Ubuntu | apr | deb | pro | 1.5.2-3ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-35940 | Not reported |
| Ubuntu | apr | deb | 22.04 | 1.7.0-6ubuntu1 | Not reported | UBUNTU-CVE-2021-35940 | Not reported |
| Opensuse | apr | rpm | tumbleweed | 1.7.0-4.1 | Not reported | OPENSUSE-SU-2024:11865-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [apr-devel]Unknown
Source package: [apr]
Details (1)
1.7.6-2.2· x86_64 · tumbleweedUnknown · Fixed:
1.7.0-4.1Version impact unknown
dsa · apr · opensuse · tumbleweed
- [libapr1-0]Unknown
Source package: [apr]
Details (1)
1.7.6-2.2· x86_64 · tumbleweedUnknown · Fixed:
1.7.0-4.1Version impact unknown
dsa · apr · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [libapr1]Fixed
Source package: [apr]
Details (2)
1.7.2-3+deb12u1· amd64 · bookwormFixed · Fixed:
1.7.0-7dsa · apr · debian · bookworm; dsa · apr · debian · 12
1.7.2-3+deb12u1· arm64 · bookwormFixed · Fixed:
1.7.0-7dsa · apr · debian · bookworm; dsa · apr · debian · 12
- [libapr1-dev]Fixed
Source package: [apr]
Details (2)
1.7.2-3+deb12u1· amd64 · bookwormFixed · Fixed:
1.7.0-7dsa · apr · debian · bookworm; dsa · apr · debian · 12
1.7.2-3+deb12u1· arm64 · bookwormFixed · Fixed:
1.7.0-7dsa · apr · debian · bookworm; dsa · apr · debian · 12
[Debian 13 (Trixie)]
- [libapr1-dev]Fixed
Source package: [apr]
Details (2)
1.7.5-1· amd64 · trixieFixed · Fixed:
1.7.0-7dsa · apr · debian · 13
1.7.5-1· arm64 · trixieFixed · Fixed:
1.7.0-7dsa · apr · debian · 13
- [libapr1t64]Fixed
Source package: [apr]
Details (2)
1.7.5-1· amd64 · trixieFixed · Fixed:
1.7.0-7dsa · apr · debian · 13
1.7.5-1· arm64 · trixieFixed · Fixed:
1.7.0-7dsa · apr · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_11865-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-35940]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-35940]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-35940]
- [https://osv.dev/vulnerability/USN-5056-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11865-1]
- [https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/OT/white/2023/icsa-23-164-03.json]
- [https://security-tracker.debian.org/tracker/CVE-2021-35940]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-35940.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2021/wid-sec-w-2023-0064.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]