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

EcosystemPackageFixed inAdvisory
Alpine:v3.20apr1.7.0-r2ALPINE-CVE-2021-35940
Alpine:v3.21apr1.7.0-r2ALPINE-CVE-2021-35940
Alpine:v3.22apr1.7.0-r2ALPINE-CVE-2021-35940
Alpine:v3.23apr1.7.0-r2ALPINE-CVE-2021-35940
Alpine:v3.24apr1.7.0-r2ALPINE-CVE-2021-35940
Debian:12apr1.7.0-7DEBIAN-CVE-2021-35940
Debian:13apr1.7.0-7DEBIAN-CVE-2021-35940
Debian:14apr1.7.0-7DEBIAN-CVE-2021-35940
Ubuntu:22.04:LTSapr1.7.0-6ubuntu1UBUNTU-CVE-2021-35940

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Portable Runtime (APR) Apache Portable Runtime 1.7.0

References