Cloudanix VulnDB

CVE-2016-1951

High · 8.6

CVSS

8.6

EPSS

3.1%

Published

Aug 7, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in a widely used supporting library can let attackers crash programs or potentially take them over by feeding them specially crafted long text.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflows in PR_*printf functions within io/prprf.c allow a long input string to trigger a buffer overflow, enabling denial of service or potential memory corruption.

Why it matters to the business

Applications relying on NSPR may crash or become unstable under remote attack, leading to service outages and possible compromise of systems handling untrusted network data; the issue remains relevant in legacy environments despite its age and modest exploitation probability.

How an attack unfolds

An attacker identifies a target application that invokes vulnerable PR_*printf functions with attacker-controlled input, then supplies an excessively long string that triggers the integer overflow and subsequent buffer overflow, resulting in a crash or potential code execution.

How to fix it

Upgrade Mozilla NSPR to version 4.12 or later; rebuild and redeploy all dependent applications; apply vendor patches or replace affected components where upgrades are unavailable.

How to confirm the fix worked

Confirm NSPR library version is 4.12 or newer via package manager or binary inspection; recompile applications against the fixed library and perform functional testing of printf-related code paths.

Typical attack path

  1. Locate services or binaries linked against vulnerable NSPR versions
  2. Craft a long string payload targeting a PR_*printf call site
  3. Deliver the payload over the network or via local input channels
  4. Trigger the overflow to induce denial of service or attempt memory corruption

How to detect it

Review application and system logs for segmentation faults or abnormal termination of processes linked to NSPR; correlate with inbound network traffic containing unusually long strings directed at formatting functions.

What your security team should do

  • Prioritize inventory of all systems using NSPR and schedule upgrades within maintenance windows
  • Monitor EPSS trend for any further increase in exploitation likelihood
  • Implement input length validation around string formatting calls as a defense-in-depth measure
  • Review logs for unexpected process crashes in NSPR-linked applications

The record

Multiple integer overflows in io/prprf.c in Mozilla Netscape Portable Runtime (NSPR) before 4.12 allow remote attackers to cause a denial of service (buffer overflow) or possibly have unspecified other impact via a long string to a PR_*printf function.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 firefox-esr 0 45.0esr-1
Debian:11 nspr 0 2:4.12-1
Debian:12 firefox-esr 0 45.0esr-1
Debian:12 nspr 0 2:4.12-1
Debian:13 firefox-esr 0 45.0esr-1
Debian:13 nspr 0 2:4.12-1
Debian:7 nspr 0 2:4.9.2-1+deb7u4
Debian:8 nspr 0 2:4.12-1+debu8u1
Ubuntu:14.04:LTS firefox 0 47.0+build3-0ubuntu0.14.04.1
Ubuntu:14.04:LTS nspr 0 2:4.12-0ubuntu0.14.04.1
Ubuntu:14.04:LTS thunderbird 0 1:45.2.0+build1-0ubuntu0.14.04.3
Ubuntu:16.04:LTS firefox 0 47.0+build3-0ubuntu0.16.04.1
Ubuntu:16.04:LTS nspr 0 2:4.12-0ubuntu0.16.04.1
Ubuntu:16.04:LTS thunderbird 0 1:45.2.0+build1-0ubuntu0.16.04.1

Related vulnerabilities