CVE-2021-35940
Regression of CVE-2017-12613
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.1
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.
- Record
CVE-2021-35940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - CVSS 2.0
- 3.6 Low
AV:L/AC:L/Au:N/C:P/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
Regression of CVE-2017-12613
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.
- Record
CVE-2021-35940- Updated
- 2026-11-02
EUVDEUVD-2021-22575 No score
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.
- Record
EUVD-2021-22575- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-95qq-4mqm-pp5g
7.1
An out-of-bounds array read in the apr_time_exp*() functions was fixed in the Apache Portable...
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.
- Record
GHSA-95qq-4mqm-pp5g- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-35940
7.1
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.
- Record
ALPINE-CVE-2021-35940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2021-35940
7.1
CVE-2021-35940 does not affect BellSoft software
- Record
BELL-CVE-2021-35940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSV
7.1
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.
- Record
CVE-2021-35940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-35940
7.1
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.
- Record
DEBIAN-CVE-2021-35940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-35940
7.1
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.
- Record
UBUNTU-CVE-2021-35940- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVBIT-apr-2021-35940 No score
Regression of CVE-2017-12613
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.
- Record
BIT-apr-2021-35940- Updated
- 2026-11-02
OSVMGASA-2021-0428 No score
Updated apr packages fix security vulnerability
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. (CVE-2021-35940)
- Record
MGASA-2021-0428- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11865-1 No score
apr-devel-1.7.0-4.1 on GA media
These are all security issues fixed in the apr-devel-1.7.0-4.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11865-1- Updated
- 2026-11-02
OSVUSN-5056-1 No score
apr vulnerability
It was discovered that APR incorrectly handled certain inputs. An attacker could possibly use this issue to expose sensitive information.
- Record
USN-5056-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
aprAlpine:v3.14 |
before 1.7.0-r1 | 1.7.0-r1 |
aprAlpine:v3.15 |
before 1.7.0-r1 | 1.7.0-r1 |
aprAlpine:v3.16 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.17 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.18 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.19 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.20 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.21 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.22 |
before 1.7.0-r2 | 1.7.0-r2 |
aprAlpine:v3.23 |
before 1.7.0-r2 | 1.7.0-r2 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
aprAlpine:v3.24 |
before 1.7.0-r2 | 1.7.0-r2 |
aprBitnami |
1.7.0 up to 1.7.1 | 1.7.1 |
aprDebian:12 |
before 1.7.0-7 | 1.7.0-7 |
aprDebian:13 |
before 1.7.0-7 | 1.7.0-7 |
aprDebian:14 |
before 1.7.0-7 | 1.7.0-7 |
aprMageia:8 |
before 1.7.0-3.2.mga8 | 1.7.0-3.2.mga8 |
aprUbuntu:Pro:14.04:LTS |
before 1.5.0-1ubuntu0.1~esm1, plus listed versions 1.4.8-1ubuntu11.4.8-21.4.8-31.5.0-1 |
1.5.0-1ubuntu0.1~esm1 |
aprUbuntu:Pro:16.04:LTS |
before 1.5.2-3ubuntu0.1~esm1, plus listed versions 1.5.2-3 |
1.5.2-3ubuntu0.1~esm1 |
aprUbuntu:22.04:LTS |
before 1.7.0-6ubuntu1 | 1.7.0-6ubuntu1 |
apropenSUSE:Tumbleweed |
before 1.7.0-4.1 | 1.7.0-4.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-35940 is a high vulnerability (CVSS 7.1) in Apache Portable Runtime, published August 23, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.19%, the 67th percentile. Fixed in apr 1.7.0-r1.
References
svn.apache.org/viewvc?view=revision&revision=1891198
mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw%40mail.gmail.com%3E
dist.apache.org/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch
lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e%40%3Cdev.apr.apache.org%3E
openwall.com/lists/oss-security/2021/08/23/1
lists.apache.org/thread.html/rb1f3c85f50fbd924a0051675118d1609e57957a02ece7facb723155b%40%3Cannounce.apache.org%3E
Show 33 moreShow less
lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.httpd.apache.org%3E
lists.apache.org/thread.html/r72a069753b9363c29732e59ad8f0d22a633fb6a699980407511ac961%40%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/r317c398ee5736e627f7887b06607e5c58b45a696d352ba8c14615f55%40%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/ra38094406cc38a05218ebd1158187feda021b0c3a1df400bbf296af8%40%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/r72479f4dcffaa8a4732d5a0e87fecc4bace4932e28fc26f7d400e2b3%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r54c755c74b9e3846cfd84039b1967d37d2870750a02d7c603983f6ed%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/rafe54755850e93de287c36540972457b2dd86332106aa7817c7c27fb%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r1c788464a25fbc046a72aff451bc8186386315d92a2dd0349903fa4f%40%3Cdev.tomcat.apache.org%3E
oracle.com/security-alerts/cpujul2022.html
nvd.nist.gov/vuln/detail/CVE-2021-35940
lists.apache.org/thread.html/r1c788464a25fbc046a72aff451bc8186386315d92a2dd0349903fa4f@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r317c398ee5736e627f7887b06607e5c58b45a696d352ba8c14615f55@%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/r54c755c74b9e3846cfd84039b1967d37d2870750a02d7c603983f6ed@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r72479f4dcffaa8a4732d5a0e87fecc4bace4932e28fc26f7d400e2b3@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r72a069753b9363c29732e59ad8f0d22a633fb6a699980407511ac961@%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b@%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b@%3Cdev.httpd.apache.org%3E
lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e@%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/ra38094406cc38a05218ebd1158187feda021b0c3a1df400bbf296af8@%3Cdev.apr.apache.org%3E
lists.apache.org/thread.html/rafe54755850e93de287c36540972457b2dd86332106aa7817c7c27fb@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/rb1f3c85f50fbd924a0051675118d1609e57957a02ece7facb723155b@%3Cannounce.apache.org%3E
mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw@mail.gmail.com%3E
github.com/advisories/GHSA-95qq-4mqm-pp5g
security.alpinelinux.org/vuln/CVE-2021-35940
docs.bell-sw.com/security/cves/CVE-2021-35940
security-tracker.debian.org/tracker/CVE-2021-35940
advisories.mageia.org/MGASA-2021-0428.html
bugs.mageia.org/show_bug.cgi?id=29400
ubuntu.com/security/CVE-2021-35940
ubuntu.com/security/notices/USN-5056-1
cve.org/CVERecord?id=CVE-2021-35940
suse.com/security/cve/CVE-2021-35940