ALPINE-CVE-2023-2804

Source
https://security.alpinelinux.org/vuln/CVE-2023-2804
Import Source
https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json
JSON Data
https://api.osv.dev/v1/vulns/ALPINE-CVE-2023-2804
Upstream
Published
2023-05-25T22:15:09.443Z
Modified
2025-12-03T22:52:23.801444Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2mergedupsample_internal() function of jdmrgext.c file. The vulnerability can only be exploited with 12-bit data precision for which the range of the sample data type exceeds the valid sample range, hence, an attacker could craft a 12-bit lossless JPEG image that contains out-of-range 12-bit samples. An application attempting to decompress such image using merged upsampling would lead to segmentation fault or buffer overflows, causing an application to crash.

References

Affected packages

Alpine:v3.18

libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:apk/alpine/libjpeg-turbo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5.1-r3

Affected versions

1.*

1.2.1-r0
1.2.1-r1
1.2.1-r2
1.2.1-r3
1.3.0-r0
1.3.0-r1
1.3.1-r0
1.4.0-r0
1.4.1-r0
1.4.2-r0
1.5.0-r0
1.5.1-r0
1.5.2-r0
1.5.3-r0
1.5.3-r1
1.5.3-r2
1.5.3-r3
1.5.3-r4

2.*

2.0.2-r0
2.0.3-r0
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.5-r0
2.0.5-r1
2.0.6-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.2-r1
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.1.5-r0
2.1.5-r1
2.1.5.1-r0
2.1.5.1-r1
2.1.5.1-r2

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json"

Alpine:v3.19

libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:apk/alpine/libjpeg-turbo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5.1-r4

Affected versions

1.*

1.2.1-r0
1.2.1-r1
1.2.1-r2
1.2.1-r3
1.3.0-r0
1.3.0-r1
1.3.1-r0
1.4.0-r0
1.4.1-r0
1.4.2-r0
1.5.0-r0
1.5.1-r0
1.5.2-r0
1.5.3-r0
1.5.3-r1
1.5.3-r2
1.5.3-r3
1.5.3-r4

2.*

2.0.2-r0
2.0.3-r0
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.5-r0
2.0.5-r1
2.0.6-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.2-r1
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.1.5-r0
2.1.5-r1
2.1.5.1-r0
2.1.5.1-r1
2.1.5.1-r2
2.1.5.1-r3

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json"

Alpine:v3.20

libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:apk/alpine/libjpeg-turbo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5.1-r4

Affected versions

1.*

1.2.1-r0
1.2.1-r1
1.2.1-r2
1.2.1-r3
1.3.0-r0
1.3.0-r1
1.3.1-r0
1.4.0-r0
1.4.1-r0
1.4.2-r0
1.5.0-r0
1.5.1-r0
1.5.2-r0
1.5.3-r0
1.5.3-r1
1.5.3-r2
1.5.3-r3
1.5.3-r4

2.*

2.0.2-r0
2.0.3-r0
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.5-r0
2.0.5-r1
2.0.6-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.2-r1
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.1.5-r0
2.1.5-r1
2.1.5.1-r0
2.1.5.1-r1
2.1.5.1-r2
2.1.5.1-r3

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json"

Alpine:v3.21

libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:apk/alpine/libjpeg-turbo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5.1-r4

Affected versions

1.*

1.2.1-r0
1.2.1-r1
1.2.1-r2
1.2.1-r3
1.3.0-r0
1.3.0-r1
1.3.1-r0
1.4.0-r0
1.4.1-r0
1.4.2-r0
1.5.0-r0
1.5.1-r0
1.5.2-r0
1.5.3-r0
1.5.3-r1
1.5.3-r2
1.5.3-r3
1.5.3-r4

2.*

2.0.2-r0
2.0.3-r0
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.5-r0
2.0.5-r1
2.0.6-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.2-r1
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.1.5-r0
2.1.5-r1
2.1.5.1-r0
2.1.5.1-r1
2.1.5.1-r2
2.1.5.1-r3

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json"

Alpine:v3.22

libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:apk/alpine/libjpeg-turbo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5.1-r4

Affected versions

1.*

1.2.1-r0
1.2.1-r1
1.2.1-r2
1.2.1-r3
1.3.0-r0
1.3.0-r1
1.3.1-r0
1.4.0-r0
1.4.1-r0
1.4.2-r0
1.5.0-r0
1.5.1-r0
1.5.2-r0
1.5.3-r0
1.5.3-r1
1.5.3-r2
1.5.3-r3
1.5.3-r4

2.*

2.0.2-r0
2.0.3-r0
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.5-r0
2.0.5-r1
2.0.6-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.2-r1
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.1.5-r0
2.1.5-r1
2.1.5.1-r0
2.1.5.1-r1
2.1.5.1-r2
2.1.5.1-r3

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json"

Alpine:v3.23

libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:apk/alpine/libjpeg-turbo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5.1-r4

Affected versions

1.*

1.2.1-r0
1.2.1-r1
1.2.1-r2
1.2.1-r3
1.3.0-r0
1.3.0-r1
1.3.1-r0
1.4.0-r0
1.4.1-r0
1.4.2-r0
1.5.0-r0
1.5.1-r0
1.5.2-r0
1.5.3-r0
1.5.3-r1
1.5.3-r2
1.5.3-r3
1.5.3-r4

2.*

2.0.2-r0
2.0.3-r0
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.5-r0
2.0.5-r1
2.0.6-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.2-r1
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.1.5-r0
2.1.5-r1
2.1.5.1-r0
2.1.5.1-r1
2.1.5.1-r2
2.1.5.1-r3

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-2804.json"