CVE-2021-35940
Regression of CVE-2017-12613
Reported by apache · Published August 23, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| apr-devel | Amazon Linux | 1.7.2-2.amzn2023.0.2, 1.7.2-1.amzn2 |
| apr | Bitnami | 1.7.1 |
| apr | Alpine | 1.7.0-r2, 1.7.0-r1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Portable Runtime (APR) | Apache Portable Runtime 1.7.0 |
| amazon:2 | apr-devel | 0 |
| amazon:2023 | apr-devel | 0 |
| alpine | apr | 0, 0 |
| arch | apr | * |
| Apache Software Foundation | Apache Portable Runtime (APR) | 1.7.0 |
| amazon:2023 | apr | 0 |
| amazon:2 | apr | 0 |
Timeline
- Aug 23, 2021 CVE Published
- Aug 24, 2021 EPSS Score (30 in total, the first dated here)
- Aug 4, 2024 CVE Updated
- Apr 3, 2025 PoC Published
- Jun 1, 2026 Security Advisory (2 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-35940
vulnetix vdb fixes CVE-2021-35940
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-35940/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [oss-security] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 mailing-listx_refsource_MLIST
- [announce] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 mailing-listx_refsource_MLIST
- [apr-dev] 20210831 APR 1.7.1 release? mailing-listx_refsource_MLIST
- [httpd-dev] 20210831 APR 1.7.1 release? mailing-listx_refsource_MLIST
- [apr-dev] 20210831 Re: APR 1.7.1 release? mailing-listx_refsource_MLIST
- [apr-dev] 20210901 Re: APR 1.7.1 release? mailing-listx_refsource_MLIST
- [apr-dev] 20210916 Re: CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 mailing-listx_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-listx_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-listx_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-listx_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-listx_refsource_MLIST
- x_refsource_MISC