CVE-2023-2804

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-2804
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2804.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-2804
Related
Published
2023-05-25T22:15:09Z
Modified
2024-12-05T15:34:51.540690Z
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

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

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

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

Git / github.com/libjpeg-turbo/libjpeg-turbo

Affected ranges

Type
GIT
Repo
https://github.com/libjpeg-turbo/libjpeg-turbo
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.0.90
0.0.91
0.0.93

1.*

1.0.0
1.0.1
1.0.90
1.1.0
1.1.1
1.1.90
1.2.0
1.2.1
1.2.90
1.3.0
1.3.1
1.3.90
1.4.0
1.4.1
1.4.2
1.4.90
1.5.0
1.5.1
1.5.2
1.5.3
1.5.90

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.90
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.90
2.1.91

Other

jpeg-1
jpeg-2
jpeg-3
jpeg-4
jpeg-4a
jpeg-5
jpeg-5a
jpeg-5b
jpeg-6
jpeg-6a
jpeg-6b
jpeg-6bl
jpeg-6bl-drc
jpeg-6bx
jpeg-7
jpeg-8
jpeg-8a
jpeg-8b
jpeg-8c
jpeg-8d
jpeg-9
jpeg-9a
jpeg-9b
jpeg-9c
jpeg-9d
jpeg-ari