CVE-2009-1358

apt-get in apt before 0.7.21 does not check for the correct error code from gpgv, which causes apt to treat a repository as valid even when it has been signed…

published April 21, 2009

CVSS
—
EPSS
4%
Percentile
91.4
In the wild
Unconfirmed
What it is

⚠️ Beware of the trap! Older versions of apt-get don't verify GPG keys correctly, meaning a revoked key can still trick you into accepting malicious repositories. 🚨 Think of it like a restaurant that keeps accepting expired coupons. Just because the waiter didn’t check the dates doesn’t mean you’re getting a valid deal. In this case, the apt system is the restaurant, and the coupon is the GPG key that should have been checked! An attacker could exploit this oversight to have you install software from a falsely validated repository, which could introduce malware or other unwanted changes to your system. This could lead to compromised data or even full system takeovers, depending on what the malicious repository serves up!

Put simply

Think of it like a restaurant that keeps accepting expired coupons. Just because the waiter didn’t check the dates doesn’t mean you’re getting a valid deal. In this case, the apt system is the restaurant, and the coupon is the GPG key that should have been checked! This vulnerability in apt versions before 0.7.21 fails to check for the correct error code from gpgv, allowing it to mistakenly treat a repository as trustworthy even with a revoked or expired signing key.

What to do

An attacker could exploit this oversight to have you install software from a falsely validated repository, which could introduce malware or other unwanted changes to your system. This could lead to compromised data or even full system takeovers, depending on what the malicious repository serves up! To safeguard your system, upgrade to apt version 0.7.21 or later immediately. Regularly audit your repository keys and ensure that you're using trustworthy sources for package installations to maintain a secure environment! You've got this! With a quick update, you're one step closer to making your system safer than ever! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04481 · 91.4th percentile
Published
2009-04-21T23:00Z
EPSS history
Timeline
  • 21 APR 23:00Z
    apt-get in apt before 0.7.21 does not check for the correct error code from gpgv, which causes apt to treat a repository as valid even when it has been signed…
    cvelistv5