REDHAT-BUG-2505492: Integer Overflow

Published Jul 21, 2026
·
Updated

A signed integer overflow flaw was found in libarchive's ZIP writer. The issue occurs in the archivewritezipheader function in archivewritesetformatzip.c when writing a ZIP entry with a known file size while ZIP encryption (e.g., AES-256) is enabled. When the entry size is close to INT64MAX, adding the encryption overhead (additionalsize) to zip->entryuncompressedsize triggers a signed integer overflow, leading to undefined behavior per the C standard. This could result in incorrect Zip64 extension decisions or potential memory corruption.

The vulnerability is in the write path only and requires both ZIP encryption to be enabled and a file size near INT64MAX, making real-world exploitation unlikely.

Upstream issue: https://github.com/libarchive/libarchive/issues/3225 Upstream fix: https://github.com/libarchive/libarchive/pull/3228

Affected Software

1 affected component
Libarchive libarchive

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Disable ZIP encryption in libarchive (e.g., AES-256) for ZIP creation to avoid the signed integer overflow triggered in the archive_write_zip_header write path when encryption is enabled.

    libarchive ZIP writer ZIP encryption (e.g., AES-256) enabled = disable

Event History

Jul 21, 2026
Data Sourced
via Red Hat·10:33 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2505492?

The severity of REDHAT-BUG-2505492 is classified as low.

2

How do I fix REDHAT-BUG-2505492?

To address REDHAT-BUG-2505492, update to the latest version of libarchive that includes the patch for the integer overflow flaw.

3

What does REDHAT-BUG-2505492 affect?

REDHAT-BUG-2505492 affects the ZIP writer component of the libarchive library.

4

What flaw is described in REDHAT-BUG-2505492?

REDHAT-BUG-2505492 describes a signed integer overflow flaw in the archive_write_zip_header function when handling ZIP entries with large file sizes.

5

When was REDHAT-BUG-2505492 published?

REDHAT-BUG-2505492 was published on July 21, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
REDHAT-BUG-2505492 - Integer Overflow - SecAlerts