Skip to content
Heist/ feed
Back to feed
Medium

ant — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-36373

When reading a specially crafted TAR archive an Apache Ant build can be made to allocate large amounts of memory that finally leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Apache Ant prior to 1.9.16 and 1.10.11 were affected.

Products
ant
Affected versions
1.10.11-1, 1.10.12-1, 1.10.13-2, 1.10.14-1, 1.10.15-1, 1.10.15-1build1, 1.10.17-1, 1.10.18-1, 1.10.3-1, 1.10.3-1ubuntu0.1, 1.10.5-3~18.04, 1.10.5-3~18.04.1~esm1, 1.10.6-1, 1.10.7-1, 1.10.7-1ubuntu0.1~esm1, 1.10.9-4, 1.9.10-1, 1.9.10-2, 1.9.2-1, 1.9.3-1, 1.9.3-2, 1.9.3-2build1, 1.9.3-2ubuntu0.1, 1.9.3-2ubuntu0.1+esm1, 1.9.6-1ubuntu1, 1.9.6-1ubuntu1.1, 1.9.6-1ubuntu1.1+esm1, 1.9.9-4, 1.9.9-5, 1.9.9-6
Fixed versions
Not specified
CVEs
CVE-2021-36373
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:37 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-36373

core-osv · Original source

Published 14 Jul 2021, 07:15 UTC

When reading a specially crafted TAR archive an Apache Ant build can be made to allocate large amounts of memory that finally leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Apache Ant prior to 1.9.16 and 1.10.11 were affected.

osv:UBUNTU-CVE-2021-36373

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

Complete source record
{
  "id": "1a5dff2e20bbe61d5ddef8d71bb1d76ddba358a66d80580763a7d391377d7c98",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-36373",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-36373",
    "summary": "When reading a specially crafted TAR archive an Apache Ant build can be made to allocate large amounts of memory that finally leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Apache Ant prior to 1.9.16 and 1.10.11 were affected.",
    "evidence": "osv:UBUNTU-CVE-2021-36373",
    "products": [
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2ubuntu0.1+esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.6-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.9.6-1ubuntu1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.9.6-1ubuntu1.1+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.9-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.9-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.9-6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.10-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.10-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.3-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.3-1ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.5-3~18.04",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.5-3~18.04.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.6-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.10.7-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.10.7-1ubuntu0.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.9-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.10.11-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.10.12-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.13-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.10.14-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.15-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.15-1build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.10.17-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.10.18-1",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.15-1",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "1.10.15-1build1",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2021-36373",
      "aliases": [
        "UBUNTU-CVE-2021-36373"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "1.9.2-1",
            "1.9.3-1",
            "1.9.3-2",
            "1.9.3-2build1",
            "1.9.3-2ubuntu0.1",
            "1.9.3-2ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              },
              {
                "binary_name": "ant-gcj",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              },
              {
                "binary_name": "ant-optional-gcj",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.9.6-1ubuntu1",
            "1.9.6-1ubuntu1.1",
            "1.9.6-1ubuntu1.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              },
              {
                "binary_name": "ant-gcj",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              },
              {
                "binary_name": "ant-optional-gcj",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.9.9-4",
            "1.9.9-5",
            "1.9.9-6",
            "1.9.10-1",
            "1.9.10-2",
            "1.10.3-1",
            "1.10.3-1ubuntu0.1",
            "1.10.5-3~18.04",
            "1.10.5-3~18.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.5-3~18.04.1~esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.5-3~18.04.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1.10.6-1",
            "1.10.7-1",
            "1.10.7-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.7-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.7-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.10.9-4",
            "1.10.11-1",
            "1.10.12-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.12-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.12-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.10.13-2",
            "1.10.14-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.14-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.14-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.10.15-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.15-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.15-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.10.15-1build1",
            "1.10.17-1",
            "1.10.18-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.18-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.18-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.10.15-1",
            "1.10.15-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36373.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.15-1build1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.15-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:13.456047968Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-36373"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-36373",
        "https://www.openwall.com/lists/oss-security/2021/07/13/5",
        "https://ant.apache.org/security.html",
        "https://lists.apache.org/thread.html/r54afdab05e01de970649c2d91a993f68a6b00cd73e6e34e16c832d46%40%3Cuser.ant.apache.org%3E",
        "https://www.cve.org/CVERecord?id=CVE-2021-36373"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-36373",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356945,
  "published_at": "2021-07-14T07:15:00+00:00"
}