CVE-2023-30551: Rekor's compressed archives can result in OOM conditions

Published May 3, 2023
·
Updated

Summary Two vulnerabilities have been found in Rekor types for archive files JARs and APKs, where Rekor would crash due to out of memory conditions caused by reading archive metadata files into memory without checking their sizes first causing a Denial of Service of Rekor.

These vulnerabilities were found through fuzzing with OSS-Fuzz.

Vulnerability 1: OOM due to large files in META-INF directory of JAR files. Summary Verification of a JAR file submitted to Rekor can cause an out of memory crash if files within the META-INF directory of the JAR are sufficiently large.

Details As part of verifying a JAR file, Rekor uses the relic library to check that the JAR is signed, the signature verifies, and that the hashes in the signed manifest are all valid. This library function reads files within META-INF/ into memory without checking their sizes, resulting in an OOM if the uncompressed file is sufficiently large. Rekor is also not performing any such checks prior to passing the JAR to this library function.

Patches Users should update to the latest version of Rekor, 1.1.1.

Workaround There are no workarounds, users should update.

Vulnerability 2: OOM due to large .SIGN and .PKGINFO files in APK files. Summary Parsing of an APK file submitted to Rekor can cause an out of memory crash if the .SIGN or .PKGINFO files within the APK are sufficiently large.

Details When parsing an APK file, Rekor allocates byte slices to read both the .SIGN and .PKGINFO files into memory in order to verify the signature and hashes in the APK. These byte slices are allocated based on the size included in the tar header for each file, with no checks performed on that size. If the size in the header is sufficiently large, either because the uncompressed file is large or the size in the header has been artificially set to a large value, Rekor will crash due to an out of memory panic.

Patches Users should update to the latest version of Rekor, 1.1.1.

Workaround There are no workarounds, users should update.

Other sources

CVE-2023-30551:

Rekor is an open source software supply chain transparency log. Rekor prior to version 1.1.1 may crash due to out of memory (OOM) conditions caused by reading archive metadata files into memory without checking their sizes first. Verification of a JAR file submitted to Rekor can cause an out of memory crash if files within the META-INF directory of the JAR are sufficiently large. Parsing of an APK file submitted to Rekor can cause an out of memory crash if the .SIGN or .PKGINFO files within the APK are sufficiently large. The OOM crash has been patched in Rekor version 1.1.1. There are no known workarounds.

Reference: https://github.com/sigstore/rekor/security/advisories/GHSA-2h5h-59f5-c5x9

Upstream patch: https://github.com/sigstore/rekor/commit/cf42ace82667025fe128f7a50cf6b4cdff51cc48

— Red Hat

Affected Software

10 affected componentsFixes available
go/github.com/sigstore/rekor<1.1.1
1.1.1
linuxfoundation Rekor<1.1.1
redhat/rekor<1.1.1
1.1.1
alpine/rekor<1.1.1-r0
1.1.1-r0
alpine/rekor<1.1.1-r0
1.1.1-r0
alpine/rekor<1.1.1-r0
1.1.1-r0
alpine/rekor<1.1.1-r0
1.1.1-r0
alpine/rekor<1.1.1-r0
1.1.1-r0
alpine/rekor<1.1.1-r0
1.1.1-r0
alpine/rekor<1.1.1-r0
1.1.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/sigstore/rekor to a version that resolves this vulnerability.

    Fixed in 1.1.1
  2. Upgrade

    Upgrade redhat/rekor to a version that resolves this vulnerability.

    Fixed in 1.1.1
  3. Upgrade

    Upgrade alpine/rekor to a version that resolves this vulnerability.

    Fixed in 1.1.1-r0
  4. Upgrade

    Upgrade Rekor to a version that resolves this vulnerability.

    Fixed in 1.1.1

Event History

May 3, 2023
Advisory Published
09:56 PM
May 8, 2023
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
DescriptionSeverityWeakness
Data Sourced
04:15 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
May 9, 2023
Data Sourced
via Red Hat·06:16 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-30551?

CVE-2023-30551 has a Denial of Service severity due to out of memory conditions in Rekor.

2

How do I fix CVE-2023-30551?

To fix CVE-2023-30551, upgrade Rekor to version 1.1.1 or later.

3

What causes the vulnerability CVE-2023-30551?

CVE-2023-30551 is caused by Rekor reading archive metadata files into memory without size checks.

4

Can CVE-2023-30551 affect my system?

Yes, CVE-2023-30551 can lead to a Denial of Service for any systems running affected versions of Rekor.

5

What versions are affected by CVE-2023-30551?

CVE-2023-30551 affects Rekor versions prior to 1.1.1.

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