CVE-2021-35940
Regression of CVE-2017-12613
- Published
- Updated
- Reserved
- Assigned by
- apache
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.
Timeline
ID reserved
By apache
- 55 days later
· 55 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.2% · top 32% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.
Weakness
- APR apr_time_exp* out of bounds array dereference
- CWE-125 (opens in a new tab)All about CWE-125 and its CVEs
Affected products
Apache Software Foundation · Apache Portable Runtime (APR)
- affected Apache Portable Runtime 1.7.0
References (16)
- http://svn.apache.org/viewvc?view=revision&revision=1891198 (opens in a new tab)x_refsource_MISCx_transferred
- http://mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw%40mail.gmail.com%3E (opens in a new tab)x_refsource_MISCx_transferred
- https://dist.apache.org/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch (opens in a new tab)x_refsource_MISCx_transferred
- https://lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e%40%3Cdev.apr.apache.org%3E (opens in a new tab)x_refsource_MISCmailing-listx_refsource_MLISTx_transferred
- [oss-security] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210823 CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [apr-dev] 20210831 APR 1.7.1 release? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [httpd-dev] 20210831 APR 1.7.1 release? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [apr-dev] 20210831 Re: APR 1.7.1 release? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [apr-dev] 20210901 Re: APR 1.7.1 release? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [apr-dev] 20210916 Re: CVE-2021-35940: Apache Portable Runtime (APR): Regression of CVE-2017-12613 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20210922 [jira] [Created] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20210922 [jira] [Resolved] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20210922 [jira] [Commented] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20210922 [jira] [Reopened] (MTOMCAT-327) Tomcat 9.0.50 and it has apr-1.7.0 dependency, with Address CVE-2021-35940 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpujul2022.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2021-35940)Record last updated .