Vulnerability · Published Aug 23, 2021 · Assigned by apache
CVE-2021-35940Regression of CVE-2017-12613
High 7.1
In plain English
A high-severity security flaw in Apache Portable Runtime (APR) from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.1High
Exploit odds (30 days)1.2%top 32.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | apr | 1.7.0-r2 | ALPINE-CVE-2021-35940 |
| Alpine:v3.21 | apr | 1.7.0-r2 | ALPINE-CVE-2021-35940 |
| Alpine:v3.22 | apr | 1.7.0-r2 | ALPINE-CVE-2021-35940 |
| Alpine:v3.23 | apr | 1.7.0-r2 | ALPINE-CVE-2021-35940 |
| Alpine:v3.24 | apr | 1.7.0-r2 | ALPINE-CVE-2021-35940 |
| Debian:12 | apr | 1.7.0-7 | DEBIAN-CVE-2021-35940 |
| Debian:13 | apr | 1.7.0-7 | DEBIAN-CVE-2021-35940 |
| Debian:14 | apr | 1.7.0-7 | DEBIAN-CVE-2021-35940 |
| Ubuntu:22.04:LTS | apr | 1.7.0-6ubuntu1 | UBUNTU-CVE-2021-35940 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Portable Runtime (APR) | Apache Portable Runtime 1.7.0 |
References
- http://svn.apache.org/viewvc?view=revision&revision=1891198 x_refsource_MISC
- http://mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw%40mail.gmail.com%3E x_refsource_MISC
- https://dist.apache.org/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch x_refsource_MISC
- https://lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e%40%3Cdev.apr.apache.org%3E x_refsource_MISC
- [oss-security] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 mailing-list, x_refsource_MLIST
- [announce] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 mailing-list, x_refsource_MLIST
- [apr-dev] 20210831 APR 1.7.1 release? mailing-list, x_refsource_MLIST
- [httpd-dev] 20210831 APR 1.7.1 release? mailing-list, x_refsource_MLIST
- [apr-dev] 20210831 Re: APR 1.7.1 release? mailing-list, x_refsource_MLIST
- [apr-dev] 20210901 Re: APR 1.7.1 release? mailing-list, x_refsource_MLIST
- [apr-dev] 20210916 Re: CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 mailing-list, x_refsource_MLIST
- [tomcat-dev] 20210922 [jira] [Created] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 mailing-list, x_refsource_MLIST
- [tomcat-dev] 20210922 [jira] [Resolved] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 mailing-list, x_refsource_MLIST
- [tomcat-dev] 20210922 [jira] [Commented] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 mailing-list, x_refsource_MLIST
- [tomcat-dev] 20210922 [jira] [Reopened] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC