Integer overflow in the regcomp implementation in the Henry Spencer BSD regex library…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Partial Red Hat: 6 fixed, 4 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-190 and the CVSS impact.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 11
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rxspencer_project:rxspencer:3.8.g5:*:*:*:*:*:*:* | 3.8.g5 | Vulnerable | Rxspencer Project |
| cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:-:*:*:* | 10.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* | 12.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:* | 14.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:* | 15.04 | Vulnerable | Canonical |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:* | 13.1 | Vulnerable | openSUSE |
| cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:* | 13.2 | Vulnerable | openSUSE |
- cpe:2.3:a:rxspencer_project:rxspencer:3.8.g5:*:*:*:*:*:*:* Versions 3.8.g5 Vulnerable ·Rxspencer Project
- cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:-:*:*:* Versions 10.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* Versions 12.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:* Versions 14.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:* Versions 15.04 Vulnerable ·Canonical
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:* Versions 13.1 Vulnerable ·openSUSE
- cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:* Versions 13.2 Vulnerable ·openSUSE
Remediation
Red Hat 2 advisories
- RHSA-2015:1053 Released 2015-06-04 · Red Hat rating Moderatephp55 security and bug fix update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php55-2.0-1.el6, php55-php-5.5.21-2.el6, php55-php-bcmath-5.5.21-2.el6 +27
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php55-2.0-1.el7, php55-php-5.5.21-2.el7, php55-php-bcmath-5.5.21-2.el7 +25
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php55-2.0-1.el6, php55-php-5.5.21-2.el6, php55-php-bcmath-5.5.21-2.el6 +27
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php55-2.0-1.el6, php55-php-5.5.21-2.el6, php55-php-bcmath-5.5.21-2.el6 +27
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php55-2.0-1.el6, php55-php-5.5.21-2.el6, php55-php-bcmath-5.5.21-2.el6 +27
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php55-2.0-1.el7, php55-php-5.5.21-2.el7, php55-php-bcmath-5.5.21-2.el7 +25
- RHSA-2015:1066 Released 2015-06-04 · Red Hat rating Importantphp54 security and bug fix update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54-2.0-1.el6, php54-php-5.4.40-1.el6, php54-php-bcmath-5.4.40-1.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54-2.0-1.el7, php54-php-5.4.40-1.el7, php54-php-bcmath-5.4.40-1.el7 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54-2.0-1.el6, php54-php-5.4.40-1.el6, php54-php-bcmath-5.4.40-1.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54-2.0-1.el6, php54-php-5.4.40-1.el6, php54-php-bcmath-5.4.40-1.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54-2.0-1.el6, php54-php-5.4.40-1.el6, php54-php-bcmath-5.4.40-1.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54-2.0-1.el7, php54-php-5.4.40-1.el7, php54-php-bcmath-5.4.40-1.el7 +24
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix yet |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2015:1053, RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:1053, RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) | Fixed | RHSA-2015:1053, RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) | Fixed | RHSA-2015:1053, RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2015:1053, RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:1053, RHSA-2015:1066 |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2015-2305
- 2026-10-03 Alias added: GHSA-qcm7-3c5w-vhg7
References
Advisory 18
- DSA-3195
- [oss-security] 20150311 Re: CVE request: spencer regexp
- openSUSE-SU-2015:0644
- APPLE-SA-2015-09-30-3
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- SSRT102066
- http://php.net/ChangeLog-5.php
- SUSE-SU-2015:0868
- USN-2594-1
- https://support.apple.com/HT205267
- USN-2572-1
- http://blog.clamav.net/2015/04/clamav-0987-has-been-released.html
- SUSE-SU-2015:0946
- VU#695940
- openSUSE-SU-2015:0906
- [oss-security] 20150207 Spencer regexp heap overflow?
- RHSA-2015:1053
- RHSA-2015:1066
Sources
- CVE-2015-2305 · CVE Program
- CVE-2015-2305 · NVD
- FIRST EPSS
- GHSA-qcm7-3c5w-vhg7 · GitHub Advisory Database · CC BY 4.0
- CVE-2015-2305 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences