Skip to content
Heist/ feed
Back to feed
HighFix available

grub2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2025-0624

A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections.

Products
grub2
Affected versions
2.06-13, 2.06-13+deb12u1
Fixed versions
2.06-13+deb12u2, 2.12-6
CVEs
CVE-2025-0624
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 09:03 UTC · Revision 1

Source evidence

DEBIAN-CVE-2025-0624

core-osv · Original source

Published 19 Feb 2025, 19:15 UTC

A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections.

osv:DEBIAN-CVE-2025-0624

grub2

Fixed versions: 2.06-13+deb12u2

grub2

Fixed versions: 2.12-6

grub2

Fixed versions: 2.12-6

Complete source record
{
  "id": "c7d211a19a8d65f4b00707c0e1153031c8caca6abba6f656dd75ada1e6038633",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-0624",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2025-0624",
    "summary": "A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections.",
    "evidence": "osv:DEBIAN-CVE-2025-0624",
    "products": [
      {
        "name": {
          "value": "grub2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.06-13+deb12u2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.06-13",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.06-13+deb12u1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "grub2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.12-6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "grub2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.12-6",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2025-0624",
      "aliases": [
        "DEBIAN-CVE-2025-0624"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.06-13+deb12u2"
                }
              ]
            }
          ],
          "package": {
            "name": "grub2",
            "purl": "pkg:deb/debian/grub2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.06-13",
            "2.06-13+deb12u1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-0624.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.12-6"
                }
              ]
            }
          ],
          "package": {
            "name": "grub2",
            "purl": "pkg:deb/debian/grub2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-0624.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.12-6"
                }
              ]
            }
          ],
          "package": {
            "name": "grub2",
            "purl": "pkg:deb/debian/grub2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-0624.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-13T09:47:44.429784301Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-0624"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2025-0624"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-0624",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 307596,
  "published_at": "2025-02-19T19:15:15.12+00:00"
}