cve.bz

CVE-2020-1945 Exposure of Resource to Wrong Sphere

6.3 mediumEPSS 1.8%Fix available

Medium (6.3). EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.ant:ant 1.10.8, 1.9.15.

On this page
Apache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7 uses the default temporary directory identified by the Java system property java.io.tmpdir for several tasks and may thus leak sensitive information. The fixcrlf and replaceregexp tasks also copy files from the temporary directory back into the build tree allowing an attacker to inject modified source files into the build process.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-668 Exposure of Resource to Wrong Sphere
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-1945 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-1945?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-1945?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-1945 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:antfrom 1.1 through 1.9.14
apache:antfrom 1.10.0 through 1.10.7
canonical:ubuntu_linux19.10
fedoraproject:fedora31
fedoraproject:fedora32
opensuse:leap15.2
oracle:agile_engineering_data_management6.2.1.0
oracle:banking_enterprise_collectionsfrom 2.7.0 through 2.9.0
oracle:banking_liquidity_managementfrom 14.0.0 through 14.4.0
oracle:banking_platformfrom 2.4.0 through 2.9.0
oracle:business_process_management_suite12.2.1.3.0
oracle:business_process_management_suite12.2.1.4.0
oracle:category_management_planning_&_optimization15.0.3
oracle:communications_asap7.3
oracle:communications_diameter_signaling_routerfrom 8.0.0 through 8.2.2
oracle:communications_metasolv_solution6.3.0
oracle:communications_order_and_service_management7.3
oracle:communications_order_and_service_management7.4
oracle:data_integrator12.2.1.3.0
oracle:data_integrator12.2.1.4.0
oracle:endeca_information_discovery_studio3.2.0
oracle:enterprise_manager_ops_center12.4.0.0
oracle:enterprise_repository11.1.1.7.0
oracle:financial_services_analytical_applications_infrastructurefrom 8.0.6 through 8.1.0
oracle:flexcube_investor_servicing12.1.0
oracle:flexcube_investor_servicing12.3.0
oracle:flexcube_investor_servicing12.4.0
oracle:flexcube_investor_servicing14.0.0
oracle:flexcube_investor_servicing14.1.0
oracle:flexcube_private_banking12.0.0
oracle:flexcube_private_banking12.1.0
oracle:health_sciences_information_managerfrom 3.0 through 3.0.2
oracle:primavera_gatewayfrom 16.2.0 through 16.2.11
oracle:primavera_gatewayfrom 17.12.0 through 17.12.7
oracle:primavera_unifierfrom 17.7 through 17.12
oracle:primavera_unifier16.1
oracle:primavera_unifier16.2
oracle:primavera_unifier18.8
oracle:primavera_unifier19.12
oracle:rapid_planning12.1
oracle:rapid_planning12.2
oracle:real-time_decision_server3.2.1.0
oracle:retail_advanced_inventory_planning14.1
oracle:retail_advanced_inventory_planning15.0
oracle:retail_advanced_inventory_planning16.0
oracle:retail_assortment_planning15.0.3
oracle:retail_assortment_planning16.0.3
oracle:retail_back_office14.0
oracle:retail_back_office14.1
oracle:retail_bulk_data_integration15.0
oracle:retail_bulk_data_integration16.0
oracle:retail_bulk_data_integration16.0.3.0
oracle:retail_bulk_data_integration19.0.1
oracle:retail_central_office14.0
oracle:retail_central_office14.1
oracle:retail_data_extractor_for_merchandising1.9
oracle:retail_data_extractor_for_merchandising1.10
oracle:retail_extract_transform_and_load13.2.5
oracle:retail_extract_transform_and_load13.2.8
oracle:retail_financial_integration14.1.3.2
oracle:retail_financial_integration15.0
oracle:retail_financial_integration15.0.4.0
oracle:retail_financial_integration16.0
oracle:retail_financial_integration16.0.3.0
oracle:retail_integration_bus14.1
oracle:retail_integration_bus14.1.3.2
oracle:retail_integration_bus15.0
oracle:retail_integration_bus15.0.4.0
oracle:retail_integration_bus16.0
oracle:retail_integration_bus16.0.3.0
oracle:retail_integration_bus19.0.1.0
oracle:retail_item_planning15.0.3
oracle:retail_macro_space_optimization15.0.3
oracle:retail_merchandise_financial_planning15.0.3
oracle:retail_merchandising_system19.0.1
oracle:retail_point-of-service14.0
oracle:retail_point-of-service14.1
oracle:retail_point-of-service15.0
oracle:retail_point-of-service16.0
oracle:retail_predictive_application_server14.0.3
oracle:retail_predictive_application_server14.1.3
oracle:retail_predictive_application_server15.0.3
oracle:retail_predictive_application_server16.0.3
oracle:retail_predictive_application_server16.0.3.0
oracle:retail_regular_price_optimization15.0.3
oracle:retail_regular_price_optimization16.0.3
oracle:retail_replenishment_optimization15.0.3
oracle:retail_returns_management14.0
oracle:retail_returns_management14.1
oracle:retail_service_backbone14.1.3.2
oracle:retail_service_backbone15.0
oracle:retail_service_backbone15.0.4.0
oracle:retail_service_backbone16.0
oracle:retail_service_backbone16.0.3.0
oracle:retail_service_backbone19.0.1.0
oracle:retail_size_profile_optimization15.0.3
oracle:retail_size_profile_optimization16.0.3
oracle:retail_store_inventory_management14.0.4
oracle:retail_store_inventory_management14.1
oracle:retail_store_inventory_management14.1.3
oracle:retail_store_inventory_management15.0
oracle:retail_store_inventory_management15.0.3
oracle:retail_store_inventory_management16.0
oracle:retail_store_inventory_management16.0.3
oracle:retail_xstore_point_of_service15.0.4
oracle:retail_xstore_point_of_service16.0.6
oracle:retail_xstore_point_of_service17.0.4
oracle:retail_xstore_point_of_service18.0.3
oracle:retail_xstore_point_of_service19.0.2
oracle:timesten_in-memory_databasebefore 11.2.2.8.27
oracle:timesten_in-memory_database11.2.2.8.49
oracle:utilities_frameworkfrom 4.3.0.1.0 through 4.3.0.6.0
oracle:utilities_framework2.2.0.0.0
oracle:utilities_framework4.2.0.2.0
oracle:utilities_framework4.2.0.3.0
oracle:utilities_framework4.4.0.0.0
oracle:utilities_framework4.4.0.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4p6w-m9wc-c9c9Mavenorg.apache.ant:ant>=1.1 <1.9.151.9.15
GHSA-4p6w-m9wc-c9c9Mavenorg.apache.ant:ant>=1.10.0 <1.10.81.10.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ant1.10.8-1DEBIAN-CVE-2020-1945
UbuntuPro:14.04:LTSant1.9.3-2ubuntu0.1+esm1UBUNTU-CVE-2020-1945 USN-4874-1
UbuntuPro:16.04:LTSant1.9.6-1ubuntu1.1+esm1UBUNTU-CVE-2020-1945 USN-4874-1
UbuntuPro:18.04:LTSant1.10.5-3~18.04.1~esm1UBUNTU-CVE-2020-1945 USN-4874-1
UbuntuPro:20.04:LTSant1.10.7-1ubuntu0.1~esm1UBUNTU-CVE-2020-1945 USN-4874-1
Red Hatopenshift:3.11::el7jenkins0:2.263.3.1612433584-1.el7RHSA-2021:0637
Red Hatopenshift:3.11::el7jenkins-2-plugins0:3.11.1612862361-1.el7RHSA-2021:0637
Red Hatopenshift:3.11::el7python-rsa, python2-rsa0:4.5-3.el7RHSA-2021:0637
Red Hatopenshift:4.5::el7conmon2:2.0.21-1.rhaos4.5.el7RHSA-2021:0429
Red Hatopenshift:4.5::el7jenkins0:2.263.3.1612434332-1.el7RHSA-2021:0429
Red Hatopenshift:4.5::el7openshift, openshift-hyperkube0:4.5.0-202102050524.p0.git.0.9229406.el7RHSA-2021:0429
Red Hatopenshift:4.5::el7openshift-ansible, openshift-ansible-test0:4.5.0-202102031005.p0.git.0.c6839a2.el7RHSA-2021:0429
Red Hatopenshift:4.5::el7openshift-clients, openshift-clients-redistributable0:4.5.0-202102051529.p0.git.3612.61b096a.el7RHSA-2021:0429
Red Hatopenshift:4.5::el8conmon2:2.0.21-1.rhaos4.5.el8RHSA-2021:0429
Red Hatopenshift:4.5::el8machine-config-daemon0:4.5.0-202102050524.p0.git.2594.ff3b8c0.el8RHSA-2021:0429
Red Hatopenshift:4.5::el8openshift, openshift-hyperkube0:4.5.0-202102050524.p0.git.0.9229406.el8RHSA-2021:0429
Red Hatopenshift:4.5::el8openshift-clients, openshift-clients-redistributable0:4.5.0-202102051529.p0.git.3612.61b096a.el8RHSA-2021:0429
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Development Tools 15 SP2ant, ant-antlr, ant-junit1.10.7-4.3.1SUSE-SU-2020:1944-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5ant1.9.4-3.12.1SUSE-SU-2022:4022-1
SUSELinux Enterprise Software Development Kit 12 SP5ant-antlr1.9.4-3.12.3SUSE-SU-2022:4022-1
openSUSELeap 15.2ant, ant-antlr, ant-junit and 1 more1.10.7-lp152.2.3.1openSUSE-SU-2020:1022-1
openSUSETumbleweedant1.10.10-1.2openSUSE-SU-2024:10616-1
openSUSETumbleweedjunit4.13.2-1.1openSUSE-SU-2024:11676-1
Alpinev3.11, v3.12, v3.13 and 11 moreapache-ant1.10.8-r0ALPINE-CVE-2020-1945

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In OpenShift Container Platform (OCP), the Hive/Presto/Hadoop components that comprise the OCP Metering stack, ship the vulnerable version of ant package.

Since the release of OCP 4.6, the Metering product has been deprecated [1], hence the affected components are marked as wontfix.

This may be fixed in the future.

[1] https://docs.openshift.com/container-platform/4.6/release_notes/ocp-4-6-release-notes.html#ocp-4-6-metering-operator-deprecated

Red Hat's mitigation

For versions 1.1 to 1.9.14 and 1.10.0 to 1.10.7, set the java.io.tmpdir system property to a private directory-- only readable and writable by the current user-- before running Ant.

For versions 1.9.15 and 1.10.8, use the Ant property ant.tmpfile instead. Ant 1.10.8 protects the temporary files if the underlying filesystem allows it, but using a private temporary directory is still recommended.

ProductPackageStateAdvisory
Red Hat AMQ Streams 1.5.0antFixed 2020-06-19RHSA-2020:2618
Red Hat OpenShift Container Platform 3.11jenkins-0:2.263.3.1612433584-1.el7Fixed 2021-03-03RHSA-2021:0637
Red Hat OpenShift Container Platform 4.5conmon-2:2.0.21-1.rhaos4.5.el7Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.5jenkins-0:2.263.3.1612434332-1.el7Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.5machine-config-daemon-0:4.5.0-202102050524.p0.git.2594.ff3b8c0.el8Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.5openshift-0:4.5.0-202102050524.p0.git.0.9229406.el7Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.5openshift-ansible-0:4.5.0-202102031005.p0.git.0.c6839a2.el7Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.5openshift-clients-0:4.5.0-202102051529.p0.git.3612.61b096a.el7Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.5runc-0:1.0.0-72.rhaos4.5.giteadfc6b.el8Fixed 2021-03-03RHSA-2021:0429
Red Hat OpenShift Container Platform 4.6jenkins-0:2.263.3.1612434510-1.el8Fixed 2021-02-17RHSA-2021:0423
Red Hat BPM Suite 6antOut of support scope
Red Hat Enterprise Linux 5antOut of support scope
Red Hat Enterprise Linux 6antOut of support scope
Red Hat Enterprise Linux 7antWill not fix
Red Hat Enterprise Linux 8antWill not fix
Red Hat Enterprise Linux 8ant:1.10/antWill not fix
Red Hat JBoss BRMS 5antOut of support scope
Red Hat JBoss Data Virtualization 6antOut of support scope
Red Hat JBoss Enterprise Application Platform 5antOut of support scope
Red Hat JBoss Enterprise Application Platform 6antNot affected
8 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-1945.

References

Check your stackJSON