CVE-2024-42154: Software Security Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-q75j-p4r8-37x7
CVSS 9.8
CWE-754
Published
Advisory Summary

CVE-2024-42154 is a CRITICAL (CVSS 9.8) security vulnerability vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.. Remediation is available in the latest vendor maintenance releases.

CVE-2024-42154 at a Glance

CVE Identifier CVE-2024-42154
GHSA Identifier GHSA-q75j-p4r8-37x7
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-754: Improper Check for Unusual or Exceptional Conditions
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2024-42154

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-2024-42154, 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-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. 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

In the Linux kernel, the following vulnerability has been resolved: tcp_metrics: validate source addr length I don't see anything checking that TCP_METRICS_ATTR_SADDR_IPV4 is at least 4 bytes long, and the policy doesn't have an entry for this attribute at all (neither does it for IPv6 but v6 is manually validated).

References

NVD — CVE-2024-42154 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-42154
cert-portal.siemens.com/productcert/html/ss... WEB
https://cert-portal.siemens.com/productcert/html/ssa-355557.html
cert-portal.siemens.com/productcert/html/ss... WEB
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
cert-portal.siemens.com/productcert/html/ss... WEB
https://cert-portal.siemens.com/productcert/html/ssa-503939.html
cert-portal.siemens.com/productcert/html/ss... WEB
https://cert-portal.siemens.com/productcert/html/ssa-613116.html
git.kernel.org/stable/c/19d997b59f... WEB
https://git.kernel.org/stable/c/19d997b59fa1fd7a02e770ee0881c0652b9c32c9
git.kernel.org/stable/c/2a2e79dbe2... WEB
https://git.kernel.org/stable/c/2a2e79dbe2236a1289412d2044994f7ab419b44c
git.kernel.org/stable/c/31f03bb041... WEB
https://git.kernel.org/stable/c/31f03bb04146c1c6df6c03e9f45401f5f5a985d3
git.kernel.org/stable/c/3d550dd541... WEB
https://git.kernel.org/stable/c/3d550dd5418729a6e77fe7721d27adea7152e321
git.kernel.org/stable/c/66be40e622... WEB
https://git.kernel.org/stable/c/66be40e622e177316ae81717aa30057ba9e61dff
git.kernel.org/stable/c/8c2debdd17... WEB
https://git.kernel.org/stable/c/8c2debdd170e395934ac0e039748576dfde14e99
git.kernel.org/stable/c/cdffc35871... WEB
https://git.kernel.org/stable/c/cdffc358717e436bb67122bb82c1a2a26e050f98
git.kernel.org/stable/c/ef7c428b42... WEB
https://git.kernel.org/stable/c/ef7c428b425beeb52b894e16f1c4b629d6cebfb6
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Software Security Information SECURITY
https://security.netapp.com/advisory/ntap-20240828-0010
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2024/09/24/3
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2024/09/24/4
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2024/09/25/3

Frequently Asked Questions

What is CVE-2024-42154?
CVE-2024-42154 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-754: Improper Check for Unusual or Exceptional Conditions.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2024-42154?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2024-42154?
CVE-2024-42154 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-42154?
CVE-2024-42154 is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions (The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.).
How can I check Maven dependencies for CVE-2024-42154?
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-q75j-p4r8-37x7",
  "modified" : "2026-10-15T03:33:58Z",
  "published" : "2024-07-30T09:32:03Z",
  "aliases" : [ "CVE-2024-42154" ],
  "details" : "In the Linux kernel, the following vulnerability has been resolved:\n\ntcp_metrics: validate source addr length\n\nI don't see anything checking that TCP_METRICS_ATTR_SADDR_IPV4\nis at least 4 bytes long, and the policy doesn't have an entry\nfor this attribute at all (neither does it for IPv6 but v6 is\nmanually validated).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-42154"
  }, {
    "type" : "WEB",
    "url" : "https://cert-portal.siemens.com/productcert/html/ssa-355557.html"
  }, {
    "type" : "WEB",
    "url" : "https://cert-portal.siemens.com/productcert/html/ssa-398330.html"
  }, {
    "type" : "WEB",
    "url" : "https://cert-portal.siemens.com/productcert/html/ssa-503939.html"
  }, {
    "type" : "WEB",
    "url" : "https://cert-portal.siemens.com/productcert/html/ssa-613116.html"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/19d997b59fa1fd7a02e770ee0881c0652b9c32c9"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/2a2e79dbe2236a1289412d2044994f7ab419b44c"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/31f03bb04146c1c6df6c03e9f45401f5f5a985d3"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/3d550dd5418729a6e77fe7721d27adea7152e321"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/66be40e622e177316ae81717aa30057ba9e61dff"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/8c2debdd170e395934ac0e039748576dfde14e99"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/cdffc358717e436bb67122bb82c1a2a26e050f98"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/ef7c428b425beeb52b894e16f1c4b629d6cebfb6"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240828-0010"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/09/24/3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/09/24/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/09/25/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-754" ],
    "severity" : "CRITICAL",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2024-07-30T08:15:06Z"
  }
}