CVE-2021-35940
Linux Debian vulnerability analysis and mitigation

Overview

An out-of-bounds array read vulnerability (CVE-2021-35940) was identified in the apr_time_exp*() functions of Apache Portable Runtime (APR). This vulnerability is particularly notable as it represents a regression of a previously fixed issue (CVE-2017-12613) that was addressed in APR version 1.6.3. The fix was not properly carried forward to the APR 1.7.x branch, making version 1.7.0 vulnerable to the same issue (CVE Mitre, OSS Security).

Technical details

The vulnerability specifically affects the apr_time_exp*() functions in the Apache Portable Runtime. The issue manifests as an out-of-bounds array read, which was initially fixed in version 1.6.3 but regressed in version 1.7.0 due to the fix not being properly ported to the 1.7.x branch. The vulnerability requires validation of array bounds in time-related functions (Apache Patch).

Impact

The vulnerability could potentially lead to information disclosure through out-of-bounds array reads in time-related functions. This could affect applications using the Apache Portable Runtime library for time calculations and manipulations (Debian Security).

Mitigation and workarounds

The primary mitigation is to upgrade to a patched version of APR. A patch has been released to address this vulnerability, and it has been backported to affected versions. For version 1.7.0, a specific patch (apr-1.7.0-CVE-2021-35940.patch) is available to address this issue (Apache Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • tar
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • pyasn1
NoYesJan 16, 2026
CVE-2026-23643MEDIUM5.4
  • CakePHPCakePHP
  • cakephp
NoYesJan 16, 2026
CVE-2025-61873LOW2.6
  • Linux DebianLinux Debian
  • request-tracker4
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management