CVE-2021-35940 json
Regression of CVE-2017-12613
published 2021-08-23 5 y ago modified 2026-09-08 2 mo ago also BIT-apr-2021-35940 , EUVD-2021-22575
- cvss
- 7.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami apr 1.7.1
- apr Debian 14, Debian 13, Debian 12 1.7.0-7
debian advisories DEBIAN-CVE-2021-35940
- apr Ubuntu 22.04 LTS 1.7.0-6ubuntu1
- apr Ubuntu Pro 14.04 LTS 1.5.0-1ubuntu0.1~esm1
- apr Ubuntu Pro 16.04 LTS 1.5.2-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2021-35940
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- apr openSUSE Tumbleweed 1.7.0-4.1
opensuse advisories openSUSE-SU-2024:11865-1
- apr Alpine 3.15, Alpine 3.14 1.7.0-r1
- apr Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.7.0-r2
alpine advisories ALPINE-CVE-2021-35940
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-35940 updated cvss 7.1
apr: Regression of CVE-2017-12613 fix in apr 1.7
-
Red Hat Enterprise Linux 6 apr Red Hat Enterprise Linux 7 apr Red Hat Enterprise Linux 8 apr Red Hat Enterprise Linux 9 apr Red Hat JBoss Core Services jbcs-httpd24-apr jbcs-httpd24-apr Red Hat JBoss Web Server 3 aprnot affected: vulnerable code not present
+1 more productsfewer
Red Hat JBoss Web Server 5 apr
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-23-164-03 updated cvss 7.1
Rockwell Automation FactoryTalk Edge Gateway
-
Rockwell Automation FactoryTalk Edge Gateway v1.3affected: fixed in v1.4 compatibility.rockwellautomation.com
From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf
Exploit prediction
1.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 3.6 | AV:L/AC:L/Au:N/C:P/I:N/A:P |
| OSV | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | apr | >=1.7.0, <1.7.1 |
1.7.1 |
Affected products
- Apache Software Foundation Apache Portable Runtime (APR)
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
dist.apache.org
/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch
patch, vendor-advisory, advisory
-
oracle.com
/security-alerts/cpujul2022.html
patch, third-party-advisory, advisory
-
svn.apache.org
/viewvc?view=revision&revision=1891198
vendor-advisory, advisory
-
lists.apache.org
/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e%40%3Cdev.apr.apache.org%3E
mailing-list, vendor-advisory, advisory
-
mail-archives.apache.org
/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw%40mail.gmail.com%3E
web
-
openwall.com
/lists/oss-security/2021/08/23/1
mailing-list, third-party-advisory, advisory
-
lists.apache.org
/thread.html/rb1f3c85f50fbd924a0051675118d1609e57957a02ece7facb723155b%40%3Cannounce.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.apr.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.httpd.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r72a069753b9363c29732e59ad8f0d22a633fb6a699980407511ac961%40%3Cdev.apr.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r317c398ee5736e627f7887b06607e5c58b45a696d352ba8c14615f55%40%3Cdev.apr.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/ra38094406cc38a05218ebd1158187feda021b0c3a1df400bbf296af8%40%3Cdev.apr.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r72479f4dcffaa8a4732d5a0e87fecc4bace4932e28fc26f7d400e2b3%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r54c755c74b9e3846cfd84039b1967d37d2870750a02d7c603983f6ed%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/rafe54755850e93de287c36540972457b2dd86332106aa7817c7c27fb%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r1c788464a25fbc046a72aff451bc8186386315d92a2dd0349903fa4f%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2021-35940
web
Sources
- CVE List CVE-2021-35940
- NVD CVE-2021-35940
- OSV BIT-apr-2021-35940
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.