ant — security advisory
When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. 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-36374
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:59 UTC · Revision 1
Source evidence
When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected.
osv:UBUNTU-CVE-2021-36374
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": "8b33bf178123b14e02081095ce944660e9ee4d92f6c7fba46e347e0047b39d90",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-36374",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-36374",
"summary": "When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected.",
"evidence": "osv:UBUNTU-CVE-2021-36374",
"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-36374",
"aliases": [
"UBUNTU-CVE-2021-36374"
],
"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-36374.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-36374.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-36374.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-36374.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-36374.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-36374.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-36374.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-36374.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-36374.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:56:20.599710793Z",
"provider": "osv",
"upstream": [
"CVE-2021-36374"
],
"references": [
"https://ubuntu.com/security/CVE-2021-36374",
"https://www.openwall.com/lists/oss-security/2021/07/13/6",
"https://lists.apache.org/thread.html/rdd5412a5b9a25aed2a02c3317052d38a97128314d50bc1ed36e81d38%40%3Cuser.ant.apache.org%3E",
"https://ant.apache.org/security.html",
"https://www.cve.org/CVERecord?id=CVE-2021-36374"
]
},
"related_cves": [
{
"value": "CVE-2021-36374",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355338,
"published_at": "2021-07-14T07:15:00+00:00"
}