ubuntu-cve-2025-13601
Vulnerability from osv_ubuntu
Published
2025-11-26 15:15
Modified
2026-04-22 07:53
Summary
Details

A heap-based buffer overflow problem was found in glib through an incorrect calculation of buffer size in the g_escape_uri_string() function. If the string to escape contains a very large number of unacceptable characters (which would need escaping), the calculation of the length of the escaped string could overflow, leading to a potential write off the end of the newly allocated string.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libglib2.0-0",
            "binary_version": "2.40.2-0ubuntu1.1+esm7"
          },
          {
            "binary_name": "libglib2.0-0-refdbg",
            "binary_version": "2.40.2-0ubuntu1.1+esm7"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.40.2-0ubuntu1.1+esm7"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.40.2-0ubuntu1.1+esm7"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.40.2-0ubuntu1.1+esm7"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.40.2-0ubuntu1.1+esm7?arch=source\u0026distro=esm-infra-legacy/trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.40.2-0ubuntu1.1+esm7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.38.0-1ubuntu1",
        "2.38.1-1",
        "2.39.1-0ubuntu1",
        "2.39.1-0ubuntu2",
        "2.39.1-0ubuntu3",
        "2.39.2-0ubuntu1",
        "2.39.2-0ubuntu2",
        "2.39.3-0ubuntu4",
        "2.39.4-0ubuntu1",
        "2.39.90-0ubuntu1",
        "2.39.91-0ubuntu2",
        "2.39.91-0ubuntu3",
        "2.39.92-2",
        "2.40.0-1",
        "2.40.0-1ubuntu1",
        "2.40.0-2",
        "2.40.2-0ubuntu1",
        "2.40.2-0ubuntu1.1",
        "2.40.2-0ubuntu1.1+esm1",
        "2.40.2-0ubuntu1.1+esm2",
        "2.40.2-0ubuntu1.1+esm3",
        "2.40.2-0ubuntu1.1+esm4",
        "2.40.2-0ubuntu1.1+esm6"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libglib2.0-0",
            "binary_version": "2.48.2-0ubuntu4.8+esm5"
          },
          {
            "binary_name": "libglib2.0-0-refdbg",
            "binary_version": "2.48.2-0ubuntu4.8+esm5"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.48.2-0ubuntu4.8+esm5"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.48.2-0ubuntu4.8+esm5"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.48.2-0ubuntu4.8+esm5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.48.2-0ubuntu4.8+esm5?arch=source\u0026distro=esm-infra/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.48.2-0ubuntu4.8+esm5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.46.1-1",
        "2.46.1-2",
        "2.47.1-1",
        "2.47.3-3",
        "2.47.4-1",
        "2.47.5-1",
        "2.47.6-1",
        "2.48.0-1ubuntu3",
        "2.48.0-1ubuntu4",
        "2.48.1-1~ubuntu16.04.1",
        "2.48.2-0ubuntu1",
        "2.48.2-0ubuntu3",
        "2.48.2-0ubuntu4",
        "2.48.2-0ubuntu4.1",
        "2.48.2-0ubuntu4.2",
        "2.48.2-0ubuntu4.3",
        "2.48.2-0ubuntu4.4",
        "2.48.2-0ubuntu4.5",
        "2.48.2-0ubuntu4.6",
        "2.48.2-0ubuntu4.7",
        "2.48.2-0ubuntu4.8",
        "2.48.2-0ubuntu4.8+esm1",
        "2.48.2-0ubuntu4.8+esm3",
        "2.48.2-0ubuntu4.8+esm4"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libglib2.0-0",
            "binary_version": "2.56.4-0ubuntu0.18.04.9+esm5"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.56.4-0ubuntu0.18.04.9+esm5"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.56.4-0ubuntu0.18.04.9+esm5"
          },
          {
            "binary_name": "libglib2.0-dev-bin",
            "binary_version": "2.56.4-0ubuntu0.18.04.9+esm5"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.56.4-0ubuntu0.18.04.9+esm5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.56.4-0ubuntu0.18.04.9+esm5?arch=source\u0026distro=esm-infra/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.56.4-0ubuntu0.18.04.9+esm5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.54.1-1ubuntu1",
        "2.55.2-2ubuntu1",
        "2.56.0-2ubuntu1",
        "2.56.0-4ubuntu1",
        "2.56.1-2ubuntu1",
        "2.56.2-0ubuntu0.18.04.1",
        "2.56.2-0ubuntu0.18.04.2",
        "2.56.3-0ubuntu0.18.04.1",
        "2.56.4-0ubuntu0.18.04.2",
        "2.56.4-0ubuntu0.18.04.3",
        "2.56.4-0ubuntu0.18.04.4",
        "2.56.4-0ubuntu0.18.04.5",
        "2.56.4-0ubuntu0.18.04.6",
        "2.56.4-0ubuntu0.18.04.7",
        "2.56.4-0ubuntu0.18.04.8",
        "2.56.4-0ubuntu0.18.04.9",
        "2.56.4-0ubuntu0.18.04.9+esm3",
        "2.56.4-0ubuntu0.18.04.9+esm4"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libglib2.0-0",
            "binary_version": "2.64.6-1~ubuntu20.04.9+esm1"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.64.6-1~ubuntu20.04.9+esm1"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.64.6-1~ubuntu20.04.9+esm1"
          },
          {
            "binary_name": "libglib2.0-dev-bin",
            "binary_version": "2.64.6-1~ubuntu20.04.9+esm1"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.64.6-1~ubuntu20.04.9+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.64.6-1~ubuntu20.04.9+esm1?arch=source\u0026distro=esm-infra/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.64.6-1~ubuntu20.04.9+esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.62.1-1",
        "2.63.1-2",
        "2.63.1-2ubuntu1",
        "2.63.3-1",
        "2.63.3-3",
        "2.63.5-2",
        "2.64.0-1",
        "2.64.1-1",
        "2.64.2-1~fakesync1",
        "2.64.3-1~ubuntu20.04.1",
        "2.64.6-1~ubuntu20.04.1",
        "2.64.6-1~ubuntu20.04.2",
        "2.64.6-1~ubuntu20.04.3",
        "2.64.6-1~ubuntu20.04.4",
        "2.64.6-1~ubuntu20.04.6",
        "2.64.6-1~ubuntu20.04.7",
        "2.64.6-1~ubuntu20.04.8",
        "2.64.6-1~ubuntu20.04.9"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libglib2.0-0",
            "binary_version": "2.72.4-0ubuntu2.7"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.72.4-0ubuntu2.7"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.72.4-0ubuntu2.7"
          },
          {
            "binary_name": "libglib2.0-dev-bin",
            "binary_version": "2.72.4-0ubuntu2.7"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.72.4-0ubuntu2.7"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.72.4-0ubuntu2.7?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.72.4-0ubuntu2.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.68.4-1ubuntu1",
        "2.70.1-1",
        "2.70.2-1",
        "2.71.0-2",
        "2.71.1-1",
        "2.71.2-1",
        "2.71.3-1",
        "2.72.0-1",
        "2.72.1-1",
        "2.72.4-0ubuntu1",
        "2.72.4-0ubuntu2",
        "2.72.4-0ubuntu2.2",
        "2.72.4-0ubuntu2.3",
        "2.72.4-0ubuntu2.4",
        "2.72.4-0ubuntu2.5",
        "2.72.4-0ubuntu2.6"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "gir1.2-girepository-3.0",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "gir1.2-glib-2.0",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "libgirepository-2.0-0",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "libglib2.0-0t64",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "libglib2.0-dev-bin",
            "binary_version": "2.80.0-6ubuntu3.6"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.80.0-6ubuntu3.6"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.80.0-6ubuntu3.6?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.80.0-6ubuntu3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.78.0-2",
        "2.78.1-4",
        "2.78.3-1",
        "2.78.3-2",
        "2.79.1-1",
        "2.79.2-1~ubuntu1",
        "2.79.3-3ubuntu5",
        "2.80.0-6ubuntu1",
        "2.80.0-6ubuntu3",
        "2.80.0-6ubuntu3.1",
        "2.80.0-6ubuntu3.2",
        "2.80.0-6ubuntu3.4",
        "2.80.0-6ubuntu3.5"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "gir1.2-girepository-3.0",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "gir1.2-glib-2.0",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "girepository-tools",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libgio-2.0-dev-bin",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libgirepository-2.0-0",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libglib2.0-0t64",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libglib2.0-bin",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libglib2.0-data",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libglib2.0-dev-bin",
            "binary_version": "2.86.0-2ubuntu0.1"
          },
          {
            "binary_name": "libglib2.0-tests",
            "binary_version": "2.86.0-2ubuntu0.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "glib2.0",
        "purl": "pkg:deb/ubuntu/glib2.0@2.86.0-2ubuntu0.1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.86.0-2ubuntu0.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.84.1-1",
        "2.84.1-2",
        "2.84.2-1",
        "2.84.3-1",
        "2.85.1-2",
        "2.85.2-2",
        "2.85.3-1",
        "2.86.0-2"
      ]
    }
  ],
  "aliases": [],
  "details": "A heap-based buffer overflow problem was found in glib through an incorrect calculation of buffer size in the g_escape_uri_string() function. If the string to escape contains a very large number of unacceptable characters (which would need escaping), the calculation of the length of the escaped string could overflow, leading to a potential write off the end of the newly allocated string.",
  "id": "UBUNTU-CVE-2025-13601",
  "modified": "2026-04-22T07:53:20Z",
  "published": "2025-11-26T15:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2025-13601"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-13601"
    },
    {
      "type": "REPORT",
      "url": "https://access.redhat.com/security/cve/CVE-2025-13601"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4914"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-7942-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-7942-2"
    }
  ],
  "related": [
    "USN-7942-1",
    "USN-7942-2"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2025-13601"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…