---
title: "CVE-2016-2512\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-2512?format=md
keywords: index, follow
---

# CVE-2016-2512

Publication date 1 March 2016

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.4 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2016-2512?format=md#impact-score)

Toggle side navigation

## Description

The utils.http.is\_safe\_url function in Django before 1.8.10 and 1.9.x
before 1.9.3 allows remote attackers to redirect users to arbitrary web
sites and conduct phishing attacks or possibly conduct cross-site scripting
(XSS) attacks via a URL containing basic authentication, as demonstrated by
http://mysite.example.com\@attacker.com.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2016-2512?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python-django | 15.10 wily | Fixed 1.7.9-1ubuntu5.2 |
| 14.04 LTS trusty | Fixed 1.6.1-2ubuntu0.12 |
| 12.04 LTS precise | Fixed 1.3.1-4ubuntu1.20 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

patch introduced a regression:
https://bugs.launchpad.net/ubuntu/+source/python-django/+bug/1553251
https://code.djangoproject.com/ticket/26308
https://github.com/django/django/commit/ada7a4aefb9bec4c34667b511022be6057102f98
https://github.com/django/django/commit/552f03869ea7f3072b3fa19ffb6cb2d957fd8447

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.4 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Changed |
  | Confidentiality impact | None |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.4 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2512)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-2512)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-2512)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-2512)

### Related Ubuntu Security Notices (USN)

+ [USN-2915-1](https://usn.ubuntu.com/USN-2915-1)
+ Django vulnerabilities
+ 1 March 2016

### Other references

* <https://www.djangoproject.com/weblog/2016/mar/01/security-releases/>
* <https://www.cve.org/CVERecord?id=CVE-2016-2512>
