# OPENSUSE-SU-2026:21891-1

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-09-20 · Modified: 2026-09-25
- Record: https://cvemate.com/vulnerability/OPENSUSE-SU-2026%3A21891-1 · JSON: https://cvemate.com/vulnerability/OPENSUSE-SU-2026%3A21891-1/json

## Description

```text
Security update for ant

This update for ant fixes the following issues:

- CVE-2021-36374: excessive memory allocation when reading a specially crafted ZIP archive or a derived formats
  (bsc#1188469).
- CVE-2025-7962: jakarta: improper neutralization of \r and \n UTF-8 characters can lead to SMTP injection
  (bsc#1246873).
- CVE-2026-78254: path traversal in ftp and scp tasks allows for arbitrary file writes (bsc#1280015).

Changes for ant:

- Upgrade to version 1.10.18
 * Breaking changes:
 + the default value for <ftp>'s useSecureDataChannel has been
 changed to true which means using ftps now also tries to use
 an encrypted data channel by default.
 + the <ftp> and <scp> tasks have new allowFilesToEscapeDest
 attributes. When set to false - which is the default - the
 tasks will not download files or create directories outside
 the designated destination directory when downloading from the
 remote server. In the unlikely case you need the old bahaviour
 of writing outside the destination directory you must set the
 value to true explicitly.
 * Other changes:
 + when using the SOURCE_DATE_EPOCH environment variable to set
 the time for <tstamp> the timezone will now be set to UTC for
 DSTAMP, TSTAMP and TODAY. This also applies to nested formats
 where the locale now also defaults to en_US unless it (or the
 timezone) have been set explicitly.
 + Upgraded the jakarta.mail dependency to 2.0.2 because of
 bsc#1246873, CVE-2025-7962.
 + the SOURCE_DATE_EPOCH environment variable as well as the
 magic ant.tstamp.now and ant.tstamp.now.iso properties now
 also affect the timestamp added to a properties file written
 by <propertyfile> - but only if jdkproperties has its default
 value of false.
 + a new method getBuildDate in Project can now be used to
 calculate a notion of a "build date" that consults the
 SOURCE_DATE_EPOCH environment variable as well as the magic
 ant.tstamp.now and ant.tstamp.now.iso properties in this order
 which you can use if you want to obtain a reproducible
 timestamp in tasks you write yourself.
 + The "record" task now has a new "relativeToBaseDir" attribute,
 which can be set to "yes" or "no", to control where the
 recorder's file gets created. In the absence of this
 attribute, if the "name" of the recorder was a relative path,
 then the recorder would create the file in the current working
 directory of the process. With this new attribute, the
 recorder can be configured to create that file in the basedir
 of the project.
 * Fixed bugs:
 + When running with "microsoft" Java, Ant used to hardcode the
 "$JAVA_HOME/Packages" directory in the runtime Paths for
 certain tasks. The JDK shipped by Microsoft no longer contains
 that directory (for several decades now). As a result, when
 running with "microsoft" Java, an exception would be raised
 due to the missing directory. This has now been fixed and Ant
 no longer adds that directory to the Java runtime Paths.
 + Inaccuracies in the documentation of the "record" task have
 been fixed.
 + <mappedresources> with "enableMultipleMappings" set to "true"
 threw a NullPointerException if the mapper didn't apply to
 one of the resources. Unmapped resources are now omitted from
 the collection.
- Changes of version 1.10.17
 + The JavaEnvUtils and FileUtils classes statically depend on
 each other since Ant 1.10.16 making it impossible to load
 JavaEnvUtils without loading FileUtils first causing
 NullPointerException for programmatic use on Windows. This
 affected Eclipse and may also affect other projects using Ant
 as a library. The classes can now be loaded independently
 again.
- Changes of version 1.10.16
 + <xslt> now uses the same logic to compare file timestamps when
 determining whether a target file is out-of-date with respect
 to the source file or stylesheet that most other tasks use.
 This means it will assume a default timestamp granularity that
 depends on the current operating system.
 A new granularity attribute allows you to override the assumed
 granularity.
 Under certain edge cases this means xslt will now not process
 files it would have processed before (when the timestamps of
 source or stylesheet are very close or even equal to the
 timestamp of the target). In this case you can set granularity
 to 0 to get back to the behavior of 1.10.15.
 + the <mail> task as well as MailLogger will now check the server
 identity as specified by RFC 2595 when JavaMail is used in
 combination with TLS (plain TLS or StartTLS).
 The check can be disabled with a new MailLogger property
 MailLogger.tls.checkserveridentity or a new <mail> task
 attribute checkServerIdentity.
 + Ant now recognizes Windows junctions and treats them just like
 symbolic links in general. With this builds on Windows that
 use followSymlinks="false" and rely on Ant following Windows
 junctions will break. In order to get the old behavior you
 need to set followSymlinks to true and exclude real symbolic
 links via the <symlink> selector.
 + <scp> now properly handles IPv6 addresses as hostnames.
 + javac task has been fixed to generate the "-classpath" option
 only when there are any classpath elements present.
 + URLResource#getName could strip the first character of a
 resource path even if it was not a file separator.
 + ant.bat now exits with a non-zero exit code if ANT_HOME is not
 set.
 + A regression in ftp task caused some files to not be
 downloaded. That has been fixed now.
 + Ant will no longer set a java.lang.SecurityManager at runtime
 if the "java.security.manager" system property is set to
 "disallow".
 + <mail> and MailLogger can now enforce the use of STARTLS
 rather than silently fall back to unencrypted authentication
 via a new MailLogger property and a new <mail> task attribute.
 + added a Windows specific <mklink> task that can be used to
 create hard links, symbolic links and junctions.
 + added <delete link="..."> that can be used delete symbolic
 links or Windows junctions. For symbolic links this duplicates
 what <symlink action="delete" ...> does - it has been
 introduced to handle symlinks and junctions via a single API.
 + added <canCreateSymlink> condition that evaluates to true if
 the current Ant process can create symbolic links.
 + added <windowsjunction> file selector which only selects
 directories that are Windows junctions.
 + added a new actOnLinkTargets attribute to <setpermissions> to
 control whether the permissions apply to a symbolic link or
 Windows junction or the target of the respective links. The
 old behavior of changing the link's target remains as default.
 + a new combination of attributes allows <sshexec> to mask
 sensitive data specified for the command line to execute.
 + just omit completely the Created-By if SOURCE_DATE_EPOCH is
 set
 - <get> has a new attribute authenticateOnRedirect that can be
 used to prevent Ant from sending the configured credentials
 builds that rely on credentials being used on the redirected
 - the PropertyEnumerator change introduced in 1.10.9 proved to
 be not fully backwards compatible when combined with certain
 - <scp> may leak connections when trying to preserve the last
 modified timestamps of files transferred recursively from a
 environment variable value to an incorrect date. This has now
 - fetch.xml didn't set up non-default repositories propery and
 build script would change permissions on unrelated files in
 the destination directory. This is now fixed and such
 unrelated files in the destination directory will be left
 - parsing tar entries with multiple NUL bytes in their name
 - loadresource might log warnings even though quiet was set to
 repackaged Jakarta Mail package rather than javax Mail.
 - org.apache.tools.ant.BuildLogger now has a new method
 getMessageOutputLevel() which returns the currently set
 CVE-2021-36374, bsc#1188469
 Excessive memory allocation when reading a specially
 * Prevent potential deadlocks in org.apache.tools.ant.IntrospectionHelper.
 * The implementation of AntClassLoader#findResources() has been changed to optimize
- Update to ant 1.8.2
```

## Signals

- CVSS: none published
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- opensuse ant-antlr&distro=openSUSE Leap 16.0 (openSUSE): \< 1.10.18-160000.1.1
- opensuse ant-junit5&distro=openSUSE Leap 16.0 (openSUSE): \< 1.10.18-160000.1.1
- opensuse ant-junit&distro=openSUSE Leap 16.0 (openSUSE): \< 1.10.18-160000.1.1
- opensuse ant&distro=openSUSE Leap 16.0 (openSUSE): \< 1.10.18-160000.1.1

## References

- <https://bugzilla.suse.com/1188469>
- <https://bugzilla.suse.com/1246873>
- <https://bugzilla.suse.com/1280015>
- <https://www.suse.com/security/cve/CVE-2021-36374>
- <https://www.suse.com/security/cve/CVE-2025-7962>
- <https://www.suse.com/security/cve/CVE-2026-78254>

---

Data as of 2026-12-05T14:02:42.149Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
