Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HSEC-2024-0002 #157

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions advisories/hackage/bz2/HSEC-2024-0002.md
1 change: 1 addition & 0 deletions advisories/hackage/bzlib-conduit/HSEC-2024-0002.md
61 changes: 61 additions & 0 deletions advisories/hackage/bzlib/HSEC-2024-0002.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
```toml
[advisory]
id = "HSEC-2024-0002"
cwe = [787]
frasertweedale marked this conversation as resolved.
Show resolved Hide resolved
keywords = ["corruption", "vendored-code", "language-c"]
aliases = ["CVE-2019-12900"]

[[references]]
type = "DISCUSSION"
url = "https://gnu.wildebeest.org/blog/mjw/2019/08/02/bzip2-and-the-cve-that-wasnt/"

[[references]]
type = "DISCUSSION"
url = "http://scary.beasts.org/security/CESA-2008-005.html"

[[references]]
type = "ADVISORY"
url = "https://access.redhat.com/security/cve/cve-2019-12900"

[[references]]
type = "FIX"
url = "https://sourceware.org/git/?p=bzip2.git;a=commit;h=7ed62bfb46e87a9e878712603469440e6882b184"

[[affected]]
package = "bzlib"
cvss = "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"

[[affected.versions]]
introduced = "0.4"
fixed = "0.5.2.0"

[[affected]]
package = "bz2"
cvss = "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"

[[affected.versions]]
introduced = "0.1.0.0"
fixed = "1.0.1.1"

[[affected]]
package = "bzlib-conduit"
cvss = "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"

[[affected.versions]]
introduced = "0.1.0.0"
fixed = "0.3.0.3"
```

# out-of-bounds write when there are many bzip2 selectors

A malicious bzip2 payload may produce a memory corruption
resulting in a denial of service and/or remote code execution.
Network services or command line utilities decompressing
untrusted bzip2 payloads are affected.

Note that the exploitation of this bug relies on an undefined
behavior that appears to be handled safely by current compilers.

The Haskell libraires are vulnerable when they are built using
the bundled C library source code, which is the default
in most cases.
1 change: 1 addition & 0 deletions code/cvss/test/Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ examples =
, ("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", 6.1, CVSS.Medium)
, ("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", 6.4, CVSS.Medium)
, ("CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N", 3.1, CVSS.Low)
, ("CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", 4.0, CVSS.Medium)
, ("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", 9.9, CVSS.Critical)
, ("CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L", 4.2, CVSS.Medium)
, ("CVSS:2.0/AV:N/AC:L/Au:N/C:N/I:N/A:C", 7.8, CVSS.High)
Expand Down
Loading