USN-4874-1

Source
https://ubuntu.com/security/notices/USN-4874-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-4874-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-4874-1
Upstream
Related
Published
2021-03-15T23:05:04.958804Z
Modified
2025-10-13T04:35:24Z
Summary
ant vulnerability
Details

It was discovered that Apache Ant created temporary files with insecure permissions. An attacker could use this vulnerability to read sensitive information leaked into /tmp, or potentially inject malicious code into a project that is built with Apache Ant.

References

Affected packages

Ubuntu:Pro:14.04:LTS / ant

Package

Name
ant
Purl
pkg:deb/ubuntu/ant@1.9.3-2ubuntu0.1+esm1?arch=source&distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-2ubuntu0.1+esm1

Affected versions

1.*

1.9.2-1
1.9.3-1
1.9.3-2
1.9.3-2build1
1.9.3-2ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.9.3-2ubuntu0.1+esm1",
            "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"
        }
    ],
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
}

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2020-1945"
            }
        ],
        "ecosystem": "Ubuntu:Pro:14.04:LTS"
    }
}

Ubuntu:Pro:16.04:LTS / ant

Package

Name
ant
Purl
pkg:deb/ubuntu/ant@1.9.6-1ubuntu1.1+esm1?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.6-1ubuntu1.1+esm1

Affected versions

1.*

1.9.6-1ubuntu1
1.9.6-1ubuntu1.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.9.6-1ubuntu1.1+esm1",
            "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"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2020-1945"
            }
        ],
        "ecosystem": "Ubuntu:Pro:16.04:LTS"
    }
}

Ubuntu:Pro:18.04:LTS / ant

Package

Name
ant
Purl
pkg:deb/ubuntu/ant@1.10.5-3~18.04.1~esm1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.10.5-3~18.04.1~esm1

Affected versions

1.*

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

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.10.5-3~18.04.1~esm1",
            "binary_name": "ant"
        },
        {
            "binary_version": "1.10.5-3~18.04.1~esm1",
            "binary_name": "ant-optional"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2020-1945"
            }
        ],
        "ecosystem": "Ubuntu:Pro:18.04:LTS"
    }
}

Ubuntu:Pro:20.04:LTS / ant

Package

Name
ant
Purl
pkg:deb/ubuntu/ant@1.10.7-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.10.7-1ubuntu0.1~esm1

Affected versions

1.*

1.10.6-1
1.10.7-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.10.7-1ubuntu0.1~esm1",
            "binary_name": "ant"
        },
        {
            "binary_version": "1.10.7-1ubuntu0.1~esm1",
            "binary_name": "ant-optional"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2020-1945"
            }
        ],
        "ecosystem": "Ubuntu:Pro:20.04:LTS"
    }
}