CVE-2021-35940
publishedRegression of CVE-2017-12613
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Portable Runtime (APR)Apache Portable Runtime 1.7.0 | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-1936 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-016 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | apr | Fixed | 1.7.0-r2 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | apr-develaarch64 | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| Ubuntu | esm | apr | Advisory build | 1.5.0-1ubuntu0.1~esm1 | USN-5056-1 |
| Amazon Linux | AL2 | apraarch64 | Listed in advisory | Not stated | ALAS2-2023-1936 |
| Alpine Linux | v3.13 | apr | Fixed | 1.7.0-r1 | Package fix record |
Show 27 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.14 | apr | Fixed | 1.7.0-r1 | Package fix record |
| Alpine Linux | v3.15 | apr | Fixed | 1.7.0-r1 | Package fix record |
| Alpine Linux | v3.16 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.17 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.18 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.19 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.20 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.21 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.22 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.23 | apr | Fixed | 1.7.0-r2 | Package fix record |
| Alpine Linux | v3.24 | apr | Fixed | 1.7.0-r2 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | apr-develppc64le | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apr-devels390x | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apr-develx86_64 | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libapr1-0aarch64 | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libapr1-0ppc64le | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libapr1-0s390x | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libapr1-0x86_64 | Advisory build | 1.7.0-4.1 | OPENSUSE-SU-2024:11865-1 |
| Ubuntu | esm | libapr1 | Advisory build | 1.5.0-1ubuntu0.1~esm1 | USN-5056-1 |
| Ubuntu | xenial | apr | Advisory build | 1.5.2-3ubuntu0.1~esm1 | USN-5056-1 |
| Ubuntu | xenial | libapr1 | Advisory build | 1.5.2-3ubuntu0.1~esm1 | USN-5056-1 |
| Amazon Linux | AL2 | apri686 | Listed in advisory | Not stated | ALAS2-2023-1936 |
| Amazon Linux | AL2 | aprsrc | Listed in advisory | Not stated | ALAS2-2023-1936 |
| Amazon Linux | AL2 | aprx86_64 | Listed in advisory | Not stated | ALAS2-2023-1936 |
| Amazon Linux | AL2023 | apraarch64 | Listed in advisory | Not stated | ALAS2023-2023-016 |
| Amazon Linux | AL2023 | aprsrc | Listed in advisory | Not stated | ALAS2023-2023-016 |
| Amazon Linux | AL2023 | aprx86_64 | Listed in advisory | Not stated | ALAS2023-2023-016 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Portable Runtime (APR) | Apache Portable Runtime 1.7.0 (affected) | apache · cna |
Weaknesses
1- APR apr_time_exp* out of bounds array dereference
References
16- http://mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw%40mail.gmail.com%3E
- http://svn.apache.org/viewvc?view=revision&revision=1891198
- [oss-security] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 http://www.openwall.com/lists/oss-security/2021/08/23/1
- https://dist.apache.org/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch
- [tomcat-dev] 20210922 [jira] [Reopened] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 https://lists.apache.org/thread.html/r1c788464a25fbc046a72aff451bc8186386315d92a2dd0349903fa4f%40%3Cdev.tomcat.apache.org%3E
- [apr-dev] 20210901 Re: APR 1.7.1 release? https://lists.apache.org/thread.html/r317c398ee5736e627f7887b06607e5c58b45a696d352ba8c14615f55%40%3Cdev.apr.apache.org%3E
- [tomcat-dev] 20210922 [jira] [Resolved] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 https://lists.apache.org/thread.html/r54c755c74b9e3846cfd84039b1967d37d2870750a02d7c603983f6ed%40%3Cdev.tomcat.apache.org%3E
- [tomcat-dev] 20210922 [jira] [Created] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 https://lists.apache.org/thread.html/r72479f4dcffaa8a4732d5a0e87fecc4bace4932e28fc26f7d400e2b3%40%3Cdev.tomcat.apache.org%3E
- [apr-dev] 20210831 Re: APR 1.7.1 release? https://lists.apache.org/thread.html/r72a069753b9363c29732e59ad8f0d22a633fb6a699980407511ac961%40%3Cdev.apr.apache.org%3E
- [apr-dev] 20210831 APR 1.7.1 release? https://lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.apr.apache.org%3E
- [httpd-dev] 20210831 APR 1.7.1 release? https://lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.httpd.apache.org%3E
- [apr-dev] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 https://lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e%40%3Cdev.apr.apache.org%3E
- [apr-dev] 20210916 Re: CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 https://lists.apache.org/thread.html/ra38094406cc38a05218ebd1158187feda021b0c3a1df400bbf296af8%40%3Cdev.apr.apache.org%3E
- [tomcat-dev] 20210922 [jira] [Commented] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 https://lists.apache.org/thread.html/rafe54755850e93de287c36540972457b2dd86332106aa7817c7c27fb%40%3Cdev.tomcat.apache.org%3E
- [announce] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 https://lists.apache.org/thread.html/rb1f3c85f50fbd924a0051675118d1609e57957a02ece7facb723155b%40%3Cannounce.apache.org%3E
- https://www.oracle.com/security-alerts/cpujul2022.html
Provider assertions
2apache · cna
Regression of CVE-2017-12613
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 692fc866960f3ccea51c732633884c0eeacf7fe7b92d5055fcd480cd55fea0fd
- Ingested
- 23 Sep 2026, 07:54:59 UTC
- Source record
- Official CVE record