Action not permitted
Modal body text goes here.
Modal Title
Modal Body
EUVD-2026-412257
European Vulnerability Database identifier assigned by ENISAReserved
2026-11-24 15:50
Assigner
ENISA
Alias of
a CVE record, shown under related vulnerabilities.
This identifier carries no description, severity or references of its own:
they belong to that CVE.
{
"assigner": "ENISA",
"date_reserved": "2026-11-24T15:50:23.045497+00:00",
"id": "EUVD-2026-412257"
}
CVE-2026-120961 (GCVE-0-2026-120961)
Vulnerability from cvelistv5 – Published: 2026-11-24 15:10 – Updated: 2026-11-24 15:10
VLAI
EPSS
VEX
Title
binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM
Summary
Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to read memory after the input, and to change one byte there, via a FLOAT_EXT term without a terminating zero byte. decoded_size in erts/emulator/beam/external.c checks only that the 31 bytes of the FLOAT_EXT field are present. dec_term then passes the field to sys_chars_to_double, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and strtod does not accept it, sys_chars_to_double overwrites that byte (a , becomes a .). The VM can fault if the scan reaches an unmapped page.
The safe option does not prevent this. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.
This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.
Severity
CWE
- CWE-125 - Out-of-bounds Read
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/erlang/otp/security/advisories… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-120961.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-120961 | related |
| https://www.erlang.org/doc/system/versions.html#o… | x_version-scheme |
| https://github.com/erlang/otp/commit/4b954b8aa0f6… | patch |
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| Erlang | OTP |
Affected:
6.0 , < *
(otp)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
|
| Erlang | OTP |
Affected:
17.0 , < *
(otp)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
|
| Erlang | OTP |
Affected:
84adefa331c4159d432d22840663c38f155cd4c1 , < 4b954b8aa0f601a0d8d45f0953c77585afb6f853
(git)
Unaffected: 4b954b8aa0f601a0d8d45f0953c77585afb6f853 , < * (git) cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 15:10
{
"containers": {
"cna": {
"affected": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"erlang",
"external",
"erl_nif",
"sys_float"
],
"packageName": "erts",
"packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"product": "OTP",
"programFiles": [
"emulator/beam/external.c",
"emulator/beam/erl_nif.c",
"emulator/sys/unix/sys_float.c",
"emulator/sys/win32/sys_float.c"
],
"programRoutines": [
{
"name": "erlang:binary_to_term/1"
},
{
"name": "erlang:binary_to_term/2"
},
{
"name": "dec_term"
},
{
"name": "enif_binary_to_term"
},
{
"name": "sys_chars_to_double"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "15.2.7.15",
"status": "unaffected"
},
{
"at": "16.4.0.8",
"status": "unaffected"
},
{
"at": "17.1.2",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "6.0",
"versionType": "otp"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"erlang",
"external",
"erl_nif",
"sys_float"
],
"packageName": "otp",
"packageURL": "pkg:software-id/erlang.org/otp",
"product": "OTP",
"programFiles": [
"erts/emulator/beam/external.c",
"erts/emulator/beam/erl_nif.c",
"erts/emulator/sys/unix/sys_float.c",
"erts/emulator/sys/win32/sys_float.c"
],
"programRoutines": [
{
"name": "erlang:binary_to_term/1"
},
{
"name": "erlang:binary_to_term/2"
},
{
"name": "dec_term"
},
{
"name": "enif_binary_to_term"
},
{
"name": "sys_chars_to_double"
}
],
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "27.3.4.20",
"status": "unaffected"
},
{
"at": "28.5.0.9",
"status": "unaffected"
},
{
"at": "29.1.3",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "17.0",
"versionType": "otp"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"erlang",
"external",
"erl_nif",
"sys_float"
],
"packageName": "erlang/otp",
"packageURL": "pkg:github/erlang/otp",
"product": "OTP",
"programFiles": [
"erts/emulator/beam/external.c",
"erts/emulator/beam/erl_nif.c",
"erts/emulator/sys/unix/sys_float.c",
"erts/emulator/sys/win32/sys_float.c"
],
"programRoutines": [
{
"name": "erlang:binary_to_term/1"
},
{
"name": "erlang:binary_to_term/2"
},
{
"name": "dec_term"
},
{
"name": "enif_binary_to_term"
},
{
"name": "sys_chars_to_double"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"lessThan": "4b954b8aa0f601a0d8d45f0953c77585afb6f853",
"status": "affected",
"version": "84adefa331c4159d432d22840663c38f155cd4c1",
"versionType": "git"
},
{
"lessThan": "*",
"status": "unaffected",
"version": "4b954b8aa0f601a0d8d45f0953c77585afb6f853",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "27.3.4.20",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "28.5.0.9",
"versionStartIncluding": "28.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "29.1.3",
"versionStartIncluding": "29.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Khaled Suliman"
},
{
"lang": "en",
"type": "reporter",
"value": "Khaled Suliman"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
}
],
"dateAssigned": "2026-11-11T12:24:29.000Z",
"datePublic": "2026-11-24T15:10:39.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eOut-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e to read memory after the input, and to change one byte there, via a \u003ccode\u003eFLOAT_EXT\u003c/code\u003e term without a terminating zero byte. \u003ccode\u003edecoded_size\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e checks only that the 31 bytes of the \u003ccode\u003eFLOAT_EXT\u003c/code\u003e field are present. \u003ccode\u003edec_term\u003c/code\u003e then passes the field to \u003ccode\u003esys_chars_to_double\u003c/code\u003e, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and \u003ccode\u003estrtod\u003c/code\u003e does not accept it, \u003ccode\u003esys_chars_to_double\u003c/code\u003e overwrites that byte (a \u003ccode\u003e,\u003c/code\u003e becomes a \u003ccode\u003e.\u003c/code\u003e). The VM can fault if the scan reaches an unmapped page.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003esafe\u003c/code\u003e option does not prevent this. \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u0026nbsp;17.0, corresponding to erts before 6.0, is affected is unknown.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to `binary_to_term/1,2` to read memory after the input, and to change one byte there, via a `FLOAT_EXT` term without a terminating zero byte. `decoded_size` in `erts/emulator/beam/external.c` checks only that the 31 bytes of the `FLOAT_EXT` field are present. `dec_term` then passes the field to `sys_chars_to_double`, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and `strtod` does not accept it, `sys_chars_to_double` overwrites that byte (a `,` becomes a `.`). The VM can fault if the scan reaches an unmapped page.\n\nThe `safe` option does not prevent this. `enif_binary_to_term()` and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
}
],
"value": "Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to read memory after the input, and to change one byte there, via a FLOAT_EXT term without a terminating zero byte. decoded_size in erts/emulator/beam/external.c checks only that the 31 bytes of the FLOAT_EXT field are present. dec_term then passes the field to sys_chars_to_double, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and strtod does not accept it, sys_chars_to_double overwrites that byte (a , becomes a .). The VM can fault if the scan reaches an unmapped page.\n\nThe safe option does not prevent this. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
}
],
"impacts": [
{
"capecId": "CAPEC-540",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can supply bytes to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e or \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e can make the decoder read bytes after the input, which then change the decoded float, and can change one \u003ccode\u003e,\u003c/code\u003e byte after the input to \u003ccode\u003e.\u003c/code\u003e. The VM can abort if the read reaches unmapped memory.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can supply bytes to `binary_to_term/1,2` or `enif_binary_to_term()` can make the decoder read bytes after the input, which then change the decoded float, and can change one `,` byte after the input to `.`. The VM can abort if the read reaches unmapped memory."
}
],
"value": "An attacker who can supply bytes to binary_to_term/1,2 or enif_binary_to_term() can make the decoder read bytes after the input, which then change the decoded float, and can change one , byte after the input to .. The VM can abort if the read reaches unmapped memory."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125 Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T15:10:40.813Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/erlang/otp/security/advisories/GHSA-r7pf-rpq8-5pf4"
},
{
"name": "EEF CNA record for CVE-2026-120961",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-120961.html"
},
{
"name": "OSV record EEF-CVE-2026-120961",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-120961"
},
{
"name": "Erlang/OTP version ordering",
"tags": [
"x_version-scheme"
],
"url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
},
{
"name": "Fix commit 4b954b8 in erlang/otp",
"tags": [
"patch"
],
"url": "https://github.com/erlang/otp/commit/4b954b8aa0f601a0d8d45f0953c77585afb6f853"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cul\u003e\n\u003cli\u003eDo not call \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\u003c/li\u003e\n\u003cli\u003eIf distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\u003c/li\u003e\n\u003cli\u003eUse alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the \u003ccode\u003e[safe]\u003c/code\u003e option to \u003ccode\u003ebinary_to_term/2\u003c/code\u003e does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings.\u003c/li\u003e\n\u003c/ul\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "* Do not call `binary_to_term/1,2` on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the `[safe]` option to `binary_to_term/2` does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings."
}
],
"value": "* Do not call binary_to_term/1,2 on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input. Note: the [safe] option to binary_to_term/2 does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eBuild a \u003ccode\u003eFLOAT_EXT\u003c/code\u003e field without a NUL byte: tag 99 followed by the 31 bytes \u003ccode\u003e1.0e\u003c/code\u003e plus 26 times \u003ccode\u003e0\u003c/code\u003e plus \u003ccode\u003e1\u003c/code\u003e. This is the float 10.0.\u003c/li\u003e\n\u003cli\u003ePut the field at the end of an input, for example as the last element of a \u003ccode\u003eSMALL_TUPLE_EXT\u003c/code\u003e after the version byte 131.\u003c/li\u003e\n\u003cli\u003eBuild a larger binary that holds the input followed by the bytes \u003ccode\u003e7\u003c/code\u003e and NUL. Take the input as a sub-binary with \u003ccode\u003ebinary:part/3\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eCall \u003ccode\u003ebinary_to_term/2\u003c/code\u003e with \u003ccode\u003e[safe]\u003c/code\u003e on the sub-binary. The last element decodes as \u003ccode\u003e1.0e17\u003c/code\u003e and not \u003ccode\u003e10.0\u003c/code\u003e: the decoder read the \u003ccode\u003e7\u003c/code\u003e after the input.\u003c/li\u003e\n\u003cli\u003eFor the write, use the 31 digits \u003ccode\u003e1234567890123456789012345678901\u003c/code\u003e as the field and put \u003ccode\u003e,5\u003c/code\u003e and NUL after the input. After the call, the \u003ccode\u003e,\u003c/code\u003e byte in the parent binary is a \u003ccode\u003e.\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Build a `FLOAT_EXT` field without a NUL byte: tag 99 followed by the 31 bytes `1.0e` plus 26 times `0` plus `1`. This is the float 10.0.\n2. Put the field at the end of an input, for example as the last element of a `SMALL_TUPLE_EXT` after the version byte 131.\n3. Build a larger binary that holds the input followed by the bytes `7` and NUL. Take the input as a sub-binary with `binary:part/3`.\n4. Call `binary_to_term/2` with `[safe]` on the sub-binary. The last element decodes as `1.0e17` and not `10.0`: the decoder read the `7` after the input.\n5. For the write, use the 31 digits `1234567890123456789012345678901` as the field and put `,5` and NUL after the input. After the call, the `,` byte in the parent binary is a `.`."
}
],
"value": "* Build a FLOAT_EXT field without a NUL byte: tag 99 followed by the 31 bytes 1.0e plus 26 times 0 plus 1. This is the float 10.0.\n* Put the field at the end of an input, for example as the last element of a SMALL_TUPLE_EXT after the version byte 131.\n* Build a larger binary that holds the input followed by the bytes 7 and NUL. Take the input as a sub-binary with binary:part/3.\n* Call binary_to_term/2 with [safe] on the sub-binary. The last element decodes as 1.0e17 and not 10.0: the decoder read the 7 after the input.\n* For the write, use the 31 digits 1234567890123456789012345678901 as the field and put ,5 and NUL after the input. After the call, the , byte in the parent binary is a .."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Size pass.\u003c/strong\u003e \u003ccode\u003ebinary_to_term_int\u003c/code\u003e first calls \u003ccode\u003edecoded_size\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e. For \u003ccode\u003eFLOAT_EXT\u003c/code\u003e (tag 99), \u003ccode\u003edecoded_size\u003c/code\u003e skips 31 bytes and reserves heap for one float. It does not examine the content of the field.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Decode pass.\u003c/strong\u003e \u003ccode\u003edec_term\u003c/code\u003e passes the pointer to the field to \u003ccode\u003esys_chars_to_double\u003c/code\u003e and then advances by 31 bytes. The call carries no length. \u003ccode\u003esys_chars_to_double\u003c/code\u003e (in \u003ccode\u003eerts/emulator/sys/unix/sys_float.c\u003c/code\u003e and \u003ccode\u003eerts/emulator/sys/win32/sys_float.c\u003c/code\u003e) treats the field as a C string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Out-of-bounds read.\u003c/strong\u003e \u003ccode\u003esys_chars_to_double\u003c/code\u003e checks the float syntax one character at a time and requires a NUL after the last digit. A valid encoder pads the field with NUL bytes. When all 31 bytes are part of a float, the scan and the subsequent \u003ccode\u003estrtod\u003c/code\u003e call continue into the bytes after the field. When the field is the last term of the input, these are bytes after the input. If they complete a valid float and a NUL follows, the decoded value contains them.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. One-byte write.\u003c/strong\u003e \u003ccode\u003esys_chars_to_double\u003c/code\u003e remembers the position of the radix character, which can be \u003ccode\u003e.\u003c/code\u003e or \u003ccode\u003e,\u003c/code\u003e. If \u003ccode\u003estrtod\u003c/code\u003e stops before the end of the scanned string, the function replaces the radix character with the other one in place and calls \u003ccode\u003estrtod\u003c/code\u003e again. When the field contains only digits, the radix character is a byte after the field. A \u003ccode\u003e,\u003c/code\u003e there is changed to \u003ccode\u003e.\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5. Fault.\u003c/strong\u003e The scan has no upper limit. If only digits follow up to the end of the mapped memory, the read faults and the VM aborts.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Size pass.** `binary_to_term_int` first calls `decoded_size` in `erts/emulator/beam/external.c`. For `FLOAT_EXT` (tag 99), `decoded_size` skips 31 bytes and reserves heap for one float. It does not examine the content of the field.\n\n**2. Decode pass.** `dec_term` passes the pointer to the field to `sys_chars_to_double` and then advances by 31 bytes. The call carries no length. `sys_chars_to_double` (in `erts/emulator/sys/unix/sys_float.c` and `erts/emulator/sys/win32/sys_float.c`) treats the field as a C string.\n\n**3. Out-of-bounds read.** `sys_chars_to_double` checks the float syntax one character at a time and requires a NUL after the last digit. A valid encoder pads the field with NUL bytes. When all 31 bytes are part of a float, the scan and the subsequent `strtod` call continue into the bytes after the field. When the field is the last term of the input, these are bytes after the input. If they complete a valid float and a NUL follows, the decoded value contains them.\n\n**4. One-byte write.** `sys_chars_to_double` remembers the position of the radix character, which can be `.` or `,`. If `strtod` stops before the end of the scanned string, the function replaces the radix character with the other one in place and calls `strtod` again. When the field contains only digits, the radix character is a byte after the field. A `,` there is changed to `.`.\n\n**5. Fault.** The scan has no upper limit. If only digits follow up to the end of the mapped memory, the read faults and the VM aborts."
}
],
"value": "1. Size pass. binary_to_term_int first calls decoded_size in erts/emulator/beam/external.c. For FLOAT_EXT (tag 99), decoded_size skips 31 bytes and reserves heap for one float. It does not examine the content of the field.\n\n2. Decode pass. dec_term passes the pointer to the field to sys_chars_to_double and then advances by 31 bytes. The call carries no length. sys_chars_to_double (in erts/emulator/sys/unix/sys_float.c and erts/emulator/sys/win32/sys_float.c) treats the field as a C string.\n\n3. Out-of-bounds read. sys_chars_to_double checks the float syntax one character at a time and requires a NUL after the last digit. A valid encoder pads the field with NUL bytes. When all 31 bytes are part of a float, the scan and the subsequent strtod call continue into the bytes after the field. When the field is the last term of the input, these are bytes after the input. If they complete a valid float and a NUL follows, the decoded value contains them.\n\n4. One-byte write. sys_chars_to_double remembers the position of the radix character, which can be . or ,. If strtod stops before the end of the scanned string, the function replaces the radix character with the other one in place and calls strtod again. When the field contains only digits, the radix character is a byte after the field. A , there is changed to ..\n\n5. Fault. The scan has no upper limit. If only digits follow up to the end of the mapped memory, the read faults and the VM aborts."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-120961",
"datePublished": "2026-11-24T15:10:40.813Z",
"dateReserved": "2026-11-10T11:01:31.673Z",
"dateUpdated": "2026-11-24T15:10:40.813Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
Loading…
Trend slope:
-
(linear fit over daily sighting counts)
Show additional events:
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…
Loading…