Skip to content
Fencer Intel
medium 6.8

CVE-2015-2305 json

Integer overflow in the regcomp implementation in the Henry Spencer BSD regex library (aka rxspencer) alpha3.8.g5 on 32-bit platforms, as u…

published 11y ago modified 4mo ago also EUVD-2015-2402

cvss
6.8
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
8.9%
EPSS 8.9% chance of exploitation in 30 days, percentile 95%
public exploits
0
none known

Summary

Integer overflow in the regcomp implementation in the Henry Spencer BSD regex library (aka rxspencer) alpha3.8.g5 on 32-bit platforms, as used in NetBSD through 6.1.5 and other products, might allow context-dependent attackers to execute arbitrary code via a large regular expression that leads to a heap-based buffer overflow.

Patch / fix

  • php php 5.4.39, 5.5.23, 5.6.7
  • nvi Debian 14, Debian 13, Debian 12 1.81.6-13
  • vigor Debian 14, Debian 13, Debian 12 0.016-24
  • clamav Debian 14, Debian 13, Debian 12 0.98.7+dfsg-1
  • newlib Debian 14, Debian 13, Debian 12 2.0.0-1
  • librcsb-core-wrapper Debian 14, Debian 13, Debian 12 1.005-3

debian advisories DEBIAN-CVE-2015-2305

  • php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.9
  • vigor Ubuntu 14.04 LTS 0.016-24build0.14.04.1
  • clamav Ubuntu 14.04 LTS 0.98.7+dfsg-0ubuntu0.14.04.1

ubuntu advisories UBUNTU-CVE-2015-2305

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

  • php54 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el6
  • php54 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el7
  • php54-php RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
  • php54-php RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
  • php54-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
  • php54-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
  • php54-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
  • php54-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7

red hat advisories RHSA-2015:1066RHSA-2015:1053

  • clamav SLES 12, SLED 12, SLES for SAP 12 0.98.7-13.1
  • php5 SLE Software Development Kit 12, SLE Module for Web and Scripting 12 5.5.14-22.1
  • php53 SLES 11 SP2-LTSS 5.3.17-47.1

suse advisories SUSE-SU-2016:1638-1SUSE-SU-2015:0882-1SUSE-SU-2015:0882-2SUSE-SU-2015:0868-1

  • php7 openSUSE Tumbleweed 7.0.14-1.4
  • php5 openSUSE Tumbleweed 5.6.28-1.1
  • clamav openSUSE Tumbleweed 0.99.2-4.1

opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1openSUSE-SU-2024:10571-1

Is CVE-2015-2305 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-2015-2305 updated cvss 5.1

regex: heap overflow in regcomp() on 32-bit architectures

  • Red Hat Enterprise Linux 5 php, mysql, php53, mysql51-mysql, mysql55-mysql Red Hat Enterprise Linux 6 php, mysql, php-gd, php-cli, php-dba, php-fpm, +26 more Red Hat Enterprise Linux 7 php, php-gd, mariadb, php-cli, php-dba, php-fpm, +24 more
    affected: no fix planned “Will not fix”
  • Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, mysql55-mysql, php54-php-cli, +62 more
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54 2.0-1.el7, php55 2.0-1.el7, php54-php 5.4.40-1.el7, php55-php 5.5.21-2.el7, php54-runtime 2.0-1.el7, php55-runtime 2.0-1.el7, +47 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54 2.0-1.el7, php55 2.0-1.el7, php54-php 5.4.40-1.el7, php55-php 5.5.21-2.el7, php54-runtime 2.0-1.el7, php55-runtime 2.0-1.el7, +47 more
    fixed: vendor fix RHSA-2015:1066
  • Red Hat Enterprise Linux 6 mesa-private-llvm Red Hat Enterprise Linux 7 mesa-private-llvm Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 more
    not affected: vulnerable code not present

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

Exploit prediction

8.88% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • guidovranken.wordpress.com https://guidovranken.wordpress.com/2015/02/04/full-disclosure-heap-overflow-in-h-spencers-regex-library-on-32-bit-systems/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound
Technology feeds

References

Sources

Fencer Intel 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.