FedoraOperating system · Fedoraproject

CVE-2015-8386

CRITICAL · 9.8 CVSS v3.1 Published 2015-12-02
Fix available
A fix is available. Upgrade to 5.5.32 / 5.6.18 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
PCRE before 8.38 mishandles the interaction of lookbehind assertions and mutually recursive subpatterns, which allows remote attackers to cause a denial of service (buffer overflow) or possibly have unspecified other impact via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

PCRE library before version 8.38 contains a buffer overflow vulnerability when processing regular expressions that combine lookbehind assertions with mutually recursive subpatterns. Attackers can exploit this by providing crafted RegExp objects (as demonstrated in Konqueror) to cause denial of service or potentially achieve arbitrary code execution.

MitigationUpgrade PCRE library to version 8.38 or later across all affected systems. Identify and recompile any applications that link against the PCRE library to ensure they use the patched version.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FedoraOperating system
Affected:= 22
LinuxOperating system
Affected:= 7
PHPApplication
Affected:>= 5.5.0, < 5.5.32>= 5.6.0, < 5.6.18>= 7.0.0, < 7.0.3
Perl Compatible Regular Expression LibraryApplication
Affected:<= 8.37

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the installed PCRE library version
    Run `pcre-config --version` or check the libpcre version file in `/usr/include/pcre.h` (look for PCRE_MAJOR and PCRE_MINOR macros)
    Affected if Version is 8.37 or earlier, or version cannot be determined and the library file modification date predates the 8.38 release (November 2015)
  2. Identify PHP version if in use
    Run `php -v` or check `phpinfo()` output to determine the PHP branch and exact version number
    Affected if PHP version is 5.5.0 through 5.5.31, 5.6.0 through 5.6.17, or 7.0.0 through 7.0.2
  3. Check the operating system distribution and version
    Run `cat /etc/fedora-release` for Fedora or `cat /etc/oracle-release` or `cat /etc/redhat-release` for Oracle Linux
    Affected if Running Fedora 22 or Oracle Linux 7 with the vulnerable PCRE version still present
  4. Identify applications statically linked to PCRE
    Run `ldd` on binary executables that process regular expressions (such as PHP, Apache with mod_php, or custom applications) and check if they link against a system PCRE library; for statically linked binaries, use `strings binary | grep -i pcre` or examine build configuration
    Affected if The application uses a PCRE library version 8.37 or earlier regardless of system PCRE version
  5. Verify if regex patterns with lookbehind assertions and recursive subpatterns are processed
    Review application code, configuration files, or user inputs that could provide regular expressions to the PCRE engine; specifically look for patterns using (?<=...) or (?<!...) followed by recursive pattern references like (?1) or (?R)
    Affected if The environment processes any regex patterns that combine lookbehind assertions with mutually recursive subpatterns, as this triggers the vulnerable code path

A system is affected if it runs PCRE version 8.37 or earlier, or PHP versions 5.5.0-5.5.31, 5.6.0-5.6.17, or 7.0.0-7.0.2, or is Fedora 22/Oracle Linux 7 with the vulnerable PCRE version present and processes regex patterns with lookbehind combined with recursive subpatterns.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 5.5.32 / 5.6.18 / 7.0.3 or later
Fixed in 5.5.325.6.187.0.3
Interim mitigation

Upgrade PCRE library to version 8.38 or later across all affected systems. Identify and recompile any applications that link against the PCRE library to ensure they use the patched version.

Recommended fix High confidence

PCRE 8.38+ or PHP 5.5.32+/5.6.18+/7.0.3+ (depending on which product uses the vulnerable PCRE)

  1. If using PCRE directly, upgrade PCRE to version 8.38 or later
  2. For PHP 5.5.x: upgrade to PHP 5.5.32 or later which includes fixed PCRE
  3. For PHP 5.6.x: upgrade to PHP 5.6.18 or later which includes fixed PCRE
  4. For PHP 7.0.x: upgrade to PHP 7.0.3 or later which includes fixed PCRE
  5. For Fedora 22 systems: apply available system updates or upgrade to a newer Fedora version
  6. For RHEL/CentOS Linux 7: apply vendor security updates via yum update
Caveat PHP version upgrades may introduce compatibility changes; test application code before deploying to production

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Fedora Scoped from the published advisory
  • Consultation4.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
16.0 hours of engineering $2,840
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,544.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2015-8386 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2015-8386 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data