Every CVE Search/ Get API key

CVE-2018-6381

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13...

6.5 MediumFix available

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.70%Up 0.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
CVE-2018-6381
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
CVE-2018-6381
Updated
2026-11-02
EUVDEUVD-2018-18138 No score

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
EUVD-2018-18138
Updated
2026-11-03
GitHub AdvisoriesGHSA-pc5j-427r-h2x3 6.5

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13...

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
GHSA-pc5j-427r-h2x3
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 6.5

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
CVE-2018-6381
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-6381 6.5

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
DEBIAN-CVE-2018-6381
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVUBUNTU-CVE-2018-6381 6.5

In ZZIPlib 0.13.67, 0.13.66, 0.13.65, 0.13.64, 0.13.63, 0.13.62, 0.13.61, 0.13.60, 0.13.59, 0.13.58, 0.13.57 and 0.13.56 there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data.

Record
UBUNTU-CVE-2018-6381
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2019-0093 No score

Updated zziplib packages fix security vulnerability

In ZZIPlib 0.13.67, there is a segmentation fault caused by invalid memory access in the zzip_disk_fread function (zzip/mmapped.c) because the size variable is not validated against the amount of file->stored data (CVE-2018-6381).

An unaligned memory access bug was found in the way ZZIPlib handled ZIP files. This flaw could potentially be used to crash the application using ZZIPlib by tricking the application into processing specially crafted ZIP files (CVE-2018-6484).

In ZZIPlib 0.13.67, there is a bus error caused by loading of a misaligned address in the zzip_disk_findfirst function of zzip/mmapped.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted zip file (CVE-2018-6540).

A flaw was found in ZZIPlib 0.13.67, there is a bus error caused by loading of a misaligned address (when handling disk64_trailer local entries) in __zzip_fetch_disk_trailer (zzip/zip.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted zip file (CVE-2018-6541).

In ZZIPlib 0.13.67, there is a bus error (when handling a disk64_trailer seek value) caused by loading of a misaligned address in the zzip_disk_findfirst function of zzip/mmapped.c (CVE-2018-6542).

An uncontrolled memory allocation was found in ZZIPlib that could lead to a crash in the __zzip_parse_root_directory function of zzip/zip.c if the package is compiled with Address Sanitizer. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted zip file (CVE-2018-6869).

An out of bounds read was found in function zzip_disk_fread of ZZIPlib, up to 0.13.68, when ZZIPlib mem_disk functionality is used. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted zip file (CVE-2018-7725).

An improper input validation was found in function __zzip_fetch_disk_trailer of ZZIPlib, up to 0.13.68, that could lead to a crash in __zzip_parse_root_directory function of zzip/zip.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted zip file (CVE-2018-7726).

A memory leak was found in unzip-mem.c and unzzip-mem.c of ZZIPlib, up to v0.13.68, that could lead to resource exhaustion. Local attackers could leverage this vulnerability to cause a denial of service via a crafted zip file (CVE-2018-7727).

An issue was discovered in ZZIPlib through 0.13.69. There is a memory leak triggered in the function __zzip_parse_root_directory in zip.c, which could lead to a denial of service attack (CVE-2018-16548).

A flaw was found in ZZIPlib 0.13.69. A directory traversal vulnerability allows attackers to overwrite arbitrary files via a .. (dot dot) in a zip file, because of the function unzzip_cat in the bins/unzzipcat-mem.c file (CVE-2018-17828).

Record
MGASA-2019-0093
Updated
2026-11-02
OSVopenSUSE-SU-2024:11546-1 No score

libzzip-0-13-0.13.72-1.4 on GA media

These are all security issues fixed in the libzzip-0-13-0.13.72-1.4 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11546-1
Updated
2026-11-02
OSVSUSE-SU-2018:0548-1 No score

Security update for zziplib

This update for zziplib fixes the following issues:

Version update to 0.13.67 contains lots of bug- and security fixes.

  • If an extension block is too small to hold an extension, do not use the information therein.
  • CVE-2018-6540: If the End of central directory record (EOCD) contains an Offset of start of central directory which is beyond the end of the file, reject the file. (bsc#1079096)
  • CVE-2018-6484: Reject the ZIP file and report it as corrupt if the size of the central directory and/or the offset of start of central directory point beyond the end of the ZIP file. (bsc#1078701)
  • CVE-2018-6381: If a file is uncompressed, compressed and uncompressed sizes should be identical. (bsc#1078497)
Record
SUSE-SU-2018:0548-1
Updated
2026-11-02
OSVUSN-3699-1 No score

zziplib vulnerabilities

It was discovered that zziplib incorrectly handled certain malformed ZIP files. If a user or automated system were tricked into opening a specially crafted ZIP file, a remote attacker could cause zziplib to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-3699-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
zziplib
Debian:12
before 0.13.62-3.2
0.13.62-3.2
zziplib
Debian:13
before 0.13.62-3.2
0.13.62-3.2
zziplib
Debian:14
before 0.13.62-3.2
0.13.62-3.2
zziplib
Debian:8
From an advisory covering 8 CVEs
before 0.13.62-3+deb8u2, plus listed versions
0.13.62-30.13.62-3+deb8u1
0.13.62-3+deb8u2
zziplib
Mageia:6
From an advisory covering 11 CVEs
before 0.13.69-1.mga6
0.13.69-1.mga6
zziplib
SUSE:Linux Enterprise Desktop 12 SP2
From an advisory covering 3 CVEs
before 0.13.67-10.5.1
0.13.67-10.5.1
zziplib
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 3 CVEs
before 0.13.67-10.5.1
0.13.67-10.5.1
zziplib
SUSE:Linux Enterprise Software Development Kit 12 SP2
From an advisory covering 3 CVEs
before 0.13.67-10.5.1
0.13.67-10.5.1
zziplib
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 3 CVEs
before 0.13.67-10.5.1
0.13.67-10.5.1
zziplib
SUSE:Linux Enterprise Workstation Extension 12 SP2
From an advisory covering 3 CVEs
before 0.13.67-10.5.1
0.13.67-10.5.1
Show 8 moreShow less
Affected packages
PackageAffectedFixed
zziplib
SUSE:Linux Enterprise Workstation Extension 12 SP3
From an advisory covering 3 CVEs
before 0.13.67-10.5.1
0.13.67-10.5.1
zziplib
Ubuntu:14.04:LTS
before 0.13.62-2ubuntu0.2, plus listed versions
0.13.56-1.1ubuntu10.13.56-1.1ubuntu20.13.56-2ubuntu10.13.62-20.13.62-2ubuntu0.1
0.13.62-2ubuntu0.2
zziplib
Ubuntu:16.04:LTS
before 0.13.62-3ubuntu0.16.04.2, plus listed versions
0.13.62-30.13.62-3ubuntu0.16.04.1
0.13.62-3ubuntu0.16.04.2
zziplib
Ubuntu:18.04:LTS
before 0.13.62-3.1ubuntu0.18.04.1, plus listed versions
0.13.62-3.1
0.13.62-3.1ubuntu0.18.04.1
zziplib
Ubuntu:14.04:LTS
From an advisory covering 7 CVEs
before 0.13.62-2ubuntu0.2, plus listed versions
0.13.56-1.1ubuntu10.13.56-1.1ubuntu20.13.56-2ubuntu10.13.62-20.13.62-2ubuntu0.1
0.13.62-2ubuntu0.2
zziplib
Ubuntu:16.04:LTS
From an advisory covering 7 CVEs
before 0.13.62-3ubuntu0.16.04.2, plus listed versions
0.13.62-30.13.62-3ubuntu0.16.04.1
0.13.62-3ubuntu0.16.04.2
zziplib
Ubuntu:18.04:LTS
From an advisory covering 7 CVEs
before 0.13.62-3.1ubuntu0.18.04.1, plus listed versions
0.13.62-3.1
0.13.62-3.1ubuntu0.18.04.1
zziplib
openSUSE:Tumbleweed
From an advisory covering 14 CVEs
before 0.13.72-1.4
0.13.72-1.4

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-6381 is a medium vulnerability (CVSS 6.5) in Gdraheim Zziplib, published January 29, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.70%, the 77th percentile. Fixed in zziplib 0.13.62-3.2.

References

Show 41 moreShow less
MoveEnter Open