A vulnerability was determined in berry-lang berry up to 1.1.0. The affected element is the function scanstring of the file src/belexer.c. This manipulation causes out-of-bounds read. The attack requires local access. The exploit has been publicly disclosed and may be utilized. Patch name: 7149c59a39ba44feca261b12f06089f265fec176. Applying a patch is the recommended action to fix this issue.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "1.0"
},
{
"last_affected": "1.0"
}
],
"source": "AFFECTED_FIELD"
}
],
"cwe_ids": [
"CWE-119",
"CWE-125"
],
"cna_assigner": "VulDB",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3285.json"
}"2026-07-15T20:54:35Z"
[
{
"source": "https://github.com/berry-lang/berry/commit/7149c59a39ba44feca261b12f06089f265fec176",
"digest": {
"length": 527.0,
"function_hash": "171909988789556060815880846552433693707"
},
"deprecated": false,
"id": "CVE-2026-3285-0af35d71",
"signature_version": "v1",
"target": {
"file": "src/be_lexer.c",
"function": "scan_string"
},
"signature_type": "Function"
},
{
"source": "https://github.com/berry-lang/berry/commit/7149c59a39ba44feca261b12f06089f265fec176",
"digest": {
"line_hashes": [
"158807579498153835044010150474020024592",
"196127997163451423732466084733066000552",
"326115317715822798537160605998773527020",
"284513134435939560701406010489424611567"
],
"threshold": 0.9
},
"deprecated": false,
"id": "CVE-2026-3285-3b3d83b7",
"signature_version": "v1",
"target": {
"file": "src/be_lexer.c"
},
"signature_type": "Line"
},
{
"source": "https://github.com/berry-lang/berry/commit/7149c59a39ba44feca261b12f06089f265fec176",
"digest": {
"line_hashes": [
"200123996703519491286523834886868032691",
"264960970511847308578059668493816500019",
"144918738726185877807504602889873033344",
"106659540769191730938905014706470239641",
"289912598733419863931404018143882904519",
"243748564966822156717794339939290823973",
"30295754120311536244214602692123550702",
"260090756479401332349881312885170561153",
"104401179505788755898332766053001361639",
"47624470960068159401329109252413971309",
"136577907361952520390700692552107287751",
"256707749711657831059748781685047294057"
],
"threshold": 0.9
},
"deprecated": false,
"id": "CVE-2026-3285-e638f329",
"signature_version": "v1",
"target": {
"file": "src/be_strlib.c"
},
"signature_type": "Line"
},
{
"source": "https://github.com/berry-lang/berry/commit/7149c59a39ba44feca261b12f06089f265fec176",
"digest": {
"length": 421.0,
"function_hash": "42461745822142710209225595774792749759"
},
"deprecated": false,
"id": "CVE-2026-3285-efce2278",
"signature_version": "v1",
"target": {
"file": "src/be_strlib.c",
"function": "get_mode"
},
"signature_type": "Function"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-3285.json"