Skip to content
Memory corruption Write-up Advanced

CVE-2014-6273: Buffer overflow vulnerability vulnerability in apt-get

The HTTP transport code in apt-get contained a buffer overflow. An attacker who could man-in-the-middle an HTTP request to an apt repository could trigger the overflow, crashing the http apt method binary or potentially achieving arbitrary code execution.

lists.debian.org

Published on lists.debian.org

The Google Security Team discovered a buffer overflow vulnerability in the HTTP transport code in apt-get. An attacker able to man-in-the-middle a HTTP request to an apt repository can trigger the buffer overflow, leading to a crash of the 'http' apt method binary, or potentially to arbitrary code execution.

The author, on lists.debian.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing or incorrect length check when parsing data in apt-get's HTTP transport code, allowing a buffer overflow.

Impact

An attacker able to man-in-the-middle an HTTP request to an apt repository could crash the http apt method binary or potentially achieve arbitrary code execution.

What the attacker needed

Attacker can man-in-the-middle HTTP traffic; apt repository accessed over HTTP

The fix

The problem was fixed in apt version 0.9.7.9+deb7u5 for the stable distribution, and users were advised to upgrade.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A buffer overflow is when a program writes more data into a fixed-size memory area than it can hold, which can crash it or let an attacker run their own code. Here, the program that downloads packages over plain HTTP (apt-get) had this flaw, so someone sitting on the network path between you and the package server could exploit it. The advisory says the result could be a crash or, worse, code execution.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.