Advisory

USN-7112-1

Also known as: CVE-2021-40812

Summary

libgd2 vulnerability

Details

It was discovered that the GD Graphics Library did not perform proper
bounds checking while handling BMP and WebP files. If a user were tricked
into opening a specially crafted file, an attacker could possibly use
this issue to cause a denial of service (application crash).

Severity

Not rated by the source.

Dates

Published
2024-11-15 01:44 UTC
Modified
2026-06-25 13:32 UTC

Affected packages and fixes

libgd2

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.2.5-5.2ubuntu2.4 (ecosystem)

Fixed versions

2.2.5-5.2ubuntu2.4

Fix

  • Fixed version 2.2.5-5.2ubuntu2.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libgd2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.3.0-2ubuntu2.3 (ecosystem)

Fixed versions

2.3.0-2ubuntu2.3

Fix

  • Fixed version 2.3.0-2ubuntu2.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences