# CVE-2016-1950: Memory corruption in n/a

> Remote attackers can execute arbitrary code via crafted ASN.1 data in X.509 certificates due to a heap-based buffer overflow in the NSS library.

- **Severity:** High 8.8 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 13 Mar 2016
- **Updated:** 5 Aug 2024
- **Also known as:** DEBIAN-CVE-2016-1950, GHSA-8cv9-944x-284m, MGASA-2016-0114, RHSA-2016:0370, RHSA-2016:0371, RHSA-2016:0495, UBUNTU-CVE-2016-1950, USN-2924-1

## What is CVE-2016-1950?

CVE-2016-1950 is a high-severity memory corruption vulnerability in Apple Iphone Os, published on 13 Mar 2016. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Heap-based buffer overflow in Mozilla Network Security Services (NSS) before 3.19.2.3 and 3.20.x and 3.21.x before 3.21.1, as used in Mozilla Firefox before 45.0 and Firefox ESR 38.x before 38.7, allows remote attackers to execute arbitrary code via crafted ASN.1 data in an X.509 certificate.

Weakness: CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer)

## Which versions are affected by CVE-2016-1950?

It affects 12 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `nss` | Red Hat:enterprise_linux:5::client | All versions | 0:3.19.1-4.el5_11 |
| `nss-debuginfo` | Red Hat:enterprise_linux:5::client | All versions | 0:3.19.1-4.el5_11 |
| `nss-tools` | Red Hat:enterprise_linux:5::client | All versions | 0:3.19.1-4.el5_11 |
| `nss` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:3.19.1-4.el5_11 |
| `nss-debuginfo` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:3.19.1-4.el5_11 |
| `nss-devel` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:3.19.1-4.el5_11 |
| `nss-pkcs11-devel` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:3.19.1-4.el5_11 |
| `nss` | Red Hat:enterprise_linux:5::server | All versions | 0:3.19.1-4.el5_11 |
| `nss-debuginfo` | Red Hat:enterprise_linux:5::server | All versions | 0:3.19.1-4.el5_11 |
| `nss-devel` | Red Hat:enterprise_linux:5::server | All versions | 0:3.19.1-4.el5_11 |
| `nss-pkcs11-devel` | Red Hat:enterprise_linux:5::server | All versions | 0:3.19.1-4.el5_11 |
| `nss-tools` | Red Hat:enterprise_linux:5::server | All versions | 0:3.19.1-4.el5_11 |
| `nss-util` | Red Hat:enterprise_linux:6::client | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:6::client | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-devel` | Red Hat:enterprise_linux:6::client | All versions | 0:3.19.1-5.el6_7 |
| `nss-util` | Red Hat:enterprise_linux:6::computenode | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:6::computenode | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-devel` | Red Hat:enterprise_linux:6::computenode | All versions | 0:3.19.1-5.el6_7 |
| `nss-util` | Red Hat:enterprise_linux:6::server | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:6::server | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-devel` | Red Hat:enterprise_linux:6::server | All versions | 0:3.19.1-5.el6_7 |
| `nss-util` | Red Hat:enterprise_linux:6::workstation | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:6::workstation | All versions | 0:3.19.1-5.el6_7 |
| `nss-util-devel` | Red Hat:enterprise_linux:6::workstation | All versions | 0:3.19.1-5.el6_7 |
| `nss-util` | Red Hat:enterprise_linux:7::client | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:7::client | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-devel` | Red Hat:enterprise_linux:7::client | All versions | 0:3.19.1-9.el7_2 |
| `nss-util` | Red Hat:enterprise_linux:7::computenode | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:7::computenode | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-devel` | Red Hat:enterprise_linux:7::computenode | All versions | 0:3.19.1-9.el7_2 |
| `nss-util` | Red Hat:enterprise_linux:7::server | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:7::server | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-devel` | Red Hat:enterprise_linux:7::server | All versions | 0:3.19.1-9.el7_2 |
| `nss-util` | Red Hat:enterprise_linux:7::workstation | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-debuginfo` | Red Hat:enterprise_linux:7::workstation | All versions | 0:3.19.1-9.el7_2 |
| `nss-util-devel` | Red Hat:enterprise_linux:7::workstation | All versions | 0:3.19.1-9.el7_2 |
| `nss-util` | Red Hat:rhel_aus:6.4::server | All versions | 0:3.14.3-8.el6_4 |
| `nss-util-debuginfo` | Red Hat:rhel_aus:6.4::server | All versions | 0:3.14.3-8.el6_4 |
| `nss-util-devel` | Red Hat:rhel_aus:6.4::server | All versions | 0:3.14.3-8.el6_4 |
| `nss-util` | Red Hat:rhel_aus:6.5::server | All versions | 0:3.16.1-4.el6_5 |

Products: Apple Iphone Os, Apple Mac Os X, Apple Tvos, Apple Watchos, Mozilla Firefox, Mozilla Network Security Services, Opensuse Opensuse, Oracle Glassfish Server, Oracle Iplanet Web Proxy Server, Oracle Iplanet Web Server, Oracle Linux, Oracle Vm Server.

## How do I fix CVE-2016-1950?

Upgrade to a fixed version.

## Is CVE-2016-1950 being exploited?

There is no known exploitation of CVE-2016-1950 in the wild and no public exploit code.

## Other vulnerabilities in Apple Iphone Os

- [CVE-2021-30666](https://insights.sbomify.com/CVE-2021-30666/): Apple iOS WebKit Buffer Overflow (high 8.8, exploited in the wild)
- [CVE-2021-30761](https://insights.sbomify.com/CVE-2021-30761/): Apple iOS WebKit Memory Corruption (high 8.8, exploited in the wild)
- [CVE-2021-30762](https://insights.sbomify.com/CVE-2021-30762/): Apple iOS WebKit Use-After-Free (high 8.8, exploited in the wild)
- [CVE-2016-4657](https://insights.sbomify.com/CVE-2016-4657/): Apple iOS Webkit Memory Corruption (high 8.8, exploited in the wild)
- [CVE-2019-7286](https://insights.sbomify.com/CVE-2019-7286/): Apple Multiple Products Memory Corruption (high 7.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2016-1950 and fix it if it is affected.

What it is: CVE-2016-1950 is a high-severity memory corruption vulnerability in Apple Iphone Os, published on 13 Mar 2016. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2016-1950 in the wild and no public exploit code.

Affected product: Apple Iphone Os. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2016-1950/ (Markdown: https://insights.sbomify.com/CVE-2016-1950/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2016-1950
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2016-1950
- OSV: https://osv.dev/vulnerability/CVE-2016-1950

---
From sbomify Insights: https://insights.sbomify.com/CVE-2016-1950/
Summaries are generated and may contain mistakes; the official description above is the record.
