cve.bz

CVE-2020-12762 Year 2038 problem, Y2K38, Y2038, Epochalypse

7.8 highExploit referenceEPSS 1.9%Fix available

High (7.8). EPSS 1.9% estimated probability of exploitation activity in the next 30 days.

On this page
json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON file, as demonstrated by printbuf_memappend.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-05-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-12762 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-12762?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-12762?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-12762 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2020-12762

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2020-12762](https://cve.bz/cve/badge/CVE-2020-12762.svg)](https://cve.bz/cve/CVE-2020-12762)

HTML:

<a href="https://cve.bz/cve/CVE-2020-12762"><img src="https://cve.bz/cve/badge/CVE-2020-12762.svg" alt="CVE-2020-12762"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
json-c:json-cbefore 0.15-20200726
fedoraproject:fedora30
fedoraproject:fedora31
fedoraproject:fedora32
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.10
canonical:ubuntu_linux20.04
siemens:sinec_ins1.0
siemens:sinec_ins1.0:sp1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8json-c0.11-4+deb8u1DLA-2228-1
Debian8json-c0.11-4+deb8u2DLA-2228-2
Debian9json-c0.12.1-1.1+deb9u1DLA-2301-1
Debian10json-c0.12.1+ds-2+deb10u1DSA-4741-1
Debian10libfastjson0.99.8-2+deb10u1DLA-3461-1
Debian11libfastjson0.99.9-1+deb11u1DLA-4258-1
Debian12, 13, 14json-c0.13.1+dfsg-8DEBIAN-CVE-2020-12762
Debian12, 13, 14libfastjson1.2304.0-1DEBIAN-CVE-2020-12762
Ubuntu16.04:LTSjson-c0.11-4ubuntu2.6UBUNTU-CVE-2020-12762 USN-4360-1 USN-4360-4
Ubuntu18.04:LTSjson-c0.12.1-1.3ubuntu0.3UBUNTU-CVE-2020-12762 USN-4360-1 USN-4360-4
Ubuntu20.04:LTSjson-c0.13.1+dfsg-7ubuntu0.3UBUNTU-CVE-2020-12762 USN-4360-1 USN-4360-4
UbuntuPro:14.04:LTSjson-c0.11-3ubuntu1.2+esm3UBUNTU-CVE-2020-12762 USN-4360-1 USN-4360-4
Red Hatenterprise_linux:8::appstreamjson-c-devel, json-c-debuginfo, json-c-debugsource0:0.13.1-2.el8RHSA-2021:4382
Red Hatenterprise_linux:8::appstreamlibfastjson, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-2.el8RHSA-2023:6976
Red Hatenterprise_linux:8::baseosjson-c, json-c-debuginfo, json-c-debugsource0:0.13.1-2.el8RHSA-2021:4382
Red Hatenterprise_linux:8::crbjson-c-doc0:0.13.1-2.el8RHSA-2021:4382
Red Hatenterprise_linux:9::appstreamlibfastjson, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-5.el9RHSA-2023:6431
Red Hatenterprise_linux:9::crblibfastjson-devel, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-5.el9RHSA-2023:6431
Red Hatrhel_eus:8.6::appstreamlibfastjson, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-1.el8_6.1RHSA-2024:0411
Red Hatrhel_eus:8.8::appstreamlibfastjson, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-1.el8_8.1RHSA-2024:0573
Red Hatrhel_eus:9.0::appstreamlibfastjson, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-3.el9_0.1RHSA-2024:1154
Red Hatrhel_eus:9.2::appstreamlibfastjson, libfastjson-debuginfo, libfastjson-debugsource0:0.99.9-3.el9_2.1RHSA-2024:1086
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 19 morejson-c0.13-3.3.1SUSE-SU-2022:0184-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morelibfastjson0.99.8-150000.3.3.1SUSE-SU-2024:1775-1
SUSELinux Enterprise Module for Basesystem 15 SP4libfastjson0.99.9-150400.3.3.1SUSE-SU-2023:2135-1
SUSELinux Enterprise Real Time 15 SP2json-c0.13-3.3.1SUSE-SU-2022:0184-2
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 6 morejson-c0.12.1-4.3.1SUSE-SU-2022:3001-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5libfastjson0.99.8-3.6.1SUSE-SU-2024:1846-1
openSUSELeap 15.3json-c0.13-3.3.1openSUSE-SU-2022:0184-1
openSUSELeap 15.4libfastjson0.99.9-150400.3.3.1SUSE-SU-2023:2135-1
AlmaLinux8json-c-doc, json-c-devel0.13.1-2.el8ALSA-2021:4382
AlmaLinux8libfastjson0.99.9-2.el8ALSA-2023:6976
AlmaLinux9libfastjson, libfastjson-devel0.99.9-5.el9ALSA-2023:6431
Rocky Linux8json-c0:0.13.1-2.el8RLSA-2021:4382
Rocky Linux8libfastjson0:0.99.9-2.el8RLSA-2023:6976
Rocky Linux9libfastjson0:0.99.9-5.el9RLSA-2023:6431
Alpinev3.9, v3.10, v3.11json-c0.13.1-r1ALPINE-CVE-2020-12762
Alpinev3.12, v3.13, v3.14 and 10 morejson-c0.14-r1ALPINE-CVE-2020-12762
Alpinev3.15, v3.16, v3.17 and 7 morelibfastjson1.2304.0-r0ALPINE-CVE-2020-12762
Azure Linux2json-c0.15-2AZL-6506

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This is essentially a integer overflow in the 'size' variable caused by large data input. In most systems its a signed integer overflow and results in out of bounds buffer write on the heap. However the impact is greatly reduced because such an attack is only possible if the application compiled with json-c is designed to accept untrusted large json files. Also the attack vector in this case as considered as local in most practical cases.

Red Hat's mitigation

Since this flaw is triggered by untrusted large json files. If any applications linked against json-c is used ensure that the application does not accept large json files. (or untrusted ones wherever possible)

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8json-c-0:0.13.1-2.el8Fixed 2021-11-09RHSA-2021:4382
Red Hat Enterprise Linux 8libfastjson-0:0.99.9-2.el8Fixed 2023-11-14RHSA-2023:6976
Red Hat Enterprise Linux 8.6 Extended Update Supportlibfastjson-0:0.99.9-1.el8_6.1Fixed 2024-01-25RHSA-2024:0411
Red Hat Enterprise Linux 8.8 Extended Update Supportlibfastjson-0:0.99.9-1.el8_8.1Fixed 2024-01-30RHSA-2024:0573
Red Hat Enterprise Linux 9libfastjson-0:0.99.9-5.el9Fixed 2023-11-07RHSA-2023:6431
Red Hat Enterprise Linux 9.0 Extended Update Supportlibfastjson-0:0.99.9-3.el9_0.1Fixed 2024-03-05RHSA-2024:1154
Red Hat Enterprise Linux 9.2 Extended Update Supportlibfastjson-0:0.99.9-3.el9_2.1Fixed 2024-03-05RHSA-2024:1086
Red Hat Enterprise Linux 6json-cWill not fix
Red Hat Enterprise Linux 7json-cWill not fix
Red Hat Enterprise Linux 9json-cNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-12762.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed
ICSA-22-258-05Siemens SINEC INS2022-09-13MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON