CVE-2023-39742: giflib v5.2.1 was discovered to contain a segmentation fault via the component getarg.c.
CVE-2023-39742 is a medium-severity flaw (CVSS 5.5) affecting giflib. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
giflib v5.2.1 was discovered to contain a segmentation fault via the component getarg.c.
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 72%) |
| CISA exploited list | No |
| Weakness | CWE-120 |
| Published | 2023-08-25 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-39742?
giflib: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2023-39742 being exploited?
CVE-2023-39742 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-39742 affect?
CVE-2023-39742 affects giflib. Severity is medium (CVSS 5.5). giflib v5.2.1 was discovered to contain a segmentation fault via the component getarg.c.
How urgent is CVE-2023-39742?
Priority 31/100. Public exploit reference
Related CVEs
- CVE-2023-48161 HIGH 7.1 DOWNGRADE Buffer Overflow vulnerability in GifLib Project GifLib v.5.2.1 allows a local attacker to obtain sensitive inf
- CVE-2026-26740 HIGH 8.2 DOWNGRADE Buffer Overflow vulnerability in giflib v.5.2.2 allows a remote attacker to cause a denial of service via the
- CVE-2026-23868 MEDIUM 5.1 UPGRADE Giflib contains a double-free vulnerability that is the result of a shallow copy in GifMakeSavedImage and inco
- CVE-2024-45993 MEDIUM 6.5 DOWNGRADE Giflib Project v5.2.2 is vulnerable to a heap buffer overflow via gif2rgb.
- CVE-2022-28506 MEDIUM 5.5 DOWNGRADE MITIGATE There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.