CVE-2025-5278: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-ch64-4x3c-w3jq
CVSS 4.4
CWE-121
Published
Advisory Summary

CVE-2025-5278 is a MODERATE (CVSS 4.4) security vulnerability vulnerability (CWE-121: Stack-based Buffer Overflow) affecting Software libraries in the Maven ecosystem. The weakness occurs when a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).. Remediation is available in the latest vendor maintenance releases.

CVE-2025-5278 at a Glance

CVE Identifier CVE-2025-5278
GHSA Identifier GHSA-ch64-4x3c-w3jq
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-121: Stack-based Buffer Overflow
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-5278

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-5278, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A flaw was found in GNU Coreutils. The sort utility's begfield() function is vulnerable to a heap buffer under-read. The program may access memory outside the allocated buffer if a user runs a crafted command using the traditional key format. A malicious input could lead to a crash or leak sensitive data.

References

NVD — CVE-2025-5278 NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-5278
Software Security Information SECURITY
https://security-tracker.debian.org/tracker/CVE-2025-5278
debbugs.gnu.org/cgi/bugreport.cgi WEB
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78507
cgit.git.savannah.gnu.org/cgit/coreutils.git/... WEB
https://cgit.git.savannah.gnu.org/cgit/coreutils.git/tree/NEWS?id=8c9602e3a145e9596dc1a63c6ed67865814b6633#n14
cgit.git.savannah.gnu.org/cgit/coreutils.git/... WEB
https://cgit.git.savannah.gnu.org/cgit/coreutils.git/commit/?id=8c9602e3a145e9596dc1a63c6ed67865814b6633
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2368764
Software Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2025-5278
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82888
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82857
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82372
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82354
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82347
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82322
access.redhat.com/errata/rhsa-2026:82... WEB
https://access.redhat.com/errata/RHSA-2026:82304
access.redhat.com/errata/rhsa-2026:72... WEB
https://access.redhat.com/errata/RHSA-2026:72502
access.redhat.com/errata/rhsa-2026:69... WEB
https://access.redhat.com/errata/RHSA-2026:69964
access.redhat.com/errata/rhsa-2026:58... WEB
https://access.redhat.com/errata/RHSA-2026:58981
access.redhat.com/errata/rhsa-2026:50... WEB
https://access.redhat.com/errata/RHSA-2026:50205
access.redhat.com/errata/rhsa-2026:46... WEB
https://access.redhat.com/errata/RHSA-2026:46836
access.redhat.com/errata/rhsa-2026:44... WEB
https://access.redhat.com/errata/RHSA-2026:44481
access.redhat.com/errata/rhsa-2026:39... WEB
https://access.redhat.com/errata/RHSA-2026:39981
access.redhat.com/errata/rhsa-2026:34... WEB
https://access.redhat.com/errata/RHSA-2026:34102
access.redhat.com/errata/rhsa-2026:33... WEB
https://access.redhat.com/errata/RHSA-2026:33612
access.redhat.com/errata/rhsa-2026:33... WEB
https://access.redhat.com/errata/RHSA-2026:33313
access.redhat.com/errata/rhsa-2026:33... WEB
https://access.redhat.com/errata/RHSA-2026:33124
access.redhat.com/errata/rhsa-2026:28... WEB
https://access.redhat.com/errata/RHSA-2026:28911
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2025/05/27/2
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2025/05/29/1
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2025/05/29/2

Frequently Asked Questions

What is CVE-2025-5278?
CVE-2025-5278 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-121: Stack-based Buffer Overflow.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2025-5278?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2025-5278?
CVE-2025-5278 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L.
What CWE is associated with CVE-2025-5278?
CVE-2025-5278 is classified under CWE-121: Stack-based Buffer Overflow (A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).).
How can I check Maven dependencies for CVE-2025-5278?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-ch64-4x3c-w3jq",
  "modified" : "2026-10-14T21:31:43Z",
  "published" : "2025-05-27T21:32:17Z",
  "aliases" : [ "CVE-2025-5278" ],
  "details" : "A flaw was found in GNU Coreutils. The sort utility's begfield() function is vulnerable to a heap buffer under-read. The program may access memory outside the allocated buffer if a user runs a crafted command using the traditional key format. A malicious input could lead to a crash or leak sensitive data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5278"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2025-5278"
  }, {
    "type" : "WEB",
    "url" : "https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78507"
  }, {
    "type" : "WEB",
    "url" : "https://cgit.git.savannah.gnu.org/cgit/coreutils.git/tree/NEWS?id=8c9602e3a145e9596dc1a63c6ed67865814b6633#n14"
  }, {
    "type" : "WEB",
    "url" : "https://cgit.git.savannah.gnu.org/cgit/coreutils.git/commit/?id=8c9602e3a145e9596dc1a63c6ed67865814b6633"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2368764"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2025-5278"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82888"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82857"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82372"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82354"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82347"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82322"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:82304"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:72502"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:69964"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:58981"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:50205"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:46836"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:44481"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:39981"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:34102"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:33612"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:33313"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:33124"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:28911"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/05/27/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/05/29/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/05/29/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-121" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2025-05-27T21:15:23Z"
  }
}