CVE-2021-3472: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-cmmq-26gr-w7rc
CWE-191
Published
Advisory Summary

CVE-2021-3472 is a HIGH security vulnerability vulnerability (CWE-191: Integer Underflow (Wrap or Wraparound)) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.. Remediation is available in the latest vendor maintenance releases.

CVE-2021-3472 at a Glance

CVE Identifier CVE-2021-3472
GHSA Identifier GHSA-cmmq-26gr-w7rc
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-191: Integer Underflow (Wrap or Wraparound)
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2021-3472

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-2021-3472, 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-191: Integer Underflow (Wrap or Wraparound), where the product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result. 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 xorg-x11-server in versions before 1.20.11. An integer underflow can occur in xserver which can lead to a local privilege escalation. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

References

NVD — CVE-2021-3472 NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3472
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1944167
gitlab.freedesktop.org/xorg/xserver/-/comm... WEB
https://gitlab.freedesktop.org/xorg/xserver/-/commit/7aaf54a1884f71dc363f0b884e57bcb67407a6cd
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2021/04/msg00013.html
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MDF7TAJE7NPZPNVOXSD5HBIFLNPUOD2V
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO6S5OPXUDYBSRSVWVLFLJ6AFERG4HNY
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N63KL3T22HNFT4FJ7VMVF6U5Q4RFJIQF
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PEXPCLMVU25AUZTUXC4MYBGPKOAIM5TW
lists.x.org/archives/xorg-annou... WEB
https://lists.x.org/archives/xorg-announce/2021-April/003080.html
seclists.org/oss-sec/2021/q2/20 WEB
https://seclists.org/oss-sec/2021/q2/20
Software Security Information SECURITY
https://security.gentoo.org/glsa/202104-02
Software Security Information SECURITY
https://www.debian.org/security/2021/dsa-4893
www.tenable.com/plugins/nessus/1487... WEB
https://www.tenable.com/plugins/nessus/148701
www.zerodayinitiative.com/advisories/zdi-21-4... WEB
https://www.zerodayinitiative.com/advisories/ZDI-21-463
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2021/04/13/1

Frequently Asked Questions

What is CVE-2021-3472?
CVE-2021-3472 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-191: Integer Underflow (Wrap or Wraparound).
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2021-3472?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2021-3472?
CVE-2021-3472 is classified under CWE-191: Integer Underflow (Wrap or Wraparound) (The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.).
How can I check Maven dependencies for CVE-2021-3472?
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-cmmq-26gr-w7rc",
  "modified" : "2022-05-24T17:48:51Z",
  "published" : "2022-05-24T17:48:51Z",
  "aliases" : [ "CVE-2021-3472" ],
  "details" : "A flaw was found in xorg-x11-server in versions before 1.20.11. An integer underflow can occur in xserver which can lead to a local privilege escalation. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3472"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1944167"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.freedesktop.org/xorg/xserver/-/commit/7aaf54a1884f71dc363f0b884e57bcb67407a6cd"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2021/04/msg00013.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MDF7TAJE7NPZPNVOXSD5HBIFLNPUOD2V"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO6S5OPXUDYBSRSVWVLFLJ6AFERG4HNY"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N63KL3T22HNFT4FJ7VMVF6U5Q4RFJIQF"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PEXPCLMVU25AUZTUXC4MYBGPKOAIM5TW"
  }, {
    "type" : "WEB",
    "url" : "https://lists.x.org/archives/xorg-announce/2021-April/003080.html"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/oss-sec/2021/q2/20"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/202104-02"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2021/dsa-4893"
  }, {
    "type" : "WEB",
    "url" : "https://www.tenable.com/plugins/nessus/148701"
  }, {
    "type" : "WEB",
    "url" : "https://www.zerodayinitiative.com/advisories/ZDI-21-463"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2021/04/13/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-191" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2021-04-26T15:15:00Z"
  }
}