{"schemaVersion":3,"id":"CVE-2021-35940","aliases":["ALPINE-CVE-2021-35940","MGASA-2021-0428","UBUNTU-CVE-2021-35940","USN-5056-1","DEBIAN-CVE-2021-35940","openSUSE-SU-2024:11865-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-08-23T10:00:10.000Z","modified":"2024-08-04T00:40:47.582Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","exploitability":4.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","exploitability":4.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","exploitability":4.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.6,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01185,"percentile":0.67368,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01185},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01185,"percentile":0.67368}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01185,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01185,"percentile":0.67368}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"apache software foundation","product":"apache portable runtime (apr)","name":"Apache Portable Runtime (APR)","label":"apache portable runtime (apr)","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"Apache Portable Runtime 1.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"Apache Portable Runtime 1.7.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_portable_runtime_apr"},{"vendor":"apache","product":"portable_runtime","name":"portable runtime","label":"portable_runtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.7.0","eol":null,"hubHref":"/vendor/apache/portable_runtime"},{"vendor":"alpine","product":"apr","name":"apr","label":"apr","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/apr","purlType":"apk","versions":[{"text":"< 1.7.0-r1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.0-r1 | < 1.7.0-r2","eol":null,"hubHref":null},{"vendor":"debian","product":"apr","name":"apr","label":"apr","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/apr","purlType":"deb","versions":[{"text":"< 1.7.0-7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.0-7","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"apr","name":"apr","label":"apr","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/apr","purlType":"deb","versions":[{"text":"< 1.5.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.5.2-3ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.7.0-6ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.0-1ubuntu0.1~esm1 | < 1.5.2-3ubuntu0.1~esm1 | < 1.7.0-6ubuntu1","eol":null,"hubHref":null},{"vendor":"mageia","product":"apr","name":"apr","label":"apr","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/apr","purlType":"rpm","versions":[{"text":"< 1.7.0-3.2.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.0-3.2.mga8","eol":null,"hubHref":null},{"vendor":"oracle","product":"http_server","name":"http server","label":"http_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"12.2.1.3.0","noFixRecorded":false,"fixedIn":null},{"text":"12.2.1.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"12.2.1.3.0 | 12.2.1.4.0","eol":null,"hubHref":"/vendor/oracle/http_server"},{"vendor":"opensuse","product":"apr&distro=openSUSE Tumbleweed","name":"apr","label":"apr&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/apr&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.7.0-4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.0-4.1","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://svn.apache.org/viewvc?view=revision&revision=1891198","label":"svn.apache.org/viewvc?view=revision&revision=1891198","hostname":"svn.apache.org","tags":["X Refsource MISC","REPORT","Vendor Advisory"]},{"url":"http://mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw%40mail.gmail.com%3E","label":"mail-archives.apache.org/mod_mbox/…","hostname":"mail-archives.apache.org","tags":["X Refsource MISC"]},{"url":"https://dist.apache.org/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch","label":"dist.apache.org/repos/dist/release/apr/patches/apr-1.7.0-CVE-2021-35940.patch","hostname":"dist.apache.org","tags":["X Refsource MISC","REPORT","Patch","Vendor Advisory"]},{"url":"https://lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e%40%3Cdev.apr.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["X Refsource MISC","REPORT","Mailing List","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/08/23/1","label":"www.openwall.com/lists/oss-security/2021/08/23/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","REPORT","Third Party Advisory"]},{"url":"https://lists.apache.org/thread.html/rb1f3c85f50fbd924a0051675118d1609e57957a02ece7facb723155b%40%3Cannounce.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.apr.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r7bb4a6ed88fc48152174e664aae30ea9a8b058eb5b44cf08cb9beb4b%40%3Cdev.httpd.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r72a069753b9363c29732e59ad8f0d22a633fb6a699980407511ac961%40%3Cdev.apr.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r317c398ee5736e627f7887b06607e5c58b45a696d352ba8c14615f55%40%3Cdev.apr.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/ra38094406cc38a05218ebd1158187feda021b0c3a1df400bbf296af8%40%3Cdev.apr.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r72479f4dcffaa8a4732d5a0e87fecc4bace4932e28fc26f7d400e2b3%40%3Cdev.tomcat.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r54c755c74b9e3846cfd84039b1967d37d2870750a02d7c603983f6ed%40%3Cdev.tomcat.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/rafe54755850e93de287c36540972457b2dd86332106aa7817c7c27fb%40%3Cdev.tomcat.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r1c788464a25fbc046a72aff451bc8186386315d92a2dd0349903fa4f%40%3Cdev.tomcat.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","label":"www.oracle.com/security-alerts/cpujul2022.html","hostname":"www.oracle.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-35940","label":"security.alpinelinux.org/vuln/CVE-2021-35940","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0428.html","label":"advisories.mageia.org/MGASA-2021-0428.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29400","label":"bugs.mageia.org/show_bug.cgi?id=29400","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2021/08/23/1","label":"www.openwall.com/lists/oss-security/2021/08/23/1","hostname":"www.openwall.com","tags":["WEB","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2021-35940","label":"ubuntu.com/security/CVE-2021-35940","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://mail-archives.apache.org/mod_mbox/www-announce/201710.mbox/%3CCACsi251B8UaLvM-rrH9fv57-zWi0zhyF3275_jPg1a9VEVVoxw@mail.gmail.com%3E","label":"mail-archives.apache.org/mod_mbox/…","hostname":"mail-archives.apache.org","tags":["REPORT"]},{"url":"https://lists.apache.org/thread.html/ra2868b53339a6af65577146ad87016368c138388b09bff9d2860f50e@%3Cdev.apr.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["REPORT"]},{"url":"https://lists.apache.org/thread.html/rb1f3c85f50fbd924a0051675118d1609e57957a02ece7facb723155b@%3Cannounce.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5056-1","label":"ubuntu.com/security/notices/USN-5056-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-35940","label":"www.cve.org/CVERecord?id=CVE-2021-35940","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-35940","label":"security-tracker.debian.org/tracker/CVE-2021-35940","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-35940","label":"www.suse.com/security/cve/CVE-2021-35940","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-08-23T10:00:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T00:40:47.582Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:55:19.551Z","stale":false,"partial":false}}