Back to CVE catalog
CVE-2012-0840

Hash value computation in APR allows collisions

Multiple products

At a glance

tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityNone
IntegrityNone
AvailabilityPartial

CVSS summary v2.0

5.0Medium
Published:
Updated:
EPSS:
42.138%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:Apacheportable runtimeAffected versions:
≤ 1.4.5Show full version range for portable runtime
0.9.10.9.16-dev0.9.20.9.2-dev0.9.30.9.3-dev0.9.40.9.50.9.60.9.70.9.7-dev0.9.80.9.91.3.01.3.11.3.101.3.111.3.121.3.131.3.21.3.31.3.41.3.4-dev1.3.51.3.61.3.6-dev1.3.71.3.81.3.91.4.01.4.11.4.21.4.31.4.4
Vendor:redhatapr
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for apr
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatapr-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for apr-devel
  • Other versions are affected by default; consult the source for exceptions.
Vendor:Debianlibapr1
Environments (4)
  • bookworm
  • forky
  • sid
  • trixie
Affected versions:
< 1.4.6-1
Vendor:Debianlibapr1-dbg
Environments (4)
  • bookworm
  • forky
  • sid
  • trixie
Affected versions:
< 1.4.6-1
Vendor:Debianlibapr1-dev
Environments (4)
  • bookworm
  • forky
  • sid
  • trixie
Affected versions:
< 1.4.6-1
Vendor:Red HatRed Hat Enterprise Linux 4Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 5Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 6Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat JBoss Enterprise Web Server 1Affected versions:Source does not specify a version range

1–10 of 10 · Page 1 of 1

CVSS scores and metrics4
[email protected] · NVD (Primary)Primary5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
None
Integrity
None
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:N/I:N/A:P
nvd · Wazuh CTI (cna)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
None
Integrity
None
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:N/I:N/A:P
redhat · Wazuh CTI (adp)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
None
Integrity
None
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:N/I:N/A:P
Red Hat · Red Hat VEX (adp)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
None
Integrity
None
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories17

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences